Skip to content

Instantly share code, notes, and snippets.

View uriel1998's full-sized avatar

Steven Saus uriel1998

View GitHub Profile
@uriel1998
uriel1998 / style.css
Created November 25, 2012 17:08
CSS stylesheet for ePub
/* You may notice that my CSS file is organized in a fairly straightforward and */
/* static way. This is intentional, folks. You can do a LOT fancier - but I'm */
/* operating under a KISS principle here. Otherwise it's too easy to have more */
/* than one style applying to any line and making troubleshooting difficult. */
/* My goal is portability and it NEVER distracting from the text. */
/* Put any additional fonts you REQUIRE here. I recommend using additional fonts */
/* only when you MUST; and always define a fallback. Please note that if you have */
/* the font in a sub-directory, you must define it properly in the src portion */
@uriel1998
uriel1998 / smallcoverkill.sh
Created November 17, 2012 01:34
Small bash script to remove small cover images (or really, any small resolution images)
#! bin/bash
cd ~/Music
echo "Run this script from your base music directory (or wherever you want to purge png and jpg images from)"
echo "Currently in $PWD"
echo "What is the minimum resolution you want?"
read request
# test for number without decimal
if [ "$request" -eq "$request" ] 2>/dev/null; then
echo "Finding jpg covers."
find . -iname "*.jpg" -exec ls -f '{}' \; > tempfile.txt
@uriel1998
uriel1998 / volume.rb
Created February 10, 2012 17:55 — forked from jaspervdj/volume.rb
Set PulseAudio volume, mute, unmute, and change default sink (and automagically switch running audio streams) from the commandline
#!/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);
@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
@uriel1998
uriel1998 / gist:5531694b41dc54a004e05c3feeb09450
Last active December 15, 2021 15:48
example of processed barometric data
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:98aa75ce04d92704549bce1aaa16883e
Created May 3, 2022 19:54
xml for bitlbee twitter follow chat room
<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>