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
# dsnooped input | |
# dsnooped allows multiple applications to use an input device (microphone) | |
# without dsnoop, devices are exclusive, and the mic can only be used by one app at a time. | |
pcm.dsnooped { | |
type dsnoop | |
ipc_key 5978293 # must be unique for all dmix plugins!!!! | |
ipc_key_add_uid yes | |
slave { | |
pcm "hw:Microphone" | |
channels 2 |
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 zsh | |
# contents of file in an array, read from file as argv[1] | |
sums=($(<${1})) | |
# get the number of pairs | |
for n in {1..${#sums}..2}; do | |
first=${sums[${n}]} | |
second=${sums[$(( ${n} + 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 zsh | |
numbers=($(<${1})) | |
results=() | |
# getting 0-10, ..., 90-99 | |
for i in {0..9}; do | |
lower=$(( ${i} * 10 )) | |
upper=$(( ${lower} + 9 )) |
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 zsh | |
# xxd ignores the first byte for some reason, so pad it | |
hex="66 $(<${1})" | |
print ${hex} | xxd -r |
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 zsh | |
numbers=($(<${1})) | |
for n in {1..${#numbers}..2}; do | |
first=${numbers[n]} | |
second=${numbers[$(( n + 1 ))]} | |
sum=0 | |
for i in {${first}..${second}}; do |
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 zsh | |
input=($(<${1})) | |
for word in ${input}; do | |
if [[ ${word} == $(print -n ${word} | rev) ]]; then | |
print "True" | |
else | |
print "False" | |
fi |
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
4,5c4,5 | |
< pkgname=python-${_pkgname} | |
< pkgver=1.0 | |
--- | |
> pkgname=(python-${_pkgname} python2-${_pkgname}) | |
> pkgver=3.8.0 | |
14,15c14 | |
< provides=('python2-tqdm') | |
< conflicts=('python2-tqdm') | |
--- |
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 zsh | |
# https://gist.github.com/Eriner/6be8c43d8aff8134f7d8fb547612aadf | |
filetypes=(html xml css) | |
zcomp() { | |
print "zopfli compressing ${1}" | |
for file in ./_site/**/*.${1}; do | |
zopfli --i1000 ${file} | |
done |
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
{ | |
"kind": "Event", | |
"apiVersion": "audit.k8s.io/v1", | |
"level": "Request", | |
"auditID": "547daa8a-bed4-33a2-7bd4-43341aab43ae", | |
"stage": "RequestReceived", | |
"requestURI": "/apis/extensions/v1beta1/namespaces/default/deployments/soluble-deployment/scale", | |
"verb": "update", | |
"user": { | |
"username": "kubernetes-admin", |
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
AAA Certificate Services | |
Amazon Root CA* | |
Apple Root* | |
Apple Worldwide Developer Relations Certificate Authority | |
Baltimore CyberTrust Root | |
com.apple.kerberos.kdc | |
com.apple.systemdefault | |
COMODO Certification Authority | |
COMODO ECC Certification Authority | |
COMODO RSA Certification Authority |
OlderNewer