Skip to content

Instantly share code, notes, and snippets.

@yuan3y
yuan3y / git-line-add-delete-per-day.sh
Created April 14, 2017 09:48
Get number of lines added and deleted per day from your git repo
#!/bin/bash
ds() {
date --date="$1 days ago" +%Y-%m-%d
}
BRANCH=master # your branch here
echo "Date,LinesAdded,LinesDeleted"
for day in $(seq 1 10)
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active December 2, 2024 23:42
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@william8th
william8th / .tmux.conf
Last active December 2, 2024 23:41
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@samiran-kawtikwar
samiran-kawtikwar / jobscript.sh
Last active December 2, 2024 23:41
SBATCH for delta
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=64
#SBATCH --mem=128g
#SBATCH --account=bbqp-delta-gpu
#SBATCH --output=/u/samiran2/RCAP-Project/cpu-bnb/results/%x_%j.out
#SBATCH --partition=gpuA40x4
#SBATCH --time=48:00:00
#SBATCH --mail-user=samiran2@illinois.edu
@adrianhajdin
adrianhajdin / .eslintrc.cjs
Last active December 2, 2024 23:40
Tailwind CSS Full Course 2023 | Build and Deploy a Nike Website
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
@reduz
reduz / godot_over_time1.md
Last active December 2, 2024 23:38
Godot source code in 2002

This is a walkthrough to the Godot codebase over time. I can't publish full repositories, but I will put here the interfaces of some APIs including the year they were created and how they looked like at the time.

2002, Larvotor

This was the first version of the engine as such. It was later on used to create Regnum Oline. This is source code where I am sure I can still put legally here. Here are some class interfaces.

Mesh class:

@ayebrian
ayebrian / vmware.md
Last active December 2, 2024 23:37
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
/* By Luciano Cezareto + Crocoblock */
/* Adicione esse trecho no functions.php do tema [ou tema filho mais seguro] */
/* no campo search do smartfilters no query variable coloque:
user_prop::user_email; user_prop::user_login; user_prop::user_nicename; user_prop::ID; user_prop::user_url
--->> importante use ponto e virgula (;) para adicionar mais de um termo caso necessário. */
/*
Veja o Prints:
https://imgur.com/a/amQwmzv
https://imgur.com/a/3foNmbH
@koshatul
koshatul / README.md
Last active December 2, 2024 23:33
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active December 2, 2024 23:31
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example