Skip to content

Instantly share code, notes, and snippets.

View Brostafa's full-sized avatar
🤣

Mostafa Hefny Brostafa

🤣
View GitHub Profile
{
"name": "New Apple MacBook Air (13-inch, 1.6GHz dual-core Intel Core i5, 8GB RAM, 128GB) - Gold",
"product_information": {
"Display": "13.3-inch (diagonal) LED-backlit display with IPS technology; 2560-by-1600 native resolution at 227 pixels per inch with support for millions of colors; True Tone technology",
"Processor": "1.6GHz dual-core Intel Core i5, Turbo Boost up to 3.6GHz, with 4MB L3 cache",
"Graphics and Video Support": "Intel UHD Graphics 617, support for Thunderbolt 3–enabled external graphics processors (eGPUs)",
"Charging and Expansion": "Two Thunderbolt 3 (USB-C) ports with support for:, Charging, DisplayPort, Thunderbolt (up to 40 Gbps), USB-C 3.1 Gen 2 (up to 10 Gbps)",
"Wireless": "802.11ac Wi-Fi wireless networking; IEEE 802.11a/b/g/n compatible. Bluetooth 4.2 wireless technology"
},
"brand": "Apple",
// Automatically pull changes from git
// Every 30 seconds it will pull changes from git
// if it found that git returned a string that starts with "Already up"
// then it means that our code is "Already up-to date" and there's
// no new changes to be pulled
// If git returned something different than "Already up" then it means
// we have pulled a new code and we should runYarn() and reloadPm2()
// Don't forget to also copy pm2.config.js
@Brostafa
Brostafa / setup.sh
Last active July 31, 2018 11:25
scrapoxy-setup.sh
printf "\n=> Installing Node.js [Step: 1/4]\n\n"
sleep 2
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential
printf "\n=> Installing PM2 [Step: 2/4]\n"
sleep 2
sudo npm install pm2 -g
printf "\n=> Installing Scrapoxy and running initial scripts [Step: 3/4]\n"
This file has been truncated, but you can view the full file.
{"0":{"icao":"SWRU","iata":"0","name":"Meruri Airport","city":"Tesouro","state":"Mato-Grosso","country":"BR","elevation":1460,"lat":-15.5564002991,"lon":-53.0752983093,"tz":"America/Cuiaba"},"":{"icao":"ZYYY","iata":"","name":"Shenyang Dongta Airport","city":"Shenyang","state":"Liaoning","country":"CN","elevation":0,"lat":41.7844009399,"lon":123.4960021973,"tz":"Asia/Shanghai"},"ICY":{"icao":"19AK","iata":"ICY","name":"Icy Bay Airport","city":"Icy Bay","state":"Alaska","country":"US","elevation":50,"lat":59.96900177,"lon":-141.662002563,"tz":"America/Anchorage"},"HGZ":{"icao":"2AK6","iata":"HGZ","name":"Hog River Airport","city":"Hogatza","state":"Alaska","country":"US","elevation":534,"lat":66.2161026,"lon":-155.6690063,"tz":"America/Anchorage"},"BYW":{"icao":"38WA","iata":"BYW","name":"Blakely Island Airport","city":"Blakely Island","state":"Washington","country":"US","elevation":66,"lat":48.5789985657,"lon":-122.825996399,"tz":"America/Los_Angeles"},"BDF":{"icao":"3IS8","iata":"BDF","name":"Rinkenberger Re