Top Poster
#1 ramon fincken 412
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 khadish 1
#8 moxxx 1
#9 nistelrock 1
#10 Justin-ServerPilot 1

The time now is Tue Aug 16, 2022 10:48 am
Ramonfincken.com Forum Index
View unanswered posts
[solved] decrypt retrieve synology nas camera password
Author ramon fincken :: Posted: Sun May 22, 2022 9:11 am :: Category: Bash, perl, python and CLI linux


Code:
admin@mynas:/var/services/surveillance/mycamera$ sudo tcpdump -i eth0 -XXvvtS "host 192.168.0.18 and port 88" | grep -B 2  -A 6 'Authorization'



Adjust host 192.168.0.18 and port 88 accordingly

Just base64 decode the Authorization header, it will show the username and password


Laminaatsnijder
Author ramon fincken :: Posted: Wed May 11, 2022 9:00 am :: Category: Lounge


Heb je een snijder nodig voor je laminaatplanken?
Dan kun je die voor 16 euro voor vier uur huren bij de bouwmarkt.

of je betaalt een paar euro extra en kunt hem hier een volledige week huren !

https://laminaatsnijderhuren.nl/


Incorrect default date
Author ramon fincken :: Posted: Thu Apr 14, 2022 1:44 pm :: Category: CMS-ses (Joomla, WordPress, etc..)


Code:
ALTER TABLE `wp_posts` CHANGE `post_date` `post_date` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00', CHANGE `post_date_gmt` `post_date_gmt` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00', CHANGE `post_modified` `post_modified` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00', CHANGE `post_modified_gmt` `post_modified_gmt` DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00';


[solved] Commandline unzip fails
Author ramon fincken :: Posted: Tue Mar 15, 2022 8:45 am :: Category: Bash, perl, python and CLI linux


Error
Code:
Error while unzipping: need PK compat. v5.1 (can do v4.6)


Solution use another unzip-er

Code:
apt-get install p7zip-full

extract the file with it
Code:
7z x filename.zip

Source
https://askubuntu.com/questions/596761/...an-do-v4-6


Git grep in diffs from code not only the commit messages
Author ramon fincken :: Posted: Fri Mar 04, 2022 1:48 pm :: Category: Bash, perl, python and CLI linux


Code:
git log --pickaxe-regex -p --color-words -S "<regexp>"


Source: https://stackoverflow.com/a/39318949/696680


Rsync last x minutes
Author ramon fincken :: Posted: Mon Feb 14, 2022 2:41 pm :: Category: Bash, perl, python and CLI linux
Tagged: , , ,


Last 30 minutes:

Code:
cd /home/user/path && rsync --progress --files-from=<(find . -maxdepth 1 -cmin -30 -type f -exec basename {} \;) . target@foobar.com:/home/user/path2


Bash remove all files except specific regex for extensions
Author ramon fincken :: Posted: Fri Jan 14, 2022 9:36 am :: Category: Bash, perl, python and CLI linux
Tagged:


When you only need *.po and *.mo files :

Code:
rm -v !(*.mo|*.po)


[solution] convert linux mdbox compressed to maildir directories and separate mail
Author ramon fincken :: Posted: Fri Aug 20, 2021 1:44 pm :: Category: Bash, perl, python and CLI linux


please note:
do this on a separate server! Then Imapsync the result once you are done.
Also note: not all doveadm version support this ->
Error: Couldn't load plugin /usr/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so: Module is for different ABI version 2.1.1 (we have 2.3.ABIv15(2.3.15))


Code:
# Change the owner of the files in mdbox so doveadm has access.
chown -R mail /home/myDomain/imap/myDomain.nl/myUser/mdbox
# Convert mdbox to Maildir. Do this in a temporary folder and not straight into the existing Maildir of the user because this will result in a permission error.
doveadm -o first_valid_uid=1 -o namespace=inbox -o namespace/inbox/inbox=yes -o namespace/inbox/separator=. -o mail_location=mdbox:/home/myDomain/imap/myDomain.nl/myUser/mdbox backup -u mail maildir:/home/myDomain/imap/myDomain.nl/myUser/Maildir_test
# Now copy the converted Maildir into the existing Maildir of the user.
cp -rf /home/myDomain/imap/myDomain.nl/myUser/Maildir_test/. /home/myDomain/imap/myDomain.nl/myUser/Maildir
# Change the owner of the files in Maildir so the user has access.
chown -R myDomain:mail /home/myDomain/imap/myDomain.nl/myUser/Maildir


Source
https://forum.directadmin.com/threads/m...ion.63538/


All times are GMT
Who is Online
Who is Online Our users have posted a total of 417 articles
We have 26 registered users
The newest registered user is MathewCow
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest   [ Administrator ]   [ Moderator ]
Most users ever online was 41 on Wed Sep 09, 2015 1:34 am
Registered Users: None
This data is based on users active over the past five minutes
Log in
Username:    Password:      Log me on automatically each visit    

New posts New posts    No new posts No new posts    Forum is locked Forum is locked
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads