⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
#!/bin/bash | |
if [ "$1" = "?" ] | |
then | |
B1="\033[1m"; | |
B2="\033[0m"; | |
echo -e ""; | |
echo -e "${B1}AUTHOR${B2}"; | |
echo -e " Marcelo Miranda Carneiro - [email protected]"; | |
echo -e ""; |
#!/bin/bash | |
if [ "$1" = "?" ] | |
then | |
B1="\033[1m"; | |
B2="\033[0m"; | |
echo -e ""; | |
echo -e "${B1}AUTHOR${B2}"; | |
echo -e " Marcelo Miranda Carneiro - [email protected]"; | |
echo -e ""; |
#!/bin/sh | |
mkdir ~/down/ | |
cd ~/down/ | |
sudo apt-get install build-essential | |
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz | |
tar -xzf Python-2.7.2.tgz | |
cd Python-2.7.2 | |
sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev | |
sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev | |
sudo apt-get install libssl-dev libdb-dev |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
cd ~/Pictures/wallpapers && curl https://www.reddit.com/r/wallpapers/ | tr '"' '\n' | grep imgur | tee "$$.tmp" | egrep 'http:\/\/i.imgur.com\/.*\.jpg' | xargs wget -q -nc | |
egrep '^http://imgur.com/a/' "$$.tmp" | xargs -L1 ~/Pictures/wallpapers/imgur_album_download.sh | |
rm "$$.tmp" | |
# Credit /u/Molozonide | |
# https://www.reddit.com/r/wallpapers/comments/138qi2 |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |