Skip to content

Instantly share code, notes, and snippets.

View ryanpcmcquen's full-sized avatar

Ryan McQuen ryanpcmcquen

View GitHub Profile
/***
*** Modified by Ryan McQuen - February, 2024
***/
/* Light Theme for YouTube Music */
/* By Tech How */
/* Visit this project on GitHub and be the first to know about bug fixes and improvements! */
/* https://github.com/Tech-How/Light-Theme-for-YouTube-Music */
/* Color Scheme */
@ryanpcmcquen
ryanpcmcquen / .osx
Last active February 12, 2024 01:22
.osx
#!/usr/bin/env bash
# curl -o ~/.osx https://gist.githubusercontent.com/ryanpcmcquen/b2e608311f286a4ab3e1/raw/.osx && bash ~/.osx
###############################################################################
# General UI/UX #
###############################################################################
# Disable smart dashes as they’re annoying when typing code.
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
@ryanpcmcquen
ryanpcmcquen / .gitconfig
Last active December 3, 2023 09:44
McWidnwos
[user]
email = rpcm@linux.com
name = Ryan McQuen
[core]
autocrlf = false
eol = lf
editor = subl -w
[pull]
rebase = false
@ryanpcmcquen
ryanpcmcquen / typewriter.css
Last active October 4, 2023 18:57
Old school typing with new school code.
.input {
display: none;
}
.output {
display: flex;
align-items: center;
justify-content: center;
color: #000000;
font-family: monospace;
@ryanpcmcquen
ryanpcmcquen / .bash_profile
Last active July 30, 2023 22:31
.bash_profile for mac os
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# Useful shortcut to push to all remotes:
gpa() {
git remote | xargs -L1 git push --all
}
# Master update function:

Remapping types:

You can alter type keys with expressions:

export type PrefixKeyWithColon<Type> = {
    [Prop in keyof Type & string as `:${Prop}`]: Type[Prop]
}
@ryanpcmcquen
ryanpcmcquen / darkify_slack.sh
Last active February 23, 2023 16:08
Darkify your Slack.
#!/bin/sh
# Darkify Slack on Mac OS or Linux.
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh
if [ "`uname -s`" = "Darwin" ]; then
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/dist/ssb-interop.bundle.js"
else
SLACK_INTEROP_JS="/usr/lib/slack/resources/app.asar.unpacked/dist/ssb-interop.bundle.js"
fi
@ryanpcmcquen
ryanpcmcquen / DEFAULT__state.xml
Last active February 20, 2022 22:58
Audient EVO 8 state
<?xml version="1.0" encoding="UTF-8"?>
<presets>
<preset company="audient ltd" product="evo 8" schema-version="0.1.0"
software-version="4.2.3">
<device>
<mixer artistMixEnabled="0">
<input channel="0" mode="0" name="MIC 1" cut="0">
<mix index="0" volume="-128.00" pan="0.50"/>
<mix index="1" volume="-128.00" pan="0.50"/>
@ryanpcmcquen
ryanpcmcquen / init.lua
Last active December 28, 2021 22:19
Hammerspoon config!
-------------------------------------------------------------------
-- Globals
-------------------------------------------------------------------
-- This controls all window animations.
hs.window.animationDuration = 0
-------------------------------------------------------------------
-- Window Layouts
-------------------------------------------------------------------
@ryanpcmcquen
ryanpcmcquen / .jsbeautifyrc
Last active December 28, 2021 22:18
McLemon configs
{
"all":
{
"end_with_newline": true,
"eol": "\n",
"indent_size": 2,
"indent_with_tabs": false
},
"js":
{