This file contains hidden or 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
| exec -l zsh | |
| # ____....---\ | |
| # _____.....----""""""" \ | |
| # ------"""""""""" \ | |
| # /""""\ ^ ^ \ | |
| # \ / ""\ | \/|/| \ | |
| # \ .--""" """" / / | | |
| # \ """""""""" _---"" / " | | |
| # \ -"" _ \ \ | |
| # \ __.___ /"""--|_ "" /`| | |
This file contains hidden or 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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>org.wholezero.watchpath</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/bin/zsh</string> | |
| <string>-lc</string> |
This file contains hidden or 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
| #pragma once | |
| #include <cassert> | |
| #include <cstdint> | |
| #include <exception> | |
| #include <new> | |
| #include <type_traits> | |
| #include <utility> | |
| namespace detail { |
This file contains hidden or 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
| #!/bin/sh | |
| set -eux | |
| NDISPLAY=:13 | |
| if [ $# -ge 1 ] | |
| then | |
| case $1 in | |
| :*) | |
| NDISPLAY=$1 | |
| shift |
This file contains hidden or 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
| #!/bin/sh | |
| set -eu | |
| tmpfile=$(mktemp) | |
| xauth -q -f $tmpfile generate $DISPLAY . untrusted | |
| xauth_data=$(xauth -f $tmpfile nlist $DISPLAY) | |
| rm -f $tmpfile | |
| DOAS_XAUTH="xauth -q remove $DISPLAY ; echo $xauth_data | xauth nmerge - ;" | |
| export DOAS_XAUTH |
This file contains hidden or 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
| #include <stdio.h> | |
| int main() { | |
| while (1) puts("whee"); | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| # usage: flag <flag> [args...] | |
| # e.g.: flag --foo= x y z | |
| # --foo=x --foo=y --foo=z | |
| trap "awk '/^# /' $(which $0) | cut -d' ' -f2-" EXIT | |
| set -eu; flag=$1; shift; for arg in "$@"; do echo $flag$arg; done | |
| exec true |
This file contains hidden or 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
| #!/bin/sh | |
| exec git $@ |
This file contains hidden or 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
| #include <cstdlib> | |
| #include <exception> | |
| #include <iostream> | |
| #include <optional> | |
| #include <sstream> | |
| #include <utility> | |
| #define LOG_IF(TEST, LEVEL) \ | |
| if (!(TEST)) { \ |
This file contains hidden or 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
| #include <cstdio> | |
| #include <exception> | |
| #include <utility> | |
| // hypothetically... | |
| class MyException : public std::exception { | |
| public: | |
| const char *what() const noexcept { | |
| return "nope"; |
NewerOlder