Skip to content

Instantly share code, notes, and snippets.

View alerque's full-sized avatar
🩺
Coding as best I can in between dealing with my daughter's medical issues.

Caleb Maclennan alerque

🩺
Coding as best I can in between dealing with my daughter's medical issues.
View GitHub Profile
@arantius
arantius / ingress-intel-notify-ui.user.js
Created December 7, 2012 04:45
User script for the Ingress Intel dashboard / notifier
// ==UserScript==
// @name Ingress Intel: Notify UI
// @namespace https://arantius.com/misc/greasemonkey/
// @description Annotate the Ingress Intel Dashboard with links to control the Ingress Notify app.
// @match http://www.ingress.com/intel*
// @version 1
// @grant none
// ==/UserScript==
//const NOTIFY_SERVER = 'http://localhost:8080/'
#!/bin/bash
# Adapted from a puppet pre-commit hook at:
# http://blog.snijders-it.nl/2011/12/example-puppet-27-git-pre-commit-script.html
#
# install this as .git/hooks/pre-commit to check DNS zone files
# for errors before committing changes.
rc=0
@mislav
mislav / _readme.md
Last active April 1, 2026 07:38
tmux-vim integration to transparently switch between tmux panes and vim split windows

I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).

In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.

An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.

Here's how it should work:

@westonruter
westonruter / README.md
Last active June 30, 2023 15:29
User script to add a “Group by User”, “Sort by Date”, and “Load until…” buttons to Twitter.

This user script adds “Group by User”, “Sort by Date”, and “Load until...” buttons to the Twitter web app. I'm so tired of Twitter (and Facebook and Google+) not remembering the read state for my posts. My solution in the past was GTweet which allowed me to import my tweets into Google Reader, and Google Reader would happily keep track of all of the tweets I hadn't read yet. I also wrote a user script that added buttons to Reader which allowed me to group/sort the tweets by user to allow me to much more quickly read through them; inpiration for this came from Steve Souders:

Wrote bookmarklet to sort Twitter stream by account. Love it for my early morning massive catchup. #MyWebMyWay

— souders (@souders) November 21, 2012

Well, since Googl

@WillSullivan
WillSullivan / hideignoredquestionscheckbox.userscript
Created July 9, 2013 21:20
Userscript that adds a checkbox to the questions page that removes ignored questions from your list.
// ==UserScript==
// @name Remove ignored
// @namespace http://statestreetgang.net/
// @version 0.1
// @description enter something useful
// @match http://stackoverflow.com/questions
// @copyright 2012+, You
// ==/UserScript==
function exec(fn) {
var script = document.createElement('script');
#!/bin/sh
SEP=
SEPE=
CLOCK=⌚
CALENDAR=☼
MUSIC=♫
WIDTH=${1}
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active March 11, 2026 09:03
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@IzzySoft
IzzySoft / ASE AutoReview DefaultComments
Last active October 14, 2017 09:49
Default comments for Android.SE to be used with @Benjol's SE-AutoReviewComments
###[Q]App recommendation
Please note that recommendations like *Is there an app for X* are off-topic here (see [What topics can I ask about here?](/help/on-topic) for details). For where your question might fit better, you might want to look into [Where can I ask questions that aren't Android Enthusiast questions?](//android.meta.stackexchange.com/q/371/16575) and [Where to ask for app recommendations?](//android.meta.stackexchange.com/q/2060/16575).
###[Q]Low question quality
We will need much more information to give good recommendations here. Please [edit] your question and include at least: The device you're using, Android version it is running. Also check and update the tags you've used to match your issue.
###[Q]Development question
This site is for *users* of Android, which means that questions about development/programming are off-topic here (see the [What topics can I ask about here?](/help/on-topic)). Development questions are on-topic on our sister site [Stack Overflow](//stackoverflow.com/questi
@daurnimator
daurnimator / rock_to_PKGBUILD.lua
Last active October 8, 2022 15:51
Script to convert LuaRocks to Arch Linux PKGBUILDs
#!/usr/bin/env lua
local rockspec_name = assert(arg[1])
local function log(level, fmt, ...)
io.stderr:write(level .. "\t" .. string.format(fmt, ...) .. "\n")
end
local function append(tbl, ...)
for _, v in ipairs {...} do
@grugq
grugq / gist:03167bed45e774551155
Last active February 1, 2026 19:31
operational pgp - draft

Operational PGP

This is a guide on how to email securely.

There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.