Latest 100 public snipts »
dalord's
snipts
showing 1-20 of 22 snipts
-
∞ Verify signatures
# Import a public key gpg --import <public_key>.asc # Verify a signature gpg --verify <file_name>.asc # To surpress the warning, trust public keys # shows the long identifier of the public key gpg --with-colons --list-keys "<public_key>" # trusts it gpg --trusted-key 0123456789ABCDEF --update-trustdb
-
∞ Windows Soft-link
REM CMD must be started as Administrator MKLINK L:\ink\nam.e T:\ar\ge.t -
∞ mount VirtualBox shared folder in linux guest
mdkir /mnt/<Mount_point> sudo mount -t vboxsf <Folder_name> /mnt/<Mount_point> # To mount a VirtualBox shared folder in Linux at boottime add following # line to /etc/fstab (tested in Ubuntu 10.04) <Folder_name> /mnt/<Mount_point> vboxsf defaults 0 0
-
∞ vpnc fix
sudo ifconfig tun0 mtu 1356
-
∞ Connect via wpa_supplicant
# create wpa_supplicant configuration file cp /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.original wpa_passphrase MY-NETWORK "w1r3l355 p455w0rd" # check output wpa_passphrase MY-NETWORK "w1r3l355 p455w0rd" > /etc/wpa_supplicant.conf # connect via wpa_supplicant ifconfig wlan0 up iwconfig wlan0 essid "MY-NETWORK" wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf dhcpcd wlan0
-
∞ ssh-agent
ssh-agent bash ssh-add
-
∞ tar Befehl
tar cvzf filename.tar.gz file.jpg # packe 'file.jpg' in 'filename.tar.gz' tar cvzf filename.tar.gz folder/ # packe 'folder/*' in 'filename.tar.gz' tar xvzf filename.tar.gz # entpackee 'filename.tar.gz'
-
∞ gits from server backup per ssh
# run 'git-archive.sh' on server scp -r -P 1234 user@192.168.0.1:~/git/*.tar.gz /g/git -
∞ Environment variables
# === Windows === # Menu: Systemsteuerung > System > Erweiterte Systemeinstellungen > Umgebungsvariablen # Print: echo %PATH% # Print all: set # Important: %PATH%, %USERPROFILE% # === Linux === # Print: echo $PATH # Print all: env # Change (Bash): export PATH=$PATH:$HOME/bin
-
∞ Include Git repo in existing folder (e.g. C:\Users-repo)
git init git remote add origin <path_to_repo> echo -e "[branch \"master\"]\n\tremote = origin\n\tmerge = refs/heads/master" >> .git/config git pull
-
∞ tracking branch
git checkout --track origin/<branch>
-
∞ rotate dsiplay on tablet
xrandr -o right xsetwacom set stylus xydefault xsetwacom set stylus Rotate 1
-
∞ Remote "pull"
git checkout master git fetch <remote> git merge <remote>/master
-
∞ annotated git tag
git tag -a 20090101 -m "Update on 2009-01-01" git tag -a v0.1 -m "Version 0.1" # push git push origin v0.1
-
∞ how to create a git repo on a server under msysgit on windows
cd /e/language/Project/src git init vim .gitignore # *.pyc, *~ git add .gitignore # ... git commit -m "Initial commit" cd ../.. # /e/language git clone --bare Project/src project.git scp -r -P 1234 project.git user@192.168.0.1:~/git # delete 'Project' in Eclipse git clone ssh://user@192.168.0.1:1234/~/git/project.git project/src # recreate 'project' in Eclipse
-
∞ ssh login auf port 1234 als user auf rechner 192.168.0.1
ssh -p 1234 user@192.168.0.1
-
∞ Soft Link
ln -s /folder/or/file/to/point.at /path/to/where/the/link/shall.be
-
∞ request new IP from dhcp
sudo dhcpcd -k wlan0 dhcpcd -nd wlan0
-
∞ Prozess suche Firefox
ps -ax |grep firefox
-
∞ Skrip Ausführbar machen
chmod +x ~/bla/bla.pl


