View config
[global_config] | |
tab_position = hidden | |
[keybindings] | |
[profiles] | |
[[default]] | |
icon_bell = False | |
background_darkness = 0.85 | |
background_type = transparent | |
cursor_color = "#aaaaaa" | |
foreground_color = "#ffffff" |
View .bash_profile
# .bash_profile | |
if [ -r ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
View install_my_stuffs.sh
#!/bin/bash | |
##curl | |
sudo apt-get -y install curl && | |
## Adding repositories | |
### Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
View RandomUtils.java
public static Long getRandomLong() { | |
return Long.valueOf(new Random().nextInt(999999999) + 1); | |
} | |
public static String getRandomString() { | |
return getRandomString(10); | |
} | |
public static String getRandomString(int length) { | |
final Random random = new Random(); |
View userdata.sh
#!/bin/bash | |
yum groupinstall -y "Web Server" | |
service httpd start | |
instance_id=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
echo "<h3>I'am the instance $instance_id</h3>" > /var/www/html/index.html |