Skip to content

Instantly share code, notes, and snippets.

View tongson's full-sized avatar
🎃
...

Eduardo Tongson tongson

🎃
...
View GitHub Profile
@tongson
tongson / material.terminal
Created June 23, 2021 10:19
macOS Terminal material theme
<?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>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw
NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2
@tongson
tongson / kapow_resource_tree.txt
Created April 13, 2021 10:30
2021-April-13::"kapow resource tree"
/
├─ request
│ ├──── method HTTP Method used (GET, POST)
│ ├──── host Host part of the URL
│ ├──── version HTTP version of the request
│ ├──── path Complete URL path (URL-unquoted)
│ ├──── remote IP address of client
│ ├──── matches
│ │ └──── <name> Previously matched URL path parts
@tongson
tongson / repo-add.diff
Created September 7, 2011 15:09
We don't need bsdtar -q (--fast-read)
--- repo-add
+++ repo-add
@@ -200,7 +200,7 @@ db_write_entry()
# read info from the zipped package
local line var val
- for line in $(bsdtar -xOqf "$pkgfile" .PKGINFO |
+ for line in $(bsdtar -xOf "$pkgfile" .PKGINFO |
grep -v '^#' | sed 's|\(\w*\)\s*=\s*\(.*\)|\1 \2|'); do
# bash awesomeness here- var is always one word, val is everything else
@tongson
tongson / gist:1192825
Created September 4, 2011 13:04
srcpac-0.10.4 diff for automated builds
--- /usr/bin/srcpac
+++ /usr/bin/srcpac
@@ -152,7 +152,7 @@
pkgdir="${ABSROOT}/${1}"
builddir=/var/srcpac/${pkg}
- MAKEPKGOPTS="-c -s"
+ MAKEPKGOPTS="-c -s -d"
[ $NODEPS -eq 1 ] && MAKEPKGOPTS="${MAKEPKGOPTS} -d"
[ $MAKEDEPS -eq 1 ] && MAKEPKGOPTS="${MAKEPKGOPTS} -r"
@tongson
tongson / gist:1172524
Created August 26, 2011 02:06
Interactive governor from Android. Diff for Linux 3.0.3.
diff linux/Documentation/cpu-freq/governors.txt linux/Documentation/cpu-freq/governors.txt
--- linux/Documentation/cpu-freq/governors.txt
+++ linux/Documentation/cpu-freq/governors.txt
@@ -28,6 +28,7 @@ Contents:
2.3 Userspace
2.4 Ondemand
2.5 Conservative
+2.6 Interactive
3. The Governor Interface in the CPUfreq Core