Skip to content

Instantly share code, notes, and snippets.

View coreyja's full-sized avatar
🙃

Corey Alexander coreyja

🙃
View GitHub Profile
@coreyja
coreyja / keybase.md
Last active June 4, 2016 19:49
Keybase Proof

Keybase proof

I hereby claim:

  • I am coreyja on github.
  • I am coreyja (https://keybase.io/coreyja) on keybase.
  • I have a public key ASDzcK3t2kvfE40z3kUy010bq43MIpPqcDEfZWsFzJjsego

To claim this, I am signing this object:

@coreyja
coreyja / iTerm-show-hide-dock-icon
Created October 21, 2014 16:07
Commands to show or hide the iTerm2 dock icon
Hide Icon:
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
Show Icon:
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
@coreyja
coreyja / GIF-Screencast-OSX.md
Last active August 29, 2015 14:20 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@coreyja
coreyja / .bash_profile
Last active February 22, 2018 16:52 — forked from nonrational/autopush.applescript
Viscosity Connect and Duo Push
# This is the alias to actually launch the AppleScript.
# Put this in your `.bash_profile` or wherever you like to keep aliases
# This assumes the AppleScript is located in `~/AppleScripts/autopush.applescript`
alias veep="osascript ~/AppleScripts/autopush.applescript"
use std::collections::HashMap;
fn prime_decomposition(n: u32) -> Vec<u32> {
let mut output = vec![];
let mut curr = n;
for i in 2..(n + 1) {
while curr % i == 0 {
output.push(i);
curr = curr / i;
@coreyja
coreyja / upgrade_sortbet_types.sh
Created September 1, 2020 02:41
Upgrade Sorbet False Files if Flipping them doesn't break anything
#!/usr/bin/env bash
FILES_TO_TRY=$(rg '# typed: false' -l --glob "**/*.rb")
for FILE in $FILES_TO_TRY
do
sed -i.tmp 's/typed: false/typed: true/' "$FILE"
rm "$FILE.tmp"
srb tc || (
sed -i.tmp 's/typed: true/typed: false/' "$FILE" &&
@coreyja
coreyja / victor-mono.css
Last active January 2, 2023 19:17 — forked from pyrho/victor-mono.css
A font file for Blink Shell with the Victor Mono font
/* Non-Italics */
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
font-weight: 200;
src: url(https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/VictorMono/Light/complete/Victor%20Mono%20Light%20Nerd%20Font%20Complete.ttf?raw=true);
}
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
@coreyja
coreyja / README.md
Last active April 29, 2022 14:43
Bash and Ruby Nerd Snipe

I got nerd sniped on Twitter!

Originally the prompt was to do the installing of the interpretter in the shebang, but I was able to fit it all in one file and that felt close enough.