Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Saus uriel1998

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 {
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: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
@uriel1998
uriel1998 / eOSUDS.sh
Last active Oct 12, 2021 — forked from ImranR98/eOSUDS.sh
elementaryOS 6 has great dark themes, but they only apply to "curated" appcenter apps. This script forces the system theme to work with regular Debian packages as well as non-curated Flatpak apps. It also optionally changes the wallpaper based on the theme. It also supports changing themes for the Mailspring email app (both .deb and Snap versions).
View eOSUDS.sh
#!/usr/bin/bash
# =======================================
# eOS-Universal-Dark-Style
# =======================================
# elementaryOS 6 has great dark themes, but they only apply to "curated" appcenter apps
# This script forces the system theme to work with regular Debian packages as well as non-curated Flatpak apps
# It also optionally changes the wallpaper based on the theme
@uriel1998
uriel1998 / gist:1636d28af562bb85297041a6b9d450aa
Last active Oct 20, 2021
Comparison of a simple document in multiple formats
View gist:1636d28af562bb85297041a6b9d450aa
########### MARKDOWN ###########
Easily readable; you can hand this to someone who has never seen markdown
before and they won't have a problem. (You can use underscores instead of
asterisks, but I've found asterisks make more intuitive sense
to people who aren't familiar with the format.) Filesize 157 bytes.
# This is a level one header
## This is a level two header
### This is a level three header