Skip to content

Instantly share code, notes, and snippets.

View rriemann's full-sized avatar

Robert Riemann rriemann

View GitHub Profile
@rriemann
rriemann / keybase.md
Created January 28, 2017 14:48
keybase.md

Keybase proof

I hereby claim:

  • I am rriemann on github.
  • I am rriemann (https://keybase.io/rriemann) on keybase.
  • I have a public key whose fingerprint is 748F FAD5 40A1 FC46 4035 140A E2F5 D37D 8CA0 510F

To claim this, I am signing this object:

#!/bin/bash
# pdfScale.sh
#
# Scale PDF to specified percentage of original size.
# Ref: http://ma.juii.net/blog/scale-page-content-of-pdf-files.
echo "This script doesn't handle files with spaces in them."
SCALE=0.95 # scaling factor (0.95 = 95%, e.g.)
@rriemann
rriemann / bpm-tag.sh
Created April 20, 2016 16:49
BPM Tags
#!/bin/sh
#
# Copyright (C) 2013 Mark Hills <mark@xwax.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
@rriemann
rriemann / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@rriemann
rriemann / designer.html
Last active August 29, 2015 14:17
designer
<link href="../../salesforce/s1-elements/scaffold/s1AppScaffold.html" rel="import">
<link href="../../salesforce/s1-elements/scaffold/s1PageContainer.html" rel="import">
<link href="../../salesforce/s1-elements/s1StagedNavigationStageLeft.html" rel="import">
<link href="../../salesforce/s1-elements/s1StagedNavigationNotifications.html" rel="import">
<link href="../../salesforce/s1-elements/s1AnchorLightDefault.html" rel="import">
<link href="../../salesforce/s1-elements/s1ListWithLabels.html" rel="import">
<link href="../../salesforce/s1-elements/s1AnchorDark.html" rel="import">
<link href="../../salesforce/s1-elements/s1IndicatorDotsLightBackground.html" rel="import">
<link href="../../salesforce/s1-elements/s1ButtonGroups.html" rel="import">
<link href="../../salesforce/s1-elements/scaffold/s1DetailView.html" rel="import">
{
"slides": [
{
"components": [],
"z": 0,
"impScale": 3,
"rotateX": 0,
"rotateY": 0,
"rotateZ": 1.57,
"index": 0,
@rriemann
rriemann / latice.m
Created March 12, 2014 12:50
latice boltzman streaming in matlab
#!/usr/bin/env octave
% kate: hl octave; line-numbers on; space-indent on; indent-mode cstyle;
more off;
global data;
function move(irow, icol)
global data;
[srow,scol] = size(data);
vrow = 1:srow;
vcol = 1:scol;
if(icol < 0)
@rriemann
rriemann / gist:7691652
Created November 28, 2013 13:13
run convert in parallel
find -maxdepth 1 -iname \*.JPG | parallel convert -thumbnail 800x600 -auto-orient -quality 70 {} small/{}
# source: http://psung.blogspot.fr/2010/08/gnu-parallel.html
@rriemann
rriemann / gist:7215475
Created October 29, 2013 14:15
Install charlock_holmes on opensuse 64 bit
cd /tmp
git clone https://github.com/brianmario/charlock_holmes.git
cd charlock_holmes
bundle install
bundle exec rake compile # only run a test
gem build charlock_holmes.gemspec
gem install charlock_holmes-0.6.9.4.gem