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
[global_config] | |
tab_position = hidden | |
[keybindings] | |
[profiles] | |
[[default]] | |
icon_bell = False | |
background_darkness = 0.85 | |
background_type = transparent | |
cursor_color = "#aaaaaa" | |
foreground_color = "#ffffff" |
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
# .bash_profile | |
if [ -r ~/.bashrc ]; then | |
. ~/.bashrc | |
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
#!/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' |
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
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(); |
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 | |
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 |