Skip to content

Instantly share code, notes, and snippets.

View emjayoh's full-sized avatar

Matt Ogram emjayoh

View GitHub Profile
@emjayoh
emjayoh / README
Created May 10, 2020 23:19 — forked from dejanr/README
OSX, X11, dwm, urxvt, vim environment
OSX Apps
- Total Spaces, for keeping X11 in different space and faster switching
- MenuAndDockless for hidding topbar menu
X11 - Macports
- sudo port install xorg-server
- sudo port install xinit
- sudo port install terminus-font dejavu-fonts bitstream-fonts
Suckless - suckless.org
@emjayoh
emjayoh / customizing-vs-code.md
Created May 12, 2020 21:04 — forked from rzvdaniel/customizing-vs-code.md
Customizing VS Code for Two Fonts.

Customizing VS Code

I followed the instructions in this blog post Multiple Fonts: Alternative to Operator Mono in VSCode, but did not see any changes made to VS Code. After digging a bit, I discovered that all the CSS class names had changed. They’re now e.g. .mtk13, .mtk16 { … }.

Gotchas

  • Ensure it’s a file URL e.g. { "vscode_custom_css.imports": [ "file:///Users/Brian/Desktop/vscode-style.css" ] }
  • If you move the location of your file and update your user settings with the new location, you will need to disable and enable custom CSS cmd+shift+p.
  • Also, anytime you change the style in your custom CSS file, you need to disable, then re-enable the extension.

For reference

@emjayoh
emjayoh / customizing-vs-code.md
Created May 13, 2020 15:37 — forked from nickytonline/customizing-vs-code.md
Customizing VS Code for Two Fonts.

Customizing VS Code

I followed the instructions in this blog post Multiple Fonts: Alternative to Operator Mono in VSCode, but did not see any changes made to VS Code. After digging a bit, I discovered that all the CSS class names had changed. They’re now e.g. .mtk13, .mtk16 { … }.

Gotchas

  • Ensure it’s a file URL e.g. { "vscode_custom_css.imports": [ "file:///Users/Brian/Desktop/vscode-style.css" ] }
  • If you move the location of your file and update your user settings with the new location, you will need to disable and enable custom CSS cmd+shift+p.
  • Also, anytime you change the style in your custom CSS file, you need to disable, then re-enable the extension.

For reference

@emjayoh
emjayoh / brew-nerd-fonts.sh
Last active April 8, 2021 07:33
[install all brew nerd fonts] using grep etc #nerdfonts #fonts #homebrew #bash
brew cask install $( brew search font | grep nerd | tr '\n' ' ' )
@emjayoh
emjayoh / keybase-proof.md
Last active April 19, 2021 06:55
keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@emjayoh
emjayoh / cask_upgrade.sh
Created June 4, 2020 14:56
Script upgrading outdated brew casks
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew cleanup;)
(set -x; brew cask cleanup;)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
@emjayoh
emjayoh / SlackPGP.js
Last active January 13, 2021 08:53 — forked from lmarkus/SlackPGP.js
[PGP over Slack using Greasemonkey] Check for update... #slack #greasemonkey #js #pgp #security
// ==UserScript==
// @name SlackPGP
// @namespace slack
// @description slackPGP
// @include https://*.slack.com/messages/*
// @version 1
// @grant none
// ==/UserScript==
@emjayoh
emjayoh / wordcount.sh
Last active January 13, 2021 08:49
[Word count all js files] #bash #js #dev #stats
find . -name '*.js' | xargs wc -l
@emjayoh
emjayoh / xrandr.sh
Last active January 13, 2021 08:53 — forked from chirag64/xrandr.sh
[Resolution adjustment xrandr] Useful for pesky resolution issues in linux #linux #graphics #xrandr #archlinux #bash
#!/bin/bash
#If no argument is specified, ask for it and exit
if [[ -z "$@" ]];
then
echo "An argument is needed to run this script";
exit
else
arg="$@"
#Basic check to make sure argument number is valid. If not, display error and exit
if [[ $(($(echo $arg | grep -o "\s" | wc --chars) / 2 )) -ne 2 ]];