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…
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…
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…
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:
1 2 3 4 5 6 7 8 9 |
Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2' (VERR_INTNET_FLT_IF_NOT_FOUND). Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND). Result Code: E_FAIL (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed} |
NOTE:Read More…
Watching samba locks script:
1 2 3 4 5 6 7 8 9 |
smbstatus -L | head -n 2 | tail -n 1 | nl -v0; smbstatus -L | tail -n -3 | grep . | nl; # loop the command with "watch" watch "smbstatus -L | head -n 2 | tail -n 1 | nl -v0; smbstatus -L | tail -n -3 | grep . | nl;" # loop the command with "while" (useful if you dont want the screen cleared, or if you dont have "watch" command) while true; echo "----`date`-`date +%s`----"; smbstatus -L | head -n 2 | tail -n 1 | nl -v0; smbstatus -L | tail -n -3 | grep . | nl; sleep 2; done; |
smbstatus -L just lists the headers, but it has an extra empty line at the end, and 3 header lines. We extract the important header line, and weRead More…
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…
Problem: If you get this warning/error when you run the ssh command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ ssh infotinks@192.168.0.100 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is 3f:1b:f4:bd:c5:aa:c1:1f:ab:4e:2e:cf:53:fa:d8:59. Please contact your system administrator. Add correct host key in /home/infotinks/.ssh/known_hosts to get rid of this message. Offending key in /home/infotinks/.ssh/known_hosts:3 RSA host key for 192.168.0.100 has changed and you have requested strict checking. Host key verification failed.$ |
Solution: Avoid it like this: add these options to your ssh command
1 |
-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no |
The total command looks like this:
1 |
$ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no infotinks@192.168.0.100 |
Mounting a BTRFS filesystem thats made of 2 devices. For example my data volume is made of md125 and md124 I can mount them like this usually
1 |
# mount /dev/m124 /mnt |
or
1 |
# mount /dev/md125 /mnt |
However ifRead More…
Scroll down to the “New and Final”. Use the first link to get to the github page (where you will see the readme of the repo). Use the 2nd link, which endsRead More…