This file contains hidden or 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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] | |
"DisallowShaking"=dword:00000001 |
This file contains hidden or 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 os.path | |
from urllib.request import urlopen | |
import requests | |
from tqdm import tqdm | |
def download_from_url(url, dst): | |
""" | |
@param: url to download file | |
@param: dst place to put the file |
This file contains hidden or 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 | |
OLDCOMMIT=$1 | |
OUTDIR="__UPDATES__" | |
DELETED="" | |
FILES=`git diff --name-only $OLDCOMMIT` | |
rm --force --recursive "$OUTDIR" |
This file contains hidden or 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
function formDataToQueryString(formData) { | |
var queryParams = []; | |
for(var pair of formData.entries()) { | |
queryParams.push(encodeURIComponent(pair[0]) + "=" + encodeURIComponent(pair[1])); | |
} | |
return queryParams.join('&'); | |
} |
This file contains hidden or 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
<NotepadPlus> | |
<UserLang name="BrightScript-Obsidian" ext="brs"> | |
<Settings> | |
<Global caseIgnored="yes" /> | |
<TreatAsSymbol comment="no" commentLine="no" /> | |
<Prefix words1="no" words2="no" words3="no" words4="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Delimiters">"00"00</Keywords> | |
<Keywords name="Folder+"></Keywords> |
This file contains hidden or 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
/** | |
* Retrieve URL Parameters <http://stackoverflow.com/a/1099670> | |
* @param {string} [qs=window.location.search] - Query string | |
* @returns {object} | |
* | |
* @example | |
* var query = getQueryParams(document.location.search); | |
* alert(query.foo); | |
*/ | |
function getQueryParams(qs) { |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# Automatic Mouse Clicker | |
# For use with the game [**Crush Crush**](http://store.steampowered.com/app/459820/) | |
# Hold down CTRL+SHIFT to save mouse position | |
# Hold down ALT to move mouse and rapidly send a mouse click events | |
# (Linux Only: requires programs `xinput` and `xdotool`) | |
import re | |
import subprocess |
This file contains hidden or 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/sh | |
sudo apt-get install --yes docker.io | |
sudo usermod -aG docker $USER | |
su - $USER |
This file contains hidden or 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 | |
## variables ## | |
NUM=0 | |
PRE="" | |
X="" | |
Y="" | |
RES="" | |
QAL="" | |
REV="" |
This file contains hidden or 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/sh | |
sudo apt-get install --yes nginx php5-fpm | |
sudo cp /etc/nginx/sites-enabled/default /etc/nginx/sites-available/default-backup-$(date +%s) | |
mkdir --parents /home/$USER/nginx/www | |
echo "server { | |
listen 80 default_server; |
NewerOlder