This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main] | |
"SendIntranetTraffictoInternetExplorer"=hex:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inputFile=$1 | |
FPS=15 | |
WIDTH=1200 | |
#Generate palette for better quality | |
ffmpeg -i $inputFile -vf fps=$FPS,scale=$WIDTH:-1:flags=lanczos,palettegen tmp_palette.png | |
#Generate gif using palette |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""README | |
"" 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from turtle import * | |
size = 800 | |
minimum = 8 | |
pythagoras = math.sqrt(3) / 2 | |
def s(l, x, y): | |
if l>minimum: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n 'Current price of bitcoin in ' ; curl -s https://blockchain.info/ticker | 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 https://blockchain.info/ticker | grep CAD | tr -s ' ' | tr -d '"' | tr -d ' ' | cut -d ':' -f 1,3 | cut -d ',' -f 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" > ~/.Xmodmap && xmodmap ~/.Xmodmap |