Skip to content

Instantly share code, notes, and snippets.

View mcchrish's full-sized avatar
🌏
🌧

Michael Chris Lopez mcchrish

🌏
🌧
View GitHub Profile
# Keychain save checkbox default to false
defaults write org.gpgtools.common UseKeychain false
@mcchrish
mcchrish / refined-github-custom.css
Last active April 4, 2019 03:40
I love Iosevka font and would like to see it used in Github instead of the default. Here's a rough list of the css class selectors related to code display and how to override them.
textarea, code, .commit, .sha, .sha-block, .commit-ref, .file-info {
font-family: SF\ Mono !important;
}
pre, pre>code, .blob-code-inner {
font-family: Iosevka\ Term\ Slab !important;
}
pre, .blob-code-inner {
font-size: 14px !important;
@mcchrish
mcchrish / pre-commit
Last active May 27, 2016 14:21 — forked from dy-dx/pre-commit
Git pre-commit hook to check for debugging codes and Standard JS violations in a Javascript project
#!/bin/bash
FILES_PATTERN='\.(css|less|scss|sass|html|ejs|js|jsx)(\..+)?$'
FORBIDDEN=( ">>>>>>" "<<<<<<" "======" "console.log" "debugger" )
# the exit code from `grep -E $FILES_PATTERN` gets swallowed unless the pipefail option is set
set -o pipefail
FORBIDDEN_FOUND=false