Skip to content

Instantly share code, notes, and snippets.

View henriquemenezes's full-sized avatar

Henrique Menezes henriquemenezes

  • Recife, Brazil
View GitHub Profile
@henriquemenezes
henriquemenezes / modern-unix-commands.md
Created April 26, 2023 15:30
Modern Unix Commands

Modern Unix Commands

old unix-command modern unix-command
cat bat
ls exa, lsd
diff delta
du dust, ncdu
df duf
tree broot
@henriquemenezes
henriquemenezes / caddy-renew-certificates.sh
Created March 7, 2022 15:54
Caddy force renew certificates
sudo find /var/lib/caddy/.local/share/caddy/certificates -type f -exec rm {} \;
sudo systemctl restart caddy

CFG CSGO

Criar cfg

host_writeconfig mycfg

Executar uma cfg

@henriquemenezes
henriquemenezes / webcrypto-examples.md
Created March 13, 2020 23:00 — forked from pedrouid/webcrypto-examples.md
Web Cryptography API Examples
@henriquemenezes
henriquemenezes / vscode-user-settings.json
Last active April 8, 2020 22:04
VSCode User Settings
{
"terminal.integrated.fontFamily": "'Ubuntu Mono','PowerlineSymbols'",
"go.useLanguageServer": true,
"go.formatTool": "goimports",
"[ruby]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
}
}
@henriquemenezes
henriquemenezes / apns-certificates.md
Created December 6, 2018 09:09
APNS Certificates

APNS

  1. Generate CSR from Keychain

Keychain Access > Certificate Assistant > Request a Certificate from Certificate Authority...

  Email: <user@email.com>
  Common Name: <Project>
 Select Saved to disk
#!/bin/bash
from_repo=$1
to_repo=$2
repo_dir=${from_repo##*/}
echo "Git Mirror: $from_repo -> $to_repo"
git clone --bare $from_repo
cd $repo_dir
git push --mirror $to_repo
@henriquemenezes
henriquemenezes / android-move-drawable.rb
Created December 6, 2018 00:31
Android Move Drawable
#!/usr/bin/env ruby
require 'fileutils'
prefix_input = ARGV[0]
prefix_output = ARGV[1]
suffixes = [".png", "@1.5x.png", "@2x.png", "@3x.png", "@4x.png"]
output_dirs = {
#!/bin/bash
from_repo=$1
to_repo=$2
repo_dir=${from_repo##*/}
echo "Git Mirror: $from_repo -> $to_repo"
git clone --bare $from_repo
cd $repo_dir
git push --mirror $to_repo

macOS

Keyboard Shortcuts

Mission Control

Open Mission Control

Command Description