Skip to content

Instantly share code, notes, and snippets.

View oscarmorrison's full-sized avatar

Oscar Morrison oscarmorrison

View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@oscarmorrison
oscarmorrison / server.py
Last active November 14, 2021 19:32
Python Cat Feeder two servos
#blog.oscarmorrison.com
#Cat feeder (open and close server)
#change the pin, and port here.
from flask import Flask, jsonify
import RPi.GPIO as IO
import time
pinOutOne = 4
#set this two whatever your 2nd servo is in
pinOutTwo = 5
@oscarmorrison
oscarmorrison / switchGitProtocol.sh
Created January 4, 2019 04:35
A quick bash script to change a repo from ssh to https and vice versa
echo "Opening git repo"
giturl=$(git config --get remote.origin.url)
giturl=$( tr '[A-Z]' '[a-z]' <<< $giturl)
if [[ $giturl == *"https"* ]]
then
echo "Switching repo remote origin url from HTTPS to SSH"
echo $giturl
giturl=${giturl#https://github.com/}
repo=${giturl/\.git}
Source: https://publish.obsidian.md/jrd/Globe+Key+QMK
# Adding the Apple 🌐︎ key to QMK keyboards
Apple keyboards have a funky `fn` key with a `🌐︎` globe symbol on them. In most ways this behaves as any other `fn` key, and I've never missed it using a third-party keyboard. Generally, you could just ignore it unless you really wanted quick access to the emoji picker. This changed with macOS Sequoia. The `🌐︎` key is now the default modifier for most
window management shortcuts.
These can be remapped using `Application Shortcuts` in `System Preferences`. However, you cannot add an `fn` modifier and, without it, you often clash with common shortcuts in other applications. There's no way to avoid this and macOS will give priority to the application shortcut.