Skip to content

Instantly share code, notes, and snippets.

View neninja's full-sized avatar
馃敟
programando na for莽a do 贸dio

Neni neninja

馃敟
programando na for莽a do 贸dio
View GitHub Profile
@voyeg3r
voyeg3r / gist:51031
Created January 23, 2009 14:47
vimrc for windows
" Arquivo de configura莽茫o do vim"{{{
" Criado: Qua 02/Ago/2006 hs 09:19
" Last Change: 23-01-2009 08:32:53
" Autor: Sergio Luiz Araujo Silva
" Codifica莽茫o: utf-8
" Download: http://dotfiles.org/~voyeg3r/.vimrc
" Licence: Licen莽a: Este arquivo 茅 de dom铆nio p煤blico
" Garantia: O autor n茫o se responsabiliza por eventuais danos
" causados pelo uso deste arquivo.
@dolmen
dolmen / git-patching-workflow.dot
Created May 9, 2011 05:25
My patching workflow with Git (GraphViz)
// My Git worflow, when patching external projects
// Copyright (C) 2011 Olivier Mengu茅. All rights reserved.
// dot -Tpng -o git-patching-workflow.png git-patching-workflow.dot
digraph {
find_repo [ label="Find an interesting project on GitHub (or another Git repository)"];
use [ label="Use, test..." ];
bug_idea [ label="Find a bug or idea for a feature" ];
@AoJ
AoJ / isAssocArrayBench.php
Created April 10, 2012 19:53 — forked from Thinkscape/isAssocArrayBench.php
A benchmark of several methods for checking if PHP array is associative
<?php
if(!isset($argv[1])){
echo "Usage: ".$argv[0]." (number of iterations)\n";
exit(1);
}
/**
* Arrays to check
*/
$tests = array(
@pedronauck
pedronauck / git.md
Created May 14, 2013 15:09
Terminal commands

Comandos Gerais

Clonar um Reposit贸rio

$ git clone 'nome-do-reposit贸rio'

Verificar status

$ git status
@actionshrimp
actionshrimp / ToggleGStatus
Created September 9, 2013 09:49
A vim-fugitive status window toggle (mapped to F3). Seems to work nicely
function! ToggleGStatus()
if buflisted(bufname('.git/index'))
bd .git/index
else
Gstatus
endif
endfunction
command ToggleGStatus :call ToggleGStatus()
nmap <F3> :ToggleGStatus<CR>
@rxaviers
rxaviers / gist:7360908
Last active June 23, 2025 17:08
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 馃槃 :smile: 馃槅 :laughing:
馃槉 :blush: 馃槂 :smiley: 鈽猴笍 :relaxed:
馃槒 :smirk: 馃槏 :heart_eyes: 馃槝 :kissing_heart:
馃槡 :kissing_closed_eyes: 馃槼 :flushed: 馃槍 :relieved:
馃槅 :satisfied: 馃榿 :grin: 馃槈 :wink:
馃槣 :stuck_out_tongue_winking_eye: 馃槤 :stuck_out_tongue_closed_eyes: 馃榾 :grinning:
馃槜 :kissing: 馃槞 :kissing_smiling_eyes: 馃槢 :stuck_out_tongue:
@Kartones
Kartones / postgres-cheatsheet.md
Last active June 23, 2025 16:52
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@leocomelli
leocomelli / git.md
Last active June 18, 2025 14:08
Lista de comandos 煤teis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@brbsix
brbsix / vimdiff_cheat_sheet.md
Last active June 1, 2022 04:14 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheet sheet

git mergetool

git config --global merge.tool=vimdiff

vimdiff key mappings