# Credit: pwnsdx https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21; nebular https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3#gistcomment-3019082 | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to disable SIP: Reboot to Recovery, in Terminal csrutil disable | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents | |
# List disabled services: launchctl print-disabled user/501 |grep true & launchctl print-disabled system |grep true |
cd | |
# you can do this all in one command | |
wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static | |
apk add python3 |
// ==UserScript== | |
// @name iOS Shortcut Preview | |
// @namespace https://www.atnbueno.com/ | |
// @match https://showcuts.app/share/view | |
// @match https://www.icloud.com/shortcuts/* | |
// @version 2.0 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
/* |
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
#!/bin/bash | |
PY2_CONFIG_DIR=$(sudo find /usr/lib -type d -regex ".*python2.[0-9]/config[^/]*") | |
PY3_CONFIG_DIR=$(sudo find /usr/lib -type d -regex ".*python3.[0-9]/config[^/]*") | |
if ( [ -d "$PY2_CONFIG_DIR" ] || [ -d "$PY3_CONFIG_DIR" ] ) ; then | |
py2_arg="--with-python-config-dir=$PY2_CONFIG_DIR" | |
py3_arg="--with-python3-config-dir=$PY3_CONFIG_DIR" | |
fi |
Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
The following program is a basic proof-of-concept implementation of the program synthesis technique of Programming by Example, as included in Microsoft Excel FlashFill.
The data-set "features.csv" consists of extracted features from input/output examples, as a user would provide prior to beginning program synthesis. For example, to produce a program that extracts the first character of every input string, the user might give examples of strings as input with lengths of 1, 2, or 5 characters and an output example of a single character. We can guess the most likely program to select as a solution might be "firstCharacter". Similarly, if the input consists of numbers, we can guess the most likely program to select as a solution might be "addition".
#!/bin/sh | |
set -x | |
USER="$1" | |
API_URL="https://api.github.com/users/${USER}/repos?type=owner" | |
DATE=$(date +"%Y%m%d") | |
TEMP_DIR="github_${USER}_${DATE}" | |
BACKUP_FILE="${TEMP_DIR}.tgz" |
# Remove invisible dotfiles from a directory or USB drive | |
# Usage: | |
# cd /Volumes/MY_USB | |
# clean_usb.sh | |
dot_clean $(pwd) | |
rm -rf .fseventsd | |
rm -rf .TemporaryItems |