Skip to content

Instantly share code, notes, and snippets.

View larryhynes's full-sized avatar

larryhynes larryhynes

View GitHub Profile
@romainl
romainl / _rnb.md
Last active August 12, 2021 21:56
RNB, a Vim colorscheme template
@swarminglogic
swarminglogic / watchfile.sh
Last active March 4, 2024 14:44
watchfile - monitor file(s) and execute a command when files are changed
#!/bin/bash
version=1.0.1
versionDate="2014-02-14"
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
----------------------------------------
@nicolashery
nicolashery / solarized-dark.css
Last active March 25, 2022 08:38 — forked from scotu/solarized.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@qbit
qbit / gist:5483415
Last active February 25, 2024 13:35
KSH support for git-prompt
# ksh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@hellais
hellais / gist:4552537
Last active March 9, 2024 13:34
Clear the logs of the all the files you downloaded in OSX (ref: www.tuaw.com/2012/02/14/mac-os-xs-quarantineevents-keeps-a-log-of-all-your-downloads/)
# To delete all the currently stored files
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent where LSQuarantineEventIdentifier like "%%";'
# To never store such information you can sym link it to dev null
ln -s /dev/null ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
@ShadowKyogre
ShadowKyogre / inspector-only-black-text.css
Last active January 5, 2018 05:22
A userContent.css file for Firefox that fixes sites that don't cooperate well with dark color schemes. So far, not all the cases are covered. Added a fix for the css inspector in firefox so it would use saner colors.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
.ruleview {
color: black;
}
@prenagha
prenagha / Prowl.scpt
Created June 22, 2012 18:40
Launchbar to Prowl
--
-- Take text input from a launchbar action and send to iPhone via prowl
-- Put this file as ~/Library/Application Support/Launchbar/Actions/Prowl.scpt
-- Update prowlAPIKey in the script below
-- Then enter Launchbar, type "Prowl", once its selected hit "Space", then type
-- the text you want to send to your phone, hit "Enter"
--
on handle_string(s)
set prowlAPIKey to "xxxxxx"
set prowlURL to "https://prowl.weks.net/publicapi/add"
anonymous
anonymous / clear.patch
Created April 30, 2012 15:03
urxvt: updated clear.patch
diff -r 4399ffb6a87c -r 48f53e1cf599 src/command.C
--- a/src/command.C Sat Jan 21 13:57:22 2012 +0100
+++ b/src/command.C Mon Apr 30 16:22:25 2012 +0200
@@ -2869,6 +2869,10 @@
return;
}
+ /* remember the current row on position change, in case there's a clear screen
+ * right after, so that we can add "preserve" the buffer (e.g. on ^L) */
+ static int old_row = -1, was_moved = 0;
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//