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 | |
if [ -z "$1" ]; then | |
echo "usage: $0 <file.wg>" | |
exit | |
fi | |
egrep '.documents.[0-9]+.name' "$1" | awk -F ': ' '{ print $2;}' |
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
<html> | |
<head> | |
<style> | |
body { | |
background-color: black | |
} | |
</style> | |
<title>US Gov't Shutdown Clock</title> | |
</head> | |
<body> |
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> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
int main(int argc, const char *argv[]) | |
{ | |
uint8_t b = 0, c = 128; | |
int i; |
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 | |
TIMEFILE=$(dirname $0)/fstrim.timer | |
LOGFILE=/var/log/fstrim.log | |
date -u >> $LOGFILE | |
/usr/bin/fstrim -a -v >> $LOGFILE 2>&1 | |
touch $TIMEFILE |
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 | |
echo "Starting a real editor" | |
sleep 1 | |
exec vim "$@" |
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
... | |
# adblock | |
addn-hosts=/etc/hosts.adblock | |
... |
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 | |
case "$1" in | |
"up" ) | |
amixer set Master 1%+ | |
;; | |
"down" ) | |
amixer set Master 1%- | |
;; | |
"toggle" ) |
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 | |
# root check | |
if [ `id -u` != "0" ]; then | |
echo "This should be run as root." | |
exit | |
fi | |
# Dependency check for curl and rsync | |
missing=0 |
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 | |
# xupavail - see how many packages are available for upgrade | |
SUDO= | |
if command -v sudo >/dev/null && | |
sudo -l | grep -q -e ' ALL$' -e xbps-install; then | |
SUDO=sudo | |
elif [ "$(whoami)" != root ]; then | |
SUDO='su root -c '\''"$@"'\'' -- -' | |
fi |
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 | |
pkg="$1" | |
shift | |
if [ -z $pkg ]; then | |
echo "usage: $0 <pkg>" | |
exit | |
fi |