Skip to content

Instantly share code, notes, and snippets.

View expatjedi's full-sized avatar
🏠
Working from home

Koray Biçer expatjedi

🏠
Working from home
View GitHub Profile
@expatjedi
expatjedi / patch.sh
Created January 17, 2023 09:51 — forked from rufoa/patch.sh
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@expatjedi
expatjedi / git-auto-sign-commits.sh
Created October 26, 2022 16:47 — forked from mort3za/git-auto-sign-commits.sh
Auto sign your git commits
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# See your gpg public key:
gpg --armor --export YOUR_KEY_ID
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333)