Skip to content

Instantly share code, notes, and snippets.

@dpoggi
dpoggi / homebrew.mxcl.autossh.plist
Last active December 11, 2022 00:00
launchd plist for Homebrewed autossh (local tunnel)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.autossh</string>
<key>KeepAlive</key>
<true/>
@sceeter89
sceeter89 / JiraAgileBoardRefresh.user.js
Created September 9, 2015 08:19
GreaseMonkey script to automatically refresh Jira Agile board once yellow popup appears
// ==UserScript==
// @name AutoRefresh board
// @namespace JIRA
// @include http://<JIRA URL>/secure/RapidBoard.jspa
// @version 1
// @grant none
// ==/UserScript==
var i = setInterval(reloadBoard, 1000);
function reloadBoard() {
if (AJS.$('.js-refresh-now').length && AJS.$('.js-refresh-now').is(':visible')) {
@samelie
samelie / ffmpeg last frame video
Created February 18, 2015 09:49
ffmpeg last frame of video
#!/bin/bash
fn="$1"
of=`echo $1 | sed s/mp4/jpg/`
lf=`ffprobe -show_streams "$fn" 2> /dev/null | grep nb_frames | head -1 | cut -d \= -f 2`
rm -f "$of"
let "lf = $lf - 1"
ffmpeg -i $fn -vf select=\'eq\(n,$lf\) -vframes 1 $of
@namuol
namuol / INSTALL.md
Last active July 24, 2023 11:53
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.