Skip to content

Instantly share code, notes, and snippets.

@vhaberkorn
vhaberkorn / Instalação_Archlinux.md
Last active February 21, 2021 21:50
Instalação Arch

Instalação do arch linux com full disk encription LVM on LUKS

baseado no script de instalação de @derekstavis 💚

Se algum momento tiver dúvidas sobre o os comando, procurar aqui:(https://wiki.archlinux.org/index.php/installation_guide)

Garantir se fez o boot utilizando EFI

ls /sys/firmware/efi # Deve haver arquivos nesse folder

Checar conexão com a internet.

@caioaao
caioaao / collisions.clj
Last active April 24, 2025 00:54
Solution to Nubank's collision exercise, in Clojure
(ns collisions.core
(:require [clojure.string :as str])
(:gen-class))
(defn str->edge [s]
(->> (str/split s #" ")
(map #(Integer/parseInt %))))
(defn file-contents->edges [s]
(->> (str/split s #"\n")
@flyingluscas
flyingluscas / goTravisGo.js
Last active October 17, 2018 12:45
Go Travis Go
setInterval(() => document.querySelectorAll('.jobs-list li.failed .action-button--restart').forEach(button => button.click()), 60000)
@sk0x1234
sk0x1234 / wireshark-nonroot
Created January 25, 2018 06:40
Wireshark non user arch linux
install setcap command.
#setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/sbin/dumpcap
>su
#chown root /usr/sbin/dumpcap
#chmod u+s /usr/bin/dumpcap
Limiting capture permission to only one group
After having set dumpcap's network privileges:
@jvrmaia
jvrmaia / finance.md
Last active September 17, 2023 21:56
finance

patrimômio mínimo de sobrevivência (PMS)

PMS = 6 x [gastos mensais]

patrimônio mínimo recomendado para sua segurança (PMR)

PMR = 12 x [gastos mensais] caso sua empregabilidade seja alta 20 x [gastos mensais] caso sua empregabilidade seja baixa

patrimônio ideal para sua idade e situação de consumo (PI)

@anabastos
anabastos / lambdazinhs.js
Last active April 1, 2024 23:48
meus churchezinhos
/*
ChUrChEsZiNhUs
baseado na palestra : https://www.youtube.com/watch?v=VpzhH9CXOy0
*/
const ID = x => x
const TRUE = x => y => x
TRUE("0")("1") // 0
@rometsch
rometsch / i3autolock.md
Last active July 2, 2025 17:03
Configure lockscreen for i3 window manager.

The i3-wm does not come with a keybinding to lock the screen or a preconfigured auto lockscreen. This gist describes how to setup both using i3lock and xautolock. i3lock is a minimalistic lockscreen and xautolock monitors mouse and keyboard activities to automatically lock the screen after a certain time of beiing inactive.

First get the tools if neccessary. E.g. sudo apt install i3lock xautolock.

To setup the keybinding Ctrl+Alt+l (last one is a lowercase L) to lock the screen append the following lines to the i3 configuration file located at ~/.config/i3/config.

# keybinding to lock screen
@RobsonX4
RobsonX4 / nodemailer.js
Last active October 6, 2017 17:24
Code Crumbs
//npm i nodemailer --save
var nodemailer = require('nodemailer');
function sendEmail(subject, emailBody, email){
let myEmail = 'myEmailAddress';
let transporter = nodemailer.createTransport({
service: 'Hotmail', //Gmail, Hotmail
auth: {