I hereby claim:
- I am jeremija on github.
- I am steiner (https://keybase.io/steiner) on keybase.
- I have a public key whose fingerprint is 3839 4E6E 8C90 78C2 4F6A 221A DD8C 9510 EE19 F834
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# author jsteiner | |
# | |
# Resizes an image and adds a watermark. To customize which watermark is added, | |
# edit the $WATERMARK variable below. | |
# | |
DIR=`dirname "$BASH_SOURCE"` | |
WATERMARK="$DIR/watermark.png" | |
SRC="$1" |
define(['Squire'], function(Squire) { | |
'use strict'; | |
var injector = new Squire(); | |
var logArgs, warnArgs, errorArgs, | |
logThis, warnThis, errorThis; | |
var win = { | |
'Function': { | |
'prototype': { |
// Usage: | |
// | |
// 1. Put this in the file that gets first loaded by RequireJS | |
// 2. Once the page has loaded, type window.rtree.map() in the console | |
// This will map all dependencies in the window.rtree.tree object | |
// 3. To generate UML call window.rtree.toUml(). The output can be used | |
// here: http://yuml.me/diagram/scruffy/class/draw | |
requirejs.onResourceLoad = function (context, map, depMaps) { | |
if (!window.rtree) { | |
window.rtree = {}; |
#!/bin/bash | |
# Copies file to the server and restarts a service on the server. If you have uploaded | |
# your public ssh key to the server, you should be able to run this without any prompts. | |
# | |
# If your private ssh key is password protected, consider using ssh-add to avoid being | |
# prompted for password every time. | |
# | |
# author jsteiner | |
host=marsh |
{ | |
"selector": "source.js", | |
// only the following is added: "$packages/JSHint/jshintrc", "$file" | |
// compared to: https://github.com/uipoet/sublime-jshint/blob/master/JSHint.sublime-build | |
"cmd": ["jshint", "--config", "$packages/JSHint/jshintrc", "$file", "--reporter", "$packages/JSHint/reporter.js"], | |
"file_regex": "JSHint: (.+)\\]", | |
"line_regex": "(\\d+),(\\d+): (.*)$", |
import os | |
#import sublime | |
import sublime_plugin | |
class MochaCommand(sublime_plugin.WindowCommand): | |
def _run_test(self, project_path, filepath, test_gen, grep): | |
args = { |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
#!/usr/bin/env python3 | |
import argparse | |
import subprocess | |
import os | |
import sys | |
parser = argparse.ArgumentParser() | |
LABELS_PATH = '/dev/disk/by-label' |
#!/usr/bin/env python3 | |
# | |
# Uses subdl to download video subtitles and muxes it to a new mkv video. The only requirement is for the video is to | |
# be mkv-compatible. | |
# | |
# You can find the subdl here: https://github.com/akexakex/subdl/blob/master/subdl | |
# | |
# If you use xfce4/thunar, custom actions can be added for *.mp4 and *.mkv video files: | |
# | |
# xfce4-terminal --hold --execute /usr/local/bin/muxtitles %F |