Skip to content

Instantly share code, notes, and snippets.

View pblanton's full-sized avatar
💭
All your base, ba, er, um... you know the thing.

Phillip H. Blanton pblanton

💭
All your base, ba, er, um... you know the thing.
View GitHub Profile
@pblanton
pblanton / Open In Webstorm
Last active December 15, 2020 20:49
Windows Context Menu Items
# Taken from https://gist.github.com/mac2000/cd3560b98ca5e23abe9f3166e40d2ed2
@ECHO OFF
REM Remove registry if any
REG DELETE "HKEY_CLASSES_ROOT\Directory\shell\WebStorm" /f
REM Get WebStorm executable path
FOR /F "usebackq tokens=3*" %%A IN (`REG QUERY "HKEY_CLASSES_ROOT\Applications\WebStorm.exe\shell\open\command"`) DO (
SET WEBSTORM=%%A %%B
@pblanton
pblanton / xrandr.sh
Last active December 16, 2020 14:30 — forked from chirag64/xrandr.sh
!/bin/bash
#If no argument is specified, ask for it and exit
if [[ -z "$@" ]];
then
echo "An argument is needed to run this script. For instance..."
echo ">./xrandr.sh 3840 2160 60"
echo "will set a resolution of 4k @ 60 Hz."
exit
else
arg="$@"