This file contains hidden or 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; | |
use vars qw($VERSION %IRSSI); | |
use Irssi; | |
use Irssi::Irc; | |
# Usage: | |
# /script load go.pl | |
# If you are in #irssi you can type /go #irssi or /go irssi or even /go ir ... | |
# also try /go ir<tab> and /go <tab> (that's two spaces) | |
# |
This file contains hidden or 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
__virtualname__ = 'profile' | |
tabulate = None | |
# tabulate is this: | |
# https://github.com/gregbanks/python-tabulate/blob/master/tabulate.py | |
# I usually just copy it into my _modules and/or _output directories along side | |
# items like this | |
def __virtual__(): |
This file contains hidden or 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 | |
# coding: UTF-8 | |
# I found that I could select the server admin password in the sqlite3 database | |
# and I could update/change it, but just what is that annoying encoding? It's mime... | |
# decodes to 20 bytes... | |
# | |
# Ahh, it's base64(sha1()) unsalted | |
import hashlib | |
import base64 |
This file contains hidden or 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 bash | |
# old http://billauer.co.il/blog/2013/02/usb-reset-ehci-uhci-linux/ | |
# old http://enc.com.au/2014/02/14/resetting-usb-devices/ | |
# | |
# http://www.linux.org/threads/resetting-the-usb-subsystem.6256/ | |
# (page was dead, used google cache) | |
# | |
# XXX This definitely worked (2016-08-21), the trouble is finding the serial | |
# number and the bind/unbind kernel interfaces |
This file contains hidden or 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
// ==UserScript== | |
// @name Jira Issue Details Suck | |
// @description Disable the annoying and useless issue details panel on kanbans (and probably elsewhere). Let the issue links work as links. | |
// @namespace org.voltar.jira-issue-details-suck | |
// @downloadURL https://gist.github.com/jettero/91840b8257066565ee252e90f3cfe1fb/raw/jira-issue-details-suck.user.js | |
// @include http*://*atlassian.net/secure/RapidBoard.jspa* | |
// @include http*://jira*/secure/RapidBoard.jspa* | |
// @include http*://*/jira/secure/RapidBoard.jspa* | |
// @version 4.1.4 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js |
This file contains hidden or 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/lib/python2.6/site-packages/salt/pillar/git_pillar.py 2016-02-16 20:52:19.000000000 -0800 | |
+++ git_pillar.py 2016-03-19 10:14:52.732381344 -0700 | |
@@ -254,7 +254,13 @@ | |
opts['pillar_roots'] = {} | |
pillar = salt.utils.gitfs.GitPillar(opts) | |
pillar.init_remotes(repo, PER_REMOTE_OVERRIDES) | |
- pillar.checkout() | |
+ k = repo[0].keys()[0].replace(' ', '-').replace('/','-') | |
+ lf = "/var/cache/salt/master/pauls-workaround-%s.lock" % k | |
+ from lockfile import FileLock |
This file contains hidden or 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/perl | |
use common::sense; | |
use Text::CSV; | |
use Data::Dump qw(dump); | |
our $csv = Text::CSV->new({binary=>1}) or die "cannot use CSV: " . Text::CSV->error_diag; | |
$csv->eol("\n"); | |
open my $ufh, "user-list.csv" or die "error opening udata.csv: $!"; |
This file contains hidden or 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
*.o | |
*.elf | |
hello |
This file contains hidden or 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/perl | |
use common::sense; | |
use C::Blocks; | |
use C::Blocks::PerlAPI; | |
cblock { | |
printf("hello world\n"); | |
} |
This file contains hidden or 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/bash | |
# | |
# AUTHOR: Paul Miller <[email protected]> | |
# RE: This relates to a quest: https://github.com/Nuand/bladeRF/issues/386 | |
# PREREQ: | |
# http://gnuradio.org/redmine/projects/gnuradio/wiki/GRAndDeps | |
# http://gnuradio.org/redmine/projects/gnuradio/wiki/GRAndBuild | |
# | |
ARGS=() |