Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / gist:14f8b7e931ba4dbf65e62618d276c6c5
Created Aug 30, 2021
top level tld for filtering in a pastebin type of application
View gist:14f8b7e931ba4dbf65e62618d276c6c5
.ac, .act, .ad, .ae, .aero, .af, .ag, .ai, .al, .am, .an, .ao, .ar, .arpa, .as, .at, .au, .aw, .ax, .az, .bb, .bd, .be, .bf, .bm, .bn, .bo, .br, .bs, .bt, .bw, .by, .ca, .cc, .cd, .ch, .ck, .cn, .co, .com, .cr, .cu, .cx, .cy, .dm, .do, .domains, .dz, .ec, .ee, .eg, .es, .et, .fi, .fj, .fk, .fr, .ge, .gg, .gh, .gi, .gn, .gp, .gr, .hk, .hn, .hr, .ht, .hu, .id, .ie, .il, .im, .in, .ip6.arpa, .ir, .it, .je, .jm, .jo, .jp, .kh, .kr, .kw, .ky, .kz, .lb, .lc, .level, .li, .lk, .lr, .ls, .lt, .lu, .lv, .ly, .ma, .mc, .mg, .mil, .mk, .mo, .mobi, .mt, .mu, .mv, .mw, .mx, .my, .ng, .ni, .nl, .no, .np, .nr, .nsw, .nt, .nz, .om, .or, .pa, .pe, .pf, .pg, .ph, .pk, .pl, .plp, .pr, .pro, .ps, .pt, .py, .qld, .ro, .ru, .rw, .sa, .sb, .sc, .sd, .se, .sg, .sv, .sy, .tas, .th, .tj, .tn, .to, .tp, .tr, .tt, .tv, .tw, .tz, .ua, .ug, .uk, .us, .uses, .uy, .va, .ve, .vi, .vic, .vn, .wa, .ye, .yu, .za, .zm, .zw
View gist:a1f4b41cd37c58dcd5225727d6378ce0
[Unit]
Description=Start mpdq service
After=mpd.service
[Service]
Type=simple
RemainAfterExit=yes
User=rock64
Group=rock64
ExecStart=/home/rock64/apps/bin/mpdq-start.sh
@uriel1998
uriel1998 / gist:3c67ae0a96c4d6c58b5a0b26e0b207ea
Created Aug 26, 2021
/etc/asoundrc for Rock64 with Ayufan Kernel
View gist:3c67ae0a96c4d6c58b5a0b26e0b207ea
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
pcm.dmixed {
type dmix
ipc_key 1027
# ipc_key_add_uid 0
ipc_perm 0660
slave {
@uriel1998
uriel1998 / openbox_tiling.rc
Created Jun 26, 2019
Openbox tiling emulation keybinds
View openbox_tiling.rc
<!-- Keybindings for moving windows -->
<keybind key="mod4-Left">
<action name="GoToDesktop">
<to>west</to>
<wrap>yes</wrap>
</action>
</keybind>
<keybind key="mod4-Right">
<action name="GoToDesktop">
<to>east</to>
@uriel1998
uriel1998 / plaintext-convert.sh
Last active Oct 15, 2020 — forked from sbrl/plaintext-convert.sh
Converter for pirate/bookmark-archiver that converts a plain-text list of urls into something it can understand.
View plaintext-convert.sh
#!/bin/bash
#set -o errexit
#set -o nounset
##############
# This program converts a plain-text list of urls to the
# bookmark-archiver HTML format.
#
# Requirements: curl, xidel
# Usage:
@uriel1998
uriel1998 / usera_dropbox.sh
Created May 3, 2018
Script to run dropbox for multiple users on a headless server
View usera_dropbox.sh
#!/bin/bash
unset DISPLAY
HOME="/home/user/accountA"
/home/user/accountA/.dropbox-dist/dropboxd
@uriel1998
uriel1998 / touchpad.sh
Created Jan 7, 2017
Bash script to determine xinput number of touchpad (which changes!) and disable/enable
View touchpad.sh
#!/bin/bash
pad_name=$(xinput list --name-only | grep TouchPad)
id=$(xinput list --id-only "$pad_name")
case "$1" in
[Oo][Nn]*) xinput set-prop $id "Device Enabled" 1
;;
[Oo][Ff]*) xinput set-prop $id "Device Enabled" 0
;;
@uriel1998
uriel1998 / keybase.md
Created Sep 7, 2016
keybase.io verification
View keybase.md

Keybase proof

I hereby claim:

  • I am uriel1998 on github.
  • I am stevensaus (https://keybase.io/stevensaus) on keybase.
  • I have a public key whose fingerprint is 9211 C1BC 8287 EFF0 63B4 E330 E54D 0B93 DD2F 731F

To claim this, I am signing this object:

@uriel1998
uriel1998 / picframe.sh
Created Aug 24, 2016
Pictureframe With Conky
View picframe.sh
#!/bin/bash
# Exactly as found from https://ubuntuforums.org/showthread.php?t=1609575
# Except I added in where if you chose a directory, it'll pic a random
# picture from it.
## Picture frame via conky
## Author: Anjishnu Sarkar
## TODO:
@uriel1998
uriel1998 / subdir_copy.sh
Created Aug 14, 2016
Small shell script to copy each file in a directory into a subdirectory named the same as the filename (but not extension!) and then move the file into it.
View subdir_copy.sh
#!/bin/bash
dir=$(echo "$PWD")
for f in *
do
if [ -f "$f" ];then
# this is redundant due to how I'm searching, but why not?
filename=$(basename "$f")
extension="${filename##*.}"