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
/* intended to be used with stylus (user-css add-on) or similar | |
** no copyright intended | |
** | |
** Basically the problem is that I use a minimum font size in firefox to ensure | |
** sites can't set fonts smaller than I can read. Zooming the sites is not an | |
** acceptable option because it also jacks up the layout. minimum font size | |
** works nearly everywhere except for single edge cases like tensorboard's SVG | |
** text ... and I can't think of a single other example at the moment. | |
** | |
** update: |
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
" vi:ft=vim: | |
" in the olden days, this was how I opened files. I like having gf actually | |
" issue <c-w>f (open the file under cursor in a new window); but occasionally, | |
" I really want the original gf; which I map to gF | |
nmap gf <C-w>f | |
nnoremap gF gf | |
" the above works just fine for the below actual filepath |
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
" Vim syntax file | |
" Language: Python configparser | |
" Maintainer: Paul Miller (jettero@github) | |
" EARL: https://gist.github.com/jettero/4a619004fb23ada1e5cf302211eee8ae | |
" Last Change: 2018-07-07 | |
" Ripped from: | |
" lang: Good old CFG files | |
" maint: Igor N. Prischepoff ([email protected], [email protected]) | |
" their lc: 2018 Jul 06 |
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
import pytest, logging, os | |
class OnlyMe(logging.Filter): | |
_only_one = None | |
my_path = os.path.dirname( | |
os.path.dirname( | |
os.path.abspath(__file__))) | |
@classmethod | |
def scramble_every_zig(cls): |
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 | |
DIR="$(dirname "$(realpath "$0")")" | |
CREATE=no | |
while [ -z "$MAP" ]; do | |
if [ -n "$1" ] | |
then MAP="$1"; shift | |
else | |
echo current image files: |
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
# to use from your .bashrc, do something like: | |
# if [[ "$-" =~ i ]]; then ~/.ssh-agent-zookeeper.sh; ssh-zoo; fi | |
function _source_agent_vars { | |
if [ -z "$SSH_AGENT_SOCKET_FILE" ]; then | |
echo run the ssh-zoo-setup first | |
return 1 | |
fi | |
[ -f "$SSH_AGENT_VARS_FILE" ] && source "$SSH_AGENT_VARS_FILE" |
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 python | |
# coding: UTF-8 | |
import argparse | |
def nine(x): | |
retval = x # <--- the given integer | |
# side note: recursion can always be converted to a loop | |
# particularly tail recursion like this would have been |
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 perl | |
# occasionally when you're designing upstart services in /etc/init/whatever.conf | |
# you pick the wrong 'no expect' `expect fork` or `expect daemon` and upstart beings | |
# tracking a pid that is already dead. It'll be stuck there refusing to start or stop the service until | |
# it tracks the pid exiting again. So this script forkexists over and over and over until it gets the pid | |
# upstart is waiting for, then exits. | |
# NOTE: sometimes the upstart user prevents this from working, if applicable | |
# ssh to localhost to make sure our ppid is 1 after we die. |
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
# vi:ft=upstart: | |
# this is really the only logical way to start the thing | |
# upstart doesn't take kindly to process startup that forks more than twice | |
# and custom stops in pre-stop don't really work quite right. If you want this tracking sorta | |
# the right pid in 'service splunkforwarder status' then you have to --nodaemon (imo) | |
# [email protected] | |
description "Splunk Forwarder" | |
start on (net-device-up |
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 Splunk-time to Rational-time | |
// @namespace org.voltar.splunktime2rational | |
// @version 0.31 | |
// @downloadURL https://goo.gl/7qizYC | |
// @description Splunk insists on using the locale based time in the _time column of search results; even though my LC_TIME locale is en_DK.utf8; this gives me a nice short big-to-small time format | |
// @author https://github.com/jettero | |
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js | |
// @match *://*splunk*/*-*/app/*/search* | |
// @match *://*/splunk/*-*/app/*/search* |