Skip to content

Instantly share code, notes, and snippets.

View jancimajek's full-sized avatar

Jan Majek (Yanchix Ltd) jancimajek

View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active March 26, 2024 17:05
Git Commit message Emoji
@bmhatfield
bmhatfield / .profile
Last active March 18, 2024 07:43
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@alexeds
alexeds / move-stashes.md
Created September 5, 2012 18:00
Move your stashes from one repo to another

Move your stashes from one repo to another


This was useful for me when we created a new branch for a new major release, but were still working on our current version as well. I cloned our repo again and kept the new project on our new branch, but also wanted to get my stashes there.

Download your stashes

git stash show -p > patch

You'll have to specify your stash and name your file whatevery you want. Do this for as all your stashes, and you'll have patch files in your pwd.

@jancimajek
jancimajek / History|-10266e64|entries.json
Last active November 10, 2022 13:37
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/jan.majek/Projects/boilerplate-typescript/src/actions/download.ts","entries":[{"id":"Z0XS.ts","timestamp":1667820526418},{"id":"eGHD.ts","timestamp":1667904802020},{"id":"gU3A.ts","timestamp":1667906605037},{"id":"D2AS.ts","timestamp":1667906636984},{"id":"u9Ow.ts","timestamp":1667906783440},{"id":"dfBB.ts","timestamp":1667906812352},{"id":"zW6W.ts","timestamp":1667906921326}]}