Skip to content

Instantly share code, notes, and snippets.


Martin Wallace marty-Wallace

Block or report user

Report or block marty-Wallace

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
marty-Wallace / disableCapsLock.reg
Created Sep 11, 2019
Disables caps lock in windows.
View disableCapsLock.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,3a,00,00,00,00,00
marty-Wallace /
Created Feb 14, 2018
Encode a .ogv to a .gif. Requires ffmpeg
#Generate palette for better quality
ffmpeg -i $inputFile -vf fps=$FPS,scale=$WIDTH:-1:flags=lanczos,palettegen tmp_palette.png
#Generate gif using palette
marty-Wallace / .ideavimrc
Created Jan 16, 2018
Bare bones vimrc to make IdeaVim stop fucking beeping + a few other essentials
View .ideavimrc
"" This file should be called .ideavimrc on a linux/unix system or _ideavimrc on a windows system.
"" You will need to restart intellij once the file is added.
" Makes moving the cursor function as expected with wrapped lines
noremap j gj
noremap k gk
" This will keep the cursor at least 15 lines away from the top or bottom of the editor window
set scrolloff=15
marty-Wallace /
Last active Mar 16, 2017
python progress bar for terminals
import sys
def drawProgressBar(percent_done, barLength = 40):
"""Display an updating progress bar in a terminal
:percent_done: the percent done to display
:barLength: how many chars long the bar is
:returns: None
marty-Wallace / copy_paste.bash.alias
Created Mar 15, 2017
bash aliases for copy and paste with Xclip
View copy_paste.bash.alias
#copies the piped input onto the clipboard
alias copy="xclip -selection c"
#pastes the clipboards contents into the terminal
alias paste="xclip -selection clipboard -o"
marty-Wallace /
Created Mar 14, 2017
Draw a sierpinsky triangle with Turtle graphics
import math
from turtle import *
size = 800
minimum = 8
pythagoras = math.sqrt(3) / 2
def s(l, x, y):
if l>minimum:
marty-Wallace /
Created Mar 10, 2017
Check the current market price of Bitcoin in USD and CAD and print it out
echo -n 'Current price of bitcoin in ' ; curl -s | grep USD | tr -s ' ' | tr -d '"' | tr -d ' ' | cut -d ':' -f 1,3 | cut -d ',' -f 1
echo -n 'Current price of bitcoin in ' ; curl -s | grep CAD | tr -s ' ' | tr -d '"' | tr -d ' ' | cut -d ':' -f 1,3 | cut -d ',' -f 1
marty-Wallace /
Last active Dec 28, 2016
Reverses Scrolling for Linux system
echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap
You can’t perform that action at this time.