Skip to content

Instantly share code, notes, and snippets.

View hankpillow's full-sized avatar

igor hankpillow

  • mrboots
  • brazil, são paulo.
View GitHub Profile
@mcarneiro
mcarneiro / log-by-user
Created September 15, 2010 16:03
bash commands for SVN
#!/bin/bash
if [ "$1" = "?" ]
then
B1="\033[1m";
B2="\033[0m";
echo -e "";
echo -e "${B1}AUTHOR${B2}";
echo -e " Marcelo Miranda Carneiro - mcarneiro@gmail.com";
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 - mcarneiro@gmail.com";
echo -e "";
@ftao
ftao / install_pytho27.sh
Created July 7, 2011 10:00
install python 2.7 on debian 6
#!/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
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@awidegreen
awidegreen / vim_cheatsheet.md
Last active June 17, 2024 03:41
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@denji
denji / nginx-tuning.md
Last active July 20, 2024 17:33
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

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.

@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active July 19, 2024 01:24
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@augbog
augbog / redditwallpapers.sh
Last active August 2, 2017 20:47
CURL imgur links from a subreddit every so often so you always have a variety of wallpapers :)
#!/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
@gokulkrishh
gokulkrishh / media-query.css
Last active July 16, 2024 10:52
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */