Skip to content

Instantly share code, notes, and snippets.

View mrjk's full-sized avatar

mrjk

  • Montréal
View GitHub Profile
@major0
major0 / git-rewrite-author.sh
Last active May 21, 2024 05:02
Write Author Name/Email in git's commit history.
#!/bin/sh
# git-rewrite-author.sh
#
# Rewrite git-commit author's Name/EmailAddress.
#
# Based on previous versions of this tool This version runs in POSIX compliant
# shell and .. IMHO .. cleans up a large portion of the filter logic and the
# core syntax such that is is readable and not full of back-slash escape hell.
#
# Other versions:
@ChrisTollefson
ChrisTollefson / bash_startup_files.md
Last active February 9, 2025 16:04
Bash Startup Files

Bash Startup Files

@BuonOmo
BuonOmo / emojis.sh
Last active February 28, 2025 16:58
A list of all UTF-8 emojis in bash or zsh
# Obtained with the code written in next file
emoji_grinning_face=😀
emoji_grinning_face_with_big_eyes=😃
emoji_grinning_face_with_smiling_eyes=😄
emoji_beaming_face_with_smiling_eyes=😁
emoji_grinning_squinting_face=😆
emoji_grinning_face_with_sweat=😅
emoji_rolling_on_the_floor_laughing=🤣
emoji_face_with_tears_of_joy=😂
emoji_slightly_smiling_face=🙂
@spiette
spiette / cloud.py
Last active August 24, 2018 15:22
Spawn a process using clouds.yaml to populate OS_* environment variables
#!/usr/bin/env python3
# Spawn a process using clouds.yaml to populate OS_* environment variables
# Or use it to set environment variables in the current shell:
# $ eval $(cloud <cloud> --export)
import argparse
import os
import sys
import openstack
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set nohlsearch
set listchars=tab:▸\ ,trail:·
set list
set ignorecase
set smartcase
set nohlsearch
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active April 3, 2025 15:00
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
mkdir -p ~/.ssh
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
@trisweb
trisweb / streamit.rb
Created May 3, 2012 01:23
Script to run an esound stream from soundflower to a pulseaudio server
#!/usr/bin/env ruby
# Requirements:
# - A PulseAudio server running at the host in TO below.
# - SoundFlower installed
# - ESound installed (on mac, brew install esound)
# Select SoundFlower (2ch) as both Input AND Output devices, then run "streamit start"
# otherwise you don't have to worry about anything; it's a daemon, will run in the background,
# once you're finished just kill esd or run "streamit stop"