Skip to content

Instantly share code, notes, and snippets.

View diegosouza's full-sized avatar

Diego Souza diegosouza

View GitHub Profile
@diegosouza
diegosouza / bash_strict_mode.md
Created December 23, 2022 21:28 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@diegosouza
diegosouza / nix.md
Last active April 14, 2021 20:15
exemplos simples e práticos com nix

nix-env (packages available to the user):

# search (query for --installed or --available)
nix-env -q --installed vim
nix-env -q --available 'emacs.*'

# install
nix-env -i htop
@diegosouza
diegosouza / iprev.md
Last active January 8, 2020 13:43
IPREV

IPREV

Origem

Em 2006, o Fundo de Previdência Social do Município de Santos - FPS, foi criado de acordo com o artigo 71, da Lei nº 4.320, de 17 de março de 1964.

Estrutura

Presidência

@diegosouza
diegosouza / escalas_e_campo_harmonicos.md
Last active November 3, 2015 12:18
Anotações sobre escalas e campo harmônicos

Maior

I   II  III IV  V   VI  VII

C	Dm	Em	F	G	Am	Bdim

Menor Melódica

Keybase proof

I hereby claim:

  • I am diegosouza on github.
  • I am diegosouza (https://keybase.io/diegosouza) on keybase.
  • I have a public key whose fingerprint is F9A8 A921 A56B BB63 D9DA 69CC CA3C F457 2699 A110

To claim this, I am signing this object:

{
"vars": {
"@gray-base": "#656565",
"@gray-darker": "#656565",
"@gray-dark": "#757575",
"@gray": "#848484",
"@gray-light": "#999",
"@gray-lighter": "#ddd",
"@brand-primary": "#96b739",
"@brand-success": "#4fc1ff",
@diegosouza
diegosouza / lotus_single_file_app.rb
Last active August 29, 2015 14:02
single file lotus app running
require 'lotus'
module OneFile
class Application < Lotus::Application
configure do
routes do
get '/', to: 'home#index'
end
SET GLOBAL log_output = "FILE";
SET GLOBAL general_log_file = "/tmp/mysql.log";
SET GLOBAL general_log = 'ON';
@diegosouza
diegosouza / irbrc
Created February 9, 2013 21:38
irbrc
require 'irb/completion'
IRB.conf[:PROMPT_MODE] = :SIMPLE