Skip to content

Instantly share code, notes, and snippets.

View sourcecodemage's full-sized avatar
🎯
Focusing

John Gooch sourcecodemage

🎯
Focusing
View GitHub Profile
@sourcecodemage
sourcecodemage / karabiner.json
Created May 7, 2021 13:15
Karabiner Elements Hyperkey Config
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@sourcecodemage
sourcecodemage / README.md
Last active May 2, 2021 18:42 — forked from denvazh/README.md
Scheduled update for homebrew

Scheduled updates for homebrew

This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.

It will run in the following way:

  • brew update every day at 12:10
  • brew upgrade every day at 12:20

How to install

Place this in bashrc

function gp() {
if [[ $# -gt 0 ]]; then
  git pull ${1} $(git branch  | cut -d' ' -f2)
else
  git pull origin $(git branch  | cut -d' ' -f2)
fi
}
@sourcecodemage
sourcecodemage / gist:d283ac715883f229038e9f3da274ee3d
Created March 29, 2021 01:59
Auto Enable virtual env when opening Python Project
Add this line to ./.vscode/settings.json
"python.terminal.activateEnvInCurrentTerminal": true
@sourcecodemage
sourcecodemage / reminders_import_tasks.scpt
Created November 25, 2019 03:36
Import Reminders from text file
set theFileContents to (read file "Users:$USER:Desktop:tasks.txt")
set theLines to paragraphs of theFileContents
repeat with eachLine in theLines
tell application "Reminders"
set mylist to list "Inbox"
tell mylist
make new reminder at end with properties {name:eachLine}
end tell
end tell
end repeat