View frk-status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Get connection status for Franklin Wireless cellular hotspots. | |
Example script to store login information: | |
```sh | |
#!/bin/sh | |
set -e |
View firewall.nat6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# NAT6 + masquerading firewall script | |
# https://github.com/akatrevorjay/openwrt-masq6 | |
# trevorj <github@trevor.joynson.io> | |
# | |
# You can configure in /etc/config/firewall per zone: | |
# * IPv4 masquerading | |
# option masq 1 | |
# * IPv6 masquerading |
View transparentwindow.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# vim: set fdm=marker: | |
import atexit | |
import os | |
import sys | |
from typing import * | |
View facebook-messnger.make-stickers-larger.user.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Facebook Messenger - Make stickers larger | |
@namespace github.com/openstyles/stylus | |
@version 1.0.0 | |
@license 0BSD | |
@var text u-size "Size" 160px | |
==/UserStyle== */ | |
@-moz-document domain("www.messenger.com") { |
View if-up.d_addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
ADDRESSES=' | |
eth0=2001:db8::2 eth0=2001:db8:2::1 | |
eth0=192.0.2.2 eth0=198.51.100.2 eth0=203.0.113.2 eth0=233.252.0.2 | |
' | |
################################################################################ | |
set -e |
View emoji-favicon.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
//export default | |
class EmojiFavicon { | |
static DEFAULT_ATTRIBUTE_NAME() { return "data-emoji-favicon"; } | |
static set(emoji, shadowColor, size) { | |
shadowColor = (typeof shadowColor === "string") ? shadowColor : null; |
View .XCompose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <https://gist.github.com/b6f7106e553b8c31723dc50c5aa1f1c2> | |
include "%L" | |
# Uncategorized {{{1 | |
<Multi_key> <equal> <equal> <equal> : "≡" U2261 # IDENTICAL TO | |
<Multi_key> <asterisk> <asterisk> : "∗" U2217 # ASTERISK OPERATOR | |
<Multi_key> <bracketleft> <o> <bar> : "⎄" U2384 # COMPOSITION SYMBOL | |
<Multi_key> <bracketleft> <O> <bar> : "⎄" U2384 # COMPOSITION SYMBOL | |
<Multi_key> <c> <m> <p> : "⎄" U2384 # COMPOSITION SYMBOL |
View ms_binary_test.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports {{{1 | |
use std::io; | |
extern crate byteorder; // 1 | |
use byteorder::{/*ReadBytesExt,*/ LittleEndian}; | |
extern crate num_traits; // 0.2 | |
use num_traits::ToPrimitive; |
View toggle-xterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
uid=$(id -u) | |
if pgrep -u $uid -x 'xterm' >/dev/null 2>&1; then | |
pkill -u $uid -x 'xterm' | |
else | |
xrandr_size=$(xrandr --current --prop | head -n 1 \ | |
| grep -o 'current [0-9]\+ x [0-9]\+' \ | |
| sed -e 's/current //g; s/ x /\n/g') |
NewerOlder