This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gsettings reset org.gnome.settings-daemon.peripherals.mouse motion-acceleration | |
gsettings reset org.gnome.settings-daemon.peripherals.mouse motion-threshold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
echo "# aaa" > README.md | |
git add README.md | |
git commit -m "A" README.md | |
echo "# bbb" >> README.md | |
git commit -m "B" README.md | |
echo "# ccc" >> README.md | |
git commit -m "C" README.md | |
git remote add origin [email protected]:sdoro/aaa.git | |
git tag push-01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Use Postgres SCHEMA */ | |
DROP SCHEMA IF EXISTS films CASCADE; | |
CREATE SCHEMA films; | |
SET search_path TO films; | |
/* Delete the tables if they already exist */ | |
drop table if exists Movie; | |
drop table if exists Reviewer; | |
drop table if exists Rating; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-10_r02.zip \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-15_r01.zip \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-16_r01.zip \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-17_r01.zip \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-18_r01.zip \ | |
https://dl-ssl.google.com/android/repository/sys-img/x86/sysimg_x86-19_r02.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change MY_idVendor (Samsung) to the idVendor of your device | |
MY_idVendor="04e8" | |
cat <<"EOT" > /etc/udev/rules.d/51-android.rules | |
SUBSYSTEM=="usb", ATTR{idVendor}=="$MY_idVendor", MODE="0666", GROUP="plugdev" | |
EOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
url="$1" | |
tag=`uuid` | |
payload="() { :;};echo;echo $tag;exit" | |
vulnerable=0 | |
function shellshock () { | |
header="$1" | |
response=`curl --header "$header: $payload" --silent --insecure "$url"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# thanks to: http://www.cyberciti.biz/tips/linux-iptables-how-to-flush-all-rules.html | |
# | |
echo "Stopping firewall and allowing everyone..." | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -A INPUT -p tcp --dport 60000 -j DROP | |
masscan 10.0.0.0/8 -p80 --banners --source-port 60000 | |
# | |
# also before ... | |
iptables -N LOGGING | |
iptables -A LOGGING -m limit --limit 200/min -j LOG --log-prefix "SHELLSHOCK: " --log-level 7 | |
iptables -A LOGGING -j RETURN | |
iptables -A INPUT -s 10.0.0.0/8 -p icmp --icmp-type echo-request -j LOGGING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add-apt-repository ppa:cwchien/gradle | |
apt-get update | |
apt-get install gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
youtube-dl --write-srt --skip-download http://www.youtube.com/watch?v=5hO3MrzPa0A |