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 git | |
sudo apt get install git | |
# install elasticsearch | |
sudo apt-get install build-essential libssl-dev | |
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
sudo apt-get update && sudo apt-get install elasticsearch | |
# install java |
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
echo "Updating" && | |
sudo apt-get update | |
echo "Upgrading" && | |
sudo apt-get dist-upgrade | |
echo "Cleaning Up" && | |
sudo apt-get -f install && | |
sudo apt-get autoremove && | |
sudo apt-get -y autoclean && |
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 update && sudo apt-get dist-upgrade | |
sudo apt-get install netselect-apt -y | |
sudo netselect-apt | |
sudo apt-get install sudo chromium vim git git-core zsh vlc libcanberra-gtk-module fonts-crosextra-carlito fonts-crosextra-caladea -y | |
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - | |
wget "https://www.rescuetime.com/installers/rescuetime_current_amd64.deb" | |
sudo dpkg -i rescuetime_current_amd64.deb | |
rm rescuetime_current_amd64.deb |
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, chromium, git, git config, dropbox, build-essential libssl-dev for nodejs, |
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
// GET Request | |
var xhr = new XMLHttpRequest(); | |
// Three Arguments: Method, Url and true is optional boolean for async | |
xhr.open("GET", "http://example.com/", true); | |
// Log the response | |
xhr.onload = function () { | |
console.log(xhr.responseText); | |
}; |
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
server { | |
listen 80; | |
root /var/www/yourdomain.com/public; | |
index index.html index.htm; | |
server_name yourdomain.com; | |
location / { | |
default_type "text/html"; |
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
first_input = list(raw_input()) | |
second_input = list(raw_input()) | |
third_input = list(raw_input()) | |
def tictactoe(first_row, second_row, third_row): | |
if check_horizontal(first_row, second_row, third_row) == True: | |
res = True | |
elif check_verticle(first_row, second_row, third_row) == True: | |
res = True |
NewerOlder