Skip to content

Instantly share code, notes, and snippets.

Ryan P. C. McQuen ryanpcmcquen

Block or report user

Report or block ryanpcmcquen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View win_config.bat
:: curl https://gist.githubusercontent.com/ryanpcmcquen/1ccef39e0bb4c75be0d7d834b25bd6bb/raw/win_config.bat -o "%UserProfile%\win_config.bat" && "%UserProfile%\win_config.bat"
curl https://raw.githubusercontent.com/ryanpcmcquen/sublime_witness/master/Witness.sublime-color-scheme -o "%AppData%\Sublime Text 3\Packages\User\Witness.sublime-color-scheme"
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/SublimeText/Default.sublime-keymap -o "%AppData%\Sublime Text 3\Packages\User\Default.sublime-keymap"
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/SublimeText/Default.sublime-mousemap -o "%AppData%\Sublime Text 3\Packages\User\Default.sublime-mousemap"
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/SublimeText/Preferences.sublime-settings -o "%AppData%\Sublime Text 3\Packages\User\Preferences.sublime-settings"
curl https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/.emacs -o "%AppData%\.emacs"
@ryanpcmcquen
ryanpcmcquen / fish_prompt.fish
Last active Jun 5, 2019
The McQuen fish prompt.
View fish_prompt.fish
function fish_prompt
# Show entire directory string:
set -g fish_prompt_pwd_dir_length 0
# - green lines if the last return command is OK, red otherwise
# - your user name, in red if root or yellow otherwise
# - your hostname, in cyan if ssh or blue otherwise
# - the current path (with prompt_pwd)
# - date +%X
# - the current virtual environment, if any
# - the current git status, if any, with __fish_git_prompt
View UNDO_CTRL_AND_CAPS_LOCK_SWAP.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
@ryanpcmcquen
ryanpcmcquen / McQuen.el
Created May 10, 2019
Emacs Prelude customizations.
View McQuen.el
(add-hook 'prelude-prog-mode-hook (lambda () (smartparens-mode -1)) t)
(set-face-attribute 'default nil :height 150)
@ryanpcmcquen
ryanpcmcquen / HOW_DO_I_DO_IT.md
Created May 10, 2019
Disable `smartparens` on Emacs Prelude.
View HOW_DO_I_DO_IT.md

Add this to ~/.emacs.d/personal/custom.el (or some other file in ~/.emacs.d/personal/):

(add-hook 'prelude-prog-mode-hook (lambda () (smartparens-mode -1)) t)
@ryanpcmcquen
ryanpcmcquen / typewriter.css
Last active May 10, 2019
Old school typing with new school code.
View typewriter.css
.input {
display: none;
}
.output {
display: flex;
align-items: center;
justify-content: center;
color: #000000;
font-family: monospace;
View textadept_run_standard_before_save.lua
--[[
JavaScript:
--]]
standard = '/usr/local/bin/node /usr/local/bin/standard --fix '
-- Format JavaScript with the 'Compile' command.
textadept.run.compile_commands.javascript = standard .. ' "%f"'
-- Format JavaScript before save:
events.connect(
View fix_steam_lubuntu_19.04.md

If you are receiving an error like this in Steam:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Steam: An X Error occurred
X Error of failed request:  GLXBadContext
Major opcode of failed request:  152
Serial number of failed request:  50
xerror_handler: X failed, continuing
Steam: An X Error occurred
@ryanpcmcquen
ryanpcmcquen / sanity.sh
Created Jan 31, 2019
Reset file permissions to sane defaults.
View sanity.sh
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
You can’t perform that action at this time.