$ python ./main.py
PRE-CHANGE
First (direct): I am first
First (attribute): I am first
Second (direct): I am second
Second (attribute): I am second
CHANGE 1
This file contains 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 bash | |
set -euo pipefail | |
git diff --numstat "$@" | awk '{ sum_plus+=$1; sum_minus+=$2 } END { print("+++++ ", sum_plus); print("----- ", sum_minus); }' |
This file contains 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 bash | |
set -euo pipefail | |
if [ $# -lt 1 ]; then | |
printf 'USAGE: list-paths <command>\n' 1>&2 | |
exit 1 | |
fi | |
bin="$1" | |
found=0 |
This file contains 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 | |
import fileinput | |
import re | |
# 7-bit C1 ANSI sequences | |
ansi_escape = re.compile(r''' | |
\x1B # ESC | |
(?: # 7-bit C1 Fe (except CSI) | |
[@-Z\\-_] |
This file contains 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
from typing import List | |
import json | |
def is_wildcard(email) -> bool: | |
return bool('*' in email) | |
def main(): |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.thelonelyghost.fix-jamf-firefox</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/bin/zsh</string> | |
<string>-c</string> |
This file contains 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
# Send the log output from this script to user-data.log, syslog, and the console | |
# From: https://alestic.com/2010/12/ec2-user-data-output/ | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 |
This file contains 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 bash | |
set -euo pipefail | |
nativefier --name Outlook --disable-dev-tools --disable-context-menu --single-instance --counter --bounce https://outlook.office.com/mail/inbox --internal-urls '.*?\.(microsoft|okta|office)\.com.*?' |
This file contains 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
134,136c134,136 | |
< -exec \ | |
< sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 '{}' \ | |
< \; | |
--- | |
> | sort | while read file; do | |
> sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 "$file" | |
> done |
I hereby claim:
- I am thelonelyghost on github.
- I am thelonelyghost (https://keybase.io/thelonelyghost) on keybase.
- I have a public key ASBb1XemZCfzr3r1d8SR07egFvr_vOKeoeYaqDwz28fr4Qo
To claim this, I am signing this object:
NewerOlder