Skip to content

Instantly share code, notes, and snippets.

@meganukebmp
meganukebmp / mshot.sh
Last active April 30, 2019 06:42
A simple maim wrapper with xclip. Used with xfce4 keybinds.
#!/bin/bash
screenshot () {
# o - no openGL 3.0 (legacy mode)
# u - hide cursor
# b - border thickness (negative for inset)
# c - border color (RGBA)
# n - decoration level (window borders)
maim \
-n 0\
/* Tab bar customization */
:root:-moz-lwtheme-brighttext {
--chrome-background-color: #424242 !important;
--chrome-color: #8f8f8f !important;
--chrome-secondary-background-color: #363636 !important;
--toolbox-border-bottom-color: #2e2e2e !important;
}
.tabbrowser-tab[visuallyselected="true"]:-moz-lwtheme {
color: #dddddd !important;
}
@techhazard
techhazard / Readme.md
Last active November 6, 2017 12:39
Nixos with ZFS on encrypted LUKS as root filesystem
@justjanne
justjanne / Price Breakdown.md
Last active April 5, 2025 08:10 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
@matejc
matejc / pushnotify.py
Created June 29, 2016 00:28
weechat pushbullet notification
# -*- coding: utf-8 -*-
import re
import json
import weechat
from urllib2 import Request
from urllib2 import urlopen
@johnramsden
johnramsden / zfsinstall-1-setup.sh
Last active October 25, 2025 02:36
Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands.
#!/bin/bash
# Check before running, may need intervention
# Pass in the following to the script, or hardcode it.
# Uncomment if hardcoding input.
BOOT_PARTITION="/dev/sdg1"
DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093"
DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266"
POOL="vault"
@amiyuy
amiyuy / WeakAuras-Hunter
Last active October 22, 2017 21:26
WeakAuras for Legion
Compatible with and updated for Legion.
Auras created by Adele of amiyuy.com.
For images and video see: http://amiyuy.com/wow/2016/05/weakauras-2-exports-for-hunters-legion-and-7/
Also on Wago.io: https://wago.io/p/AmiYuy
@haasn
haasn / image.lua
Last active September 8, 2025 00:27
mvi - set of configuration for turning mpv into an image viewer
-- Allow changing a property with by zoom-adjusted amount
function zoom_invariant_add(prop, amt)
amt = amt / 2 ^ mp.get_property_number("video-zoom")
mp.set_property_number(prop, mp.get_property_number(prop) + amt)
end
-- Resets the pan if the entire image would be visible
function zoom_check_center()
local zoom = mp.get_property_number("video-zoom")
local rot = mp.get_property_number("video-rotate") * math.pi / 180
@leoherzog
leoherzog / *Set-up.md
Last active March 26, 2025 18:31
A Bash Script to Make RSS Feeds into Kindle Books

Grab a feed and make a Kindle book out of it's latest entry

This script downloads an RSS feed, assembles it's latest entry into a nice HTML file, downloads all of the assets required, generates a Kindle .mobi book with Amazon's official tool, sends me a Pushbullet notification that it worked, and uploads the .mobi book to my Dropbox.

If you wanted, you could then have a tool like this upload it to your Kindle wirelessly.

Set-up:

  • Copy parse.sh and dropbox_uploader.sh to your working directory that you'd like the script to live
  • chmod +x parsh.sh dropbox_uploader.sh
@phiresky
phiresky / motioninterpolation.vpy
Last active October 18, 2025 03:02
Realtime motion interpolating 60fps playback in mpv
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()