Skip to content

Instantly share code, notes, and snippets.

@Yousha
Yousha / .gitignore
Last active October 3, 2025 15:23
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
@MOOOWOOO
MOOOWOOO / py-gitignore
Last active October 13, 2025 13:03
python pycharm gitignore
# Created by .ignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
@everaldo
everaldo / unicorn-app.sh
Created March 21, 2014 14:29
Gist /etc/init.d script do Unicorn
################################################################################
# unicorn.sh
################################################################################
#!/usr/bin/env bash
set -e
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
AS_USER="USER_NAME"
@jchatard
jchatard / deploy.rb
Created February 28, 2014 09:17
Mina configuration file for Drupal deployment
require 'mina/git'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)
case ENV['to']
when 'production'
set :domain, 'www.foo.bar'
@hiyosi
hiyosi / gist:3850864
Created October 8, 2012 05:27
Yaws REST API sample
-module(rest).
-include("/opt/local/lib/erlang/lib/stdlib-1.18.2/include/qlc.hrl").
-include("/opt/local/lib/yaws/include/yaws_api.hrl").
-export([out/1, addAirport/4, handle/2 ]).
-define(RECORD_TYPE, airport).
-define(RECORD_KEY_FIELD, code).
@emersonbroga
emersonbroga / gist:3490650
Created August 27, 2012 17:34
Emerson Carvalho.com >> Adicionar Pasta ao SVN ignore (snippet 1)
// 1 - Fazer um backup da pasta uploads
$ cp -r wp-content/uploads/ wp-contents/_uploads/
// 2 - Excluir a pasta do svn e dar commit
$ svn delete wp-content/uploads/
$ svn commit -m"Pasta uploads excluida"
// 3 - Criar uma nova pasta uploads e adicionar ao svn
$ mkdir wp-content/uploads/
$ svn add wp-content/uploads/
@qrush
qrush / Inconsolata-dz-Powerline.otf
Created January 11, 2012 16:50
vim-powerline patched fonts
@tsabat
tsabat / zsh.md
Last active October 10, 2025 00:44
Getting oh-my-zsh to work in Ubuntu
@voyeg3r
voyeg3r / codecs-lucid.sh
Created April 19, 2010 13:56
install codecs and programmas for ubuntu lucid 10.04
#!/bin/bash
#######################################################################################
# PROÓSITO DO SCRIPT: INSTALAR PACOTES EXTRAS E CODECS PARA UBUNTU 10.04 LUCID LINUX #
#######################################################################################
# Criado em:Ter 30/Mar/2010 hs 14:21
# Last Change: Ter 18 Mai 2010 19:07:00 BRT
# vim:ft=sh:fdm=syntax:nu:
# Instituicao: none
# Autor: Sérgio Luiz Araújo Silva
# site: http://vivaotux.blogspot.com