on macOS
brew install hidapi
brew install ddcctl
on Linux
import xlsxwriter | |
from PIL import Image | |
import sys | |
def rgb2hex(r, g, b): | |
return '#{:02x}{:02x}{:02x}'.format(r, g, b) | |
if len(sys.argv) != 3: |
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
sudo killall -9 multipassd && sleep 5 && sudo chgrp staff /var/run/multipass_socket && multipass list |
# use vanilla vpnc instead of the wrapped one in OpenWrt, which handles route table properly | |
wget http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script | |
/usr/sbin/openconnect $SERVER -b --script ./vpnc-script -u $USER | |
# update iptables manually instead of UCI | |
iptables -I zone_wan_dest_ACCEPT 5 -o tun0 -j ACCEPT | |
iptables -I FORWARD 5 -i tun0 -j zone_wan_forward | |
iptables -t nat -I POSTROUTING 5 -o tun0 -j zone_wan_postrouting |
openconnect -b -u USER SERVER |
#!/bin/sh | |
## brew install imagemagick | |
OPT="-crop 3x3@ +repage +adjoin -fuzz 20% -trim -bordercolor White -border 10x10" | |
mkdir -p tiled | |
convert PLACEMENT-CARDS/PLACEMENT-CARDS-12-2016.jpg $OPT tiled/0PLACEMENT-1-tiles%02d.jpg | |
convert PLACEMENT-CARDS/PLACEMENT-CARDS-12-20162.jpg $OPT tiled/PLACEMENT-2-tiles%02d.jpg | |
convert PLACEMENT-CARDS/PLACEMENT-CARDS-12-20163.jpg $OPT tiled/PLACEMENT-3-tiles%02d.jpg |
I hereby claim:
To claim this, I am signing this object:
Sampling process 91414 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling Quicksilver (pid 91414) every 1 millisecond | |
Process: Quicksilver [91414] | |
Path: /Applications/Quicksilver.app/Contents/MacOS/Quicksilver | |
Load Address: 0x100000000 | |
Identifier: com.blacktree.Quicksilver | |
Version: ß72 (3946) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] |