Skip to content

Instantly share code, notes, and snippets.

View anchowake's full-sized avatar
🌮
Into the taco-verse

anchowake

🌮
Into the taco-verse
View GitHub Profile
@anchowake
anchowake / spaceship.sh
Last active September 4, 2019 15:00
Spaceship theme options
# ORDER
SPACESHIP_PROMPT_ORDER=(
time #
vi_mode # these sections will be
user # before prompt char
host #
line_sep
battery
char
dir
@anchowake
anchowake / toggle_desktop_icons.md
Last active June 18, 2019 14:20
Hide OSX desktop icons

Toggle desktop icons in OSX

Hide

defaults write com.apple.finder CreateDesktop false; killall Finder

Show

@anchowake
anchowake / request_pip.md
Last active January 29, 2020 22:59
Request PIP programmatically

Chrome

document.querySelector('Selector').requestPictureInPicture();

Safari

document.querySelector('Selector').webkitSetPresentationMode("picture-in-picture");
// Find the twos
// Given an integer like this:
// 2468122368128146226989812
// Implement a function called `findTheTwos` that return the total number of number two in the integer
// findTheTwos(246812236812) = 7
const num = 246812236812;
const targetNum = 2;
function findTheTwos(int, target) {
@anchowake
anchowake / increase_osx_track_speed.md
Last active March 17, 2025 14:52
Increase Mouse/Trackpad speed on OSX via Terminal 🔥

Speed up your Mouse/Trackpad on OSX

For those who want to use the Magic Mouse as a high end gaming mouse for the daily dev routine lol.

Get your current tracking speed

defaults read -g com.apple.mouse.scaling