The problem / error: When doing an rsync over ssh file transfer I get this error. # rsync -avhP -e "ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" file root@someserver.com:file Warning: Permanently added '[root@someserver.com]:22,[24.155.888.155]:2022'Read More…
Multiple ways to pass arguments to Python
Below is examples of passing arguments to python via regular argument assignment, and tuples and *tuples, and dictionaries and **dictionaries. Here is my gist link for it: https://gist.github.com/anonymous/271d6160cdd90a482b40 (older) Not covering all methods (forRead More…
Switch Samba User with Net Use using IPC$ & Access ReadyNAS Data Volumes
SIDENOTE: if your searching by cifs, you should instead search by smb or samba. Cifs is an older version of SMB. Samba is the linux version of smb that talks with smbRead More…
Computer Networking – End to End Argument
Rule of thumb: when implementing a function or program, you should implement it at the end points. Quote: End-to-end connectivity is a property of the Internet that allows all nodes of the network toRead More…
Resync entry in mdadm / mdstat could mean scrub or drive added back in
(I) Scrub: going thru the raid checking parity and correcting things. There are 2 types. check or repair. *check just reads everything and doesn’t trigger any writes unless a read error isRead More…
GIT pulling 1 file – reverting file to last commit – file undo
So you changed a file and now you want the original back (the original from the last commit). You want to undo the changes. I do it like this: git checkout HEADRead More…
Buffer Sizing in Internet Routers
Here is a paper by Yashar Ganjali Gavgani about Buffer Sizing and how it works in Networks. Its really easy to read and understand and gives you a full sense of theRead More…
VirtualBox Host Only Adapter Error VERR_INTNET_FLT_IF_NOT_FOUND
Im running Windows 10 Pro Build 10586 (10.0.10586) with Virtual Box v5.0.12 r104815 If your VM uses Host Only Adapter and it fails to power on, and gives this error: Failed toRead More…
NOTE TO SELF: Samba Watch the Locks
Watching samba locks script: smbstatus -L | head -n 2 | tail -n 1 | nl -v0; smbstatus -L | tail -n -3 | grep . | nl; # loop the commandRead More…
mdadm change homehost – mdadm change name
Let say you want to change the homehost and/or the name of a raid, for whatever reason. (one reason might be that you changed your system and so you want to matchRead More…