Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / simple_covers.sh
Created Apr 26, 2014
A simple cover art downloader/extractor.
View simple_covers.sh
#!/bin/bash
# requires mpc to get song info
# requires glyr https://github.com/sahib/glyr to retrieve metadata
# requires eyeD3 http://eyed3.nicfit.net/ to extract image from mp3
# uses xseticon, wmctrl, and transset to make its little terminal window all pretty. Feel free to delete these lines.
snark=$(echo $WINDOWID)
xseticon -id $snark ~/.icons/Faenza-Like/iKamasutra.png
@uriel1998
uriel1998 / gist:98aa75ce04d92704549bce1aaa16883e
Created May 3, 2022
xml for bitlbee twitter follow chat room
View gist:98aa75ce04d92704549bce1aaa16883e
<channel name="#t_news" type="chat">
<setting name="account">twitter</setting>
<setting name="auto_join">true</setting>
<setting name="chat_type">room</setting>
<setting name="room">follow:daytondailynews;follow:whiotv;follow:pinknews;follow:abc;follow:cnn;follow:guardian;follow:whioradio;follow:nowthisnews;follow:ap;follow:wyso;follow:wdtn;follow:bbcbreaking;follow:npr;follow:wsj;follow:reuters;follow:washingtonpost;follow:nytimes;follow:bbcworld;follow:cnnbrk</setting>
</channel>
@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:5531694b41dc54a004e05c3feeb09450
Last active Dec 15, 2021
example of processed barometric data
View gist:5531694b41dc54a004e05c3feeb09450
1639562402,2021-12-15,04:51,30.26,in,1025,hPa,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6,-7,-6,-6
1639564201,2021-12-15,05:21,30.23,in,1024,hPa,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-3,-2,-3,-1,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-4,-4,-4,-4,-5,-4,-5,-5,-5,-6,-7,-7,-6,-6,-7,-7,-7,-7,-7,-8,-7
1639566001,2021-12-15,05:51,30.26,in,1025,hPa,1,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6,-7
1639567801,2021-12-15,06:21,30.26,in,1025,hPa,0,1,0,0,0,0,0,0,0,0,0,0,0,-1,-1,-2,-1,-2,0,-2,-2,-2,-3,-3,-3,-3,-3,-3,-3,-4,-4,-3,-3,-3,-3,-4,-3,-4,-4,-4,-5,-6,-6,-5,-5,-6,-6,-6,-6,-6
1639569602,2021-12-15,06:51,30.23,in,1024,hPa,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-3,-2,-3,-1,-3,-3,-3,-4,-4,-4,-4,-4,-4,-4,-5,-5,-4,-4,-4,-4,-5,-4,-5,-5,-5,-6,-7,-7,-6,-6,-7,-7,-7,-7
1639571402,2021-12-15,07:21,30.23,in,1024,hPa,0,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,
@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
@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: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 / volume.rb
Created Feb 10, 2012 — forked from jaspervdj/volume.rb
Set PulseAudio volume, mute, unmute, and change default sink (and automagically switch running audio streams) from the commandline
View volume.rb
#!/usr/bin/ruby
#
# Moved to: https://github.com/uriel1998/volumerb
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-sa/3.0/.
#
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj);