I hereby claim:
- I am jontsai on github.
- I am jontsai (https://keybase.io/jontsai) on keybase.
- I have a public key ASDmxSpRRSFT5vSN-pL7vjineIuQHhDQZKkXDBIwj_v-_Ao
To claim this, I am signing this object:
# Python Standard Library Imports | |
import re | |
# Django Imports | |
from django.core.handlers import base | |
from django.core.handlers.wsgi import LimitedStream | |
from django.core.handlers.wsgi import WSGIHandler | |
from django.core.handlers.wsgi import WSGIRequest | |
from django.core.handlers.wsgi import get_script_name | |
from django.utils.encoding import repercent_broken_unicode |
#!/bin/sh | |
# Fill in with your own values | |
REMOTE_USER=your_username | |
REMOTE_HOST=dev.acme.com | |
# Make sure to end in a slash | |
LOCAL_DIR="$HOME/path/to/local/dev/" | |
REMOTE_DIR="/path/to/remote/dev/" | |
echo "Checking for fswatch installation" |
#!/bin/sh | |
# Source: https://help.github.com/en/articles/changing-author-info | |
git filter-branch --env-filter ' | |
OLD_EMAIL="your-old-email@example.com" | |
CORRECT_NAME="Your Correct Name" | |
CORRECT_EMAIL="your-correct-email@example.com" |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Load a YUI Gallery module locally for testing. | |
* | |
* Assumes you've built your module with ant and have a local copy of the | |
* yui3-gallery repo. | |
* | |
* This will override Loader's Gallery configuration. Existing Gallery modules | |
* will load locally, and your new module should load locally as well. | |
* | |
* Props to Caridy for helping piece this together. |
import java.util.concurrent.Executors | |
val pool = java.util.concurrent.Executors.newFixedThreadPool(2) | |
1 to 10 foreach { x => | |
pool.execute( | |
new Runnable { | |
def run { | |
Thread.sleep(2000) | |
println("n: %s, thread: %s".format(x, Thread.currentThread.getId)) |
import java.util.concurrent.Executors | |
val pool = java.util.concurrent.Executors.newFixedThreadPool(2) | |
1 to 10 foreach { x => | |
pool.execute( | |
new Runnable { | |
def run { | |
Thread.sleep(2000) | |
println("n: %s, thread: %s".format(x, Thread.currentThread.getId)) |
#!/bin/bash -e | |
# | |
# Purpose: Pack a Chromium extension directory into crx format | |
# Source: https://developer.chrome.com/extensions/crx | |
if test $# -ne 2; then | |
echo "Usage: crxmake.sh <extension dir> <pem path>" | |
exit 1 | |
fi |
import pprint | |
import re | |
import requests | |
DATADOG_OPTIONS = { | |
'api_key': 'REDACTED', | |
'app_key' : 'REDACTED', | |
} | |
LATEST_DATADOG_AGENT_VERSION = '5.13.2' |