Skip to content

Instantly share code, notes, and snippets.

View peschee's full-sized avatar
Grabbing another coffee…

Peter Siska peschee

Grabbing another coffee…
View GitHub Profile
@peschee
peschee / .gitconfig
Created November 14, 2017 12:39 — forked from bkeepers/.gitconfig
Git aliases to make new commits that fixup or are squashed into previous commits
[alias]
fixup = !sh -c 'REV=$(git rev-parse $1) && git commit --fixup $@ && git rebase -i --autosquash $REV^' -
squash = !sh -c 'REV=$(git rev-parse $1) && git commit --squash $@ && git rebase -i --autosquash $REV^' -
@peschee
peschee / gist:ff9cf1f0b0adb3cd135dcfd29387b799
Created August 30, 2017 11:17 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@peschee
peschee / ocr.markdown
Created March 26, 2017 14:42 — forked from henrik/ocr.markdown
OCR on OS X with tesseract

Install ImageMagick for image conversion:

brew install imagemagick

Install tesseract for OCR:

brew install tesseract --all-languages

Or install without --all-languages and install them manually as needed.

@peschee
peschee / RevisionsCleanupCommand.php
Created June 24, 2016 07:12 — forked from soerenbernstein/RevisionsCleanupCommand.php
Revisions cleanup for SimpleThings/EntityAudit as symfony command
<?php
/**
* Created by PhpStorm.
* User: Sören Bernstein
* Date: 15.09.2015
* Time: 12:57
*/
namespace Redlink\CASBundle\Command;
@peschee
peschee / java_switch.md
Last active September 30, 2016 08:38 — forked from jvwong/java_switch.md
Switching Java on OSX

List the current installed Java versions

$ /usr/libexec/java_home -V

Install the version desired

Apple provides their own version of 6 (Java for OS X 2015-001)

#!/usr/bin/env ruby
# A quick script to download all your files from CloudApp.
# To run this just run the script passing your e-mail & password
# to the script, for example:
#
# gem install cloudapp_api
# ruby cloudapp-export.rb [email protected] mypassword
#
@peschee
peschee / readme.md
Created March 1, 2016 13:24 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

@peschee
peschee / setup-es6-linting.md
Created February 4, 2016 08:50
Linting ES6+Babel+JSX in Atom

Setup ES6+Babel+JSX Linting with Atom

This sets up Atom to properly lint ES6+Babel+JSX using Airbnb's .eslintrc as a starting point.

Steps

  1. Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint)
  2. Run npm install --save-dev eslint-config-airbnb babel-eslint eslint-plugin-react from your project root.
  3. Add "extends": "eslint-config-airbnb" to your .eslintrc
@peschee
peschee / Default (OSX).sublime-keymap -- User
Created February 3, 2016 13:24 — forked from coldnebo/Default (OSX).sublime-keymap -- User
Sublime Text 2 fix for OSX home/end keys
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }
  1. ssh in to your Synology
  2. $ vi /root/.profile
  3. prepend /opt/bin:/opt/sbin: to PATH so it looks like PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
    replace the standard rdiff packages with symlinks:
  4. $ ln -s /opt/bin/rdiff-backup-2.6 /usr/bin/rdiff-backup
  5. $ ln -s /opt/bin/rdiff-backup-statistics-2.6 /usr/bin/rdiff-backup-statistics