Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View uriel1998's full-sized avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / keybase.md
Created September 7, 2016 14:14
keybase.io verification

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 January 7, 2017 18:41
Bash script to determine xinput number of touchpad (which changes!) and disable/enable
#!/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 13:03
Script to run dropbox for multiple users on a headless server
#!/bin/bash
unset DISPLAY
HOME="/home/user/accountA"
/home/user/accountA/.dropbox-dist/dropboxd
@uriel1998
uriel1998 / plaintext-convert.sh
Last active October 15, 2020 04:17 — forked from sbrl/plaintext-convert.sh
Converter for pirate/bookmark-archiver that converts a plain-text list of urls into something it can understand.
#!/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 June 26, 2019 14:06
Openbox tiling emulation keybinds
<!-- 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 August 26, 2021 23:25
/etc/asoundrc for Rock64 with Ayufan Kernel
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 / gist:a1f4b41cd37c58dcd5225727d6378ce0
Created August 26, 2021 23:30
mpdq systemd service file
[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 August 30, 2021 18:46
top level tld for filtering in a pastebin type of application
.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 October 12, 2021 23:47 — 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).
#!/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 October 20, 2021 13:23
Comparison of a simple document in multiple formats
########### 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