How to use:
./wordle.sh
Or try the unlimit mode:
import argparse | |
import logging | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--verbose', '-v', action='count', default=1) | |
args = parser.parse_args() | |
args.verbose = 40 - (10 * args.verbose) if args.verbose > 0 else 0 | |
logging.basicConfig(level=args.verbose, format='%(asctime)s %(levelname)s: %(message)s', |
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |
# If you use bash, this technique isn't really zsh specific. Adapt as needed. | |
source ~/keychain-environment-variables.sh | |
# AWS configuration example, after doing: | |
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID | |
# provide: "AKIAYOURACCESSKEY" | |
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY | |
# provide: "j1/yoursupersecret/password" | |
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID); | |
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY); |
#!/usr/bin/env zsh | |
## Update exts | |
# Author: Superbil | |
# website: https://gist.github.com/Superbil/860b906fa3370a55201a73d2b6396dd9 | |
# Use duti to setup player | |
# | |
# Usage update_exts.sh <bundle_id> | |
# | |
# Check argv |
# Calculate time between git commits | |
# Update rev-list target to your range or branch | |
# ref https://stackoverflow.com/questions/22725469/calculate-time-between-git-commits | |
for ix in `git rev-list @`; do | |
# get committer date, UNIX timestamp (%ct) | |
thists=`git log $ix -n 1 --format=%ct`; | |
prevts=`git log $ix~1 -n 1 --format=%ct 2>/dev/null`; | |
if [ ! -z "$prevts" ] ; then | |
delta=$(( $thists - $prevts )); | |
# get substring of hash (#ix) |
[ | |
{ | |
"uuid": "3baa759b-9afc-41ef-b770-c60e1d9383d2", | |
"description": "Filter%20rule%20to%20skip%20and%20prevent%20redirection%20tracking%20on%20multiple%20hosts.", | |
"tag": "filter-multiple", | |
"pattern": { | |
"scheme": "*", | |
"host": [ | |
"*.tradedoubler.com", | |
"out.reddit.com", |
Kernel Debug Kit for macOS - Read Me | |
Use the Kernel Debug Kit (KDK) to debug kernel-level code, such as kernel extensions you create. | |
Performing Two-Machine Debugging | |
The KDK supports the debugging of kernel-level code, such as kernel extensions, from a second Mac. | |
- The target device is the Mac that runs the code you want to debug. | |
- The host device is the Mac that runs the debugger. | |
Identify the Device Compatibility |
#!/bin/bash | |
# This script allows you to chroot ("work on") | |
# the raspbian sd card as if it's the raspberry pi | |
# on your Ubuntu desktop/laptop | |
# just much faster and more convenient | |
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
# make sure you have issued |
> LANG=en_US.UTF-8 git | |
usage: git [--version] [--help] [-C <path>] [-c <name>=<value>] | |
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] | |
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] | |
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] | |
<command> [<args>] | |
These are common Git commands used in various situations: | |
start a working area (see also: git help tutorial) |