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
# Install iproute (Ubuntu) | |
sudo apt-get install iproute | |
# Increase network latency in eth0 (250 milliseconds) | |
sudo tc qdisc add dev eth0 root netem delay 250ms | |
# Delete network modifications | |
sudo tc qdisc del dev eth0 root netem | |
# To make this change in localhost you must only replace "eth0" to "lo" ( --- WARNING --- in this case time will double ) |
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
eval $(ssh-agent) | |
ssh-add $PATH_TO_SSH_KEY |
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
https://github.com/coreos/etcd/blob/master/Documentation/tuning.md |
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
hostname -I | cut -d ' ' -f 1 |
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
class Test | |
attr_accessor :attribute | |
def initialize(attribute) | |
@attribute = attribute | |
end | |
end | |
obj = Test.new('Hello') | |
puts obj.attribute |
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
sudo apt-get install software-properties-common |
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
"# turns off the license screen | |
startup_message off | |
# Status bar | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]' | |
# define a bigger scrollback, default is 100 lines. | |
defscrollback 10000 |