Skip to content

Instantly share code, notes, and snippets.

Marvin R. therealmarv

Block or report user

Report or block therealmarv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@therealmarv
therealmarv / instructions.md
Created Mar 19, 2019
Install easybake on macOS
View instructions.md

How to install easybake with pip

  1. Install icu4c
brew install icu4c
  1. Install easybake

For Bash shell:

View output.html
<body
data-cnxml-to-html-ver='v0.test'
xmlns='http://www.w3.org/1999/xhtml'
xmlns:bib='http://bibtexml.sf.net/'
xmlns:c='http://cnx.rice.edu/cnxml'
xmlns:data='http://www.w3.org/TR/html5/dom.html#custom-data-attribute'
xmlns:md='http://cnx.rice.edu/mdml'
xmlns:mod='http://cnx.rice.edu/#moduleIds'
xmlns:qml='http://cnx.rice.edu/qml/1.0'
>
View input.xml
<?xml version="1.0"?>
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:q="http://cnx.rice.edu/qml/1.0" xmlns:data="http://www.w3.org/TR/html5/dom.html#custom-data-attribute" id="new" cnxml-version="0.7" module-id="new">
<title>Long Desc test</title>
<content>
<section id="eip-220"><media id="eip-idm1388625936" alt="An image comparing the functions of the parasympathetic nervous system to the central nervous system." longdesc="35-4-2-longdesc.txt">
<image mime-type="image/jpeg" src="Figure_35_04_02.jpg"/>
</media>
@therealmarv
therealmarv / init.lua
Created Nov 21, 2017
hammerspoon Umlaute
View init.lua
-- Umlaute
hs.hotkey.bind({'alt'}, 'u', function ()
hs.eventtap.keyStrokes('ü')
end)
hs.hotkey.bind({'shift', 'alt'}, 'u', function ()
hs.eventtap.keyStrokes('Ü')
end)
View travis submodule handling
git:
submodules: false
before_install:
- git submodule update --init --recursive
@therealmarv
therealmarv / fl
Last active Jun 28, 2018 — forked from McNull/fl
Open current directory in forklift
View fl
#!/bin/bash
# Open current directory in forklift 3
# Adapted from https://gist.github.com/elentok/6218781
# Adapted from comment https://gist.github.com/elentok/6218781#comment-891115
# Added optional path argument and removed using the clipboard buffer.
set -e
if [ -z "$@" ]; then
View pybossa-rewrite-apache.md

Original nginx rewrite lines, just for reference!

location ~ /api/app {
        rewrite ^/api/app /api/project$1 permanent;
}

location ~ /app {
        rewrite ^/app(.*) /project$1 permanent;
}
View remove_jpg_if_raw_exists.py
#!/usr/bin/env python
# Script: remove_jpg_if_raw_exists.py
#
# Description: This script looks in all sub directories for
# pairs of JPG and RAW files.
# For each pair found the JPG is moved to a
# waste basket directory.
# Otherwise JPG is kept.
#
# Author: Thomas Dahlmann
View hammerhead-from-lrx22c-to-lmy47d.md
  UPDATE `NEXUS 5`
     SET `VERSION`='5.1', `BUILD`='LMY47D', `RECOVERY`='CUSTOM', `ROOTED`=1
   WHERE `VERSION`='5.0.1' && `BUILD`='LRX22C' && `RECOVERY`='CUSTOM' && `ROOTED`=1
         && `WANNA_KEEP_USERDATA`=1;

This guide is forked and updated for Android 5.1 OTA from me. Big thanks to the original author eyecatchup and his guide from LRX21O to LRX22C here.

This guide also works without any problems for encrypted phones because data partition is not touched.

@therealmarv
therealmarv / pgbouncer
Created Mar 5, 2015
/etc/init.d/pgbouncer for Ubuntu 12.04
View pgbouncer
#!/bin/bash
### BEGIN INIT INFO
# Provides: pgbouncer
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: postgresql
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start pgbouncer
You can’t perform that action at this time.