Skip to content

Instantly share code, notes, and snippets.

View n2i's full-sized avatar

n2i n2i

  • ~
View GitHub Profile
@n2i
n2i / pygmentize.sh
Created May 18, 2012 05:12 — forked from michih57/pygmentize
Ugly wrapper around pygmentize to speed up pdflatex using the minted package for syntax highlighting
#!/bin/bash
# An ugly hack to speed up pdflatex using the minted package
# place this file with the name 'pygmentize' somewhere on your
# path before the 'real' pygmentize, such that this file gets
# executed and can act as a wrapper around the 'real' pygmentize.
# This script computes a hash-value (md5sum) of the input file
# from minted and caches the output of pygmentize.
# The working directory is used to store the cached files (it's an ugly hack...)
# The real pygmentize command, may need customization to work on your system.
@n2i
n2i / new.json
Created July 29, 2012 15:52
Sublime Text 2 configuration
{
"color_scheme": "Packages/zenburn/zenburn.tmTheme",
"dictionary": "Packages/Language - English/en_US.dic",
"font_face": "Consolas",
"font_size": 11.0,
"font_options": ["subpixel_antialias"],
"ignored_packages":
[
],
"vintage_start_in_command_mode": true,
@n2i
n2i / Dark.sublime-theme.json
Created July 29, 2012 15:53
Sublime Text 2 configuration
// Modified
// Original: http://samuelbran.com/descargas/sublime-text-2-dark-sidebar/
[
{
"class": "label_control",
"color": [220, 220, 204],
"shadow_color": [24, 24, 24],
"shadow_offset": [0, -1]
},
{
@n2i
n2i / Synology-Diskstation-Git.md
Last active August 29, 2015 14:26 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@n2i
n2i / mysql2sqlite.sh
Created March 9, 2016 13:01 — forked from esperlu/mysql2sqlite.sh
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite
@n2i
n2i / introrx.md
Created April 12, 2016 01:34 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@n2i
n2i / fix-source-tree-uninstall-older-version-cannot-be-removed.md
Created April 12, 2016 04:32
Fix: "Older Version Of Sourcetree Cannot Be Removed" - Can't Uninstall or Reinstall Sourctree
@n2i
n2i / tmux-cheatsheet.markdown
Created May 5, 2016 05:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@n2i
n2i / grunt-hugo-lunrjs.md
Created June 5, 2016 14:47 — forked from sebz/grunt-hugo-lunrjs.md
hugo + gruntjs + lunrjs = <3 search

A server naming scheme


Copyright (c) 2014 Max Teufel

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains in tact.