lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
This file contains hidden or 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
[*1..100].each do |number| | |
text = "" | |
text << "fizz " if number % 3 == 0 | |
text << "buzz " if number % 5 == 0 | |
unless text.empty? | |
puts text | |
else | |
puts number | |
end | |
end |
This file contains hidden or 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 | |
# Pull this file down, make it executable and run it with sudo | |
# wget https://raw.github.com/gist/5487621/build-erlang-r16b.sh | |
# chmod u+x build-erlang-r16b.sh | |
# sudo ./build-erlang-r16b.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 1 | |
fi |
This file contains hidden or 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
# Your stuffs | |
PATH="$PATH:/Users/your_name/bin" # add the python script to your path | |
PS1='\w [$(git_branch)] >> ' # the magic are the single quotes ;) | |
# more of your stuffs |
This file contains hidden or 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
curl -O https://gist.githubusercontent.com/vanhalt/10298110/raw/8b97e642bc1365cf5ac7854ea916af56b5ff2046/install_rbenv_and_ruby.sh && bash install_rbenv_and_ruby.sh |
This file contains hidden or 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
# work to get working workers of work xD | |
# testing with resque-1.24 | |
ps -Ao pid,stat,command | grep [r]esque |grep 'Forked' | |
# see the parent | |
ps -Ao pid,stat,command | grep [r]esque |grep 'Forked' |cut -d ' ' -f 7 |xargs -I padre ps padre | |
This file contains hidden or 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
ps -eo pid,command | grep 'writer' | cut -d ' ' -f 1 | xargs -I proceso kill -9 proceso |
Installation steps:
http://docs.kali.org/kali-on-arm/install-kali-linux-arm-raspberry-pi
ARM download site: