Skip to content

Instantly share code, notes, and snippets.

View therealmarv's full-sized avatar
:octocat:

therealmarv

:octocat:
View GitHub Profile
@therealmarv
therealmarv / fl
Last active March 29, 2024 22:26 — forked from McNull/fl
Open current directory in forklift
#!/bin/bash
# Open current directory in forklift 4
# 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
@therealmarv
therealmarv / remove_jpg_if_raw_exists.py
Created April 2, 2015 06:01
Remove jpg when raw existing
#!/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
@therealmarv
therealmarv / init.lua
Created November 21, 2017 14:28
hammerspoon Umlaute
-- Umlaute
hs.hotkey.bind({'alt'}, 'u', function ()
hs.eventtap.keyStrokes('ü')
end)
hs.hotkey.bind({'shift', 'alt'}, 'u', function ()
hs.eventtap.keyStrokes('Ü')
end)
@therealmarv
therealmarv / checkopenssl.md
Last active October 12, 2021 19:14
Check OpenSSL version from Python

Open python

python

and type

>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.1g 7 Apr 2014'
@therealmarv
therealmarv / instructions.md
Created March 19, 2019 18:57
Install easybake on macOS

How to install easybake with pip

  1. Install icu4c
brew install icu4c
  1. Install easybake

For Bash shell:

@therealmarv
therealmarv / output.html
Created March 18, 2019 17:18
output.xhtml
<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'
>
@therealmarv
therealmarv / input.xml
Created March 18, 2019 17:16
input.cnxml
<?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 / travis submodule handling
Created November 19, 2016 19:12
travis submodule handling
git:
submodules: false
before_install:
- git submodule update --init --recursive
server {
listen 80;
server_name konklone.com;
return 301 https://$host$request_uri;
}
# optional: the 'spdy' at the end of the listen command below turns on SPDY support.
server {
listen 443 ssl spdy;
@therealmarv
therealmarv / private.xml
Last active December 20, 2015 15:29 — forked from erotte/private.xml
fix white space typo
<?xml version="1.0"?>
<!-- Key Mappimgs for http://pqrs.org/macosx/keyremap4macbook/ -->
<root>
<item>
<name>German Umlaute on US Keyboard Layout with ALT modifier</name>
<appendix>Change Option+o to ö</appendix>
<appendix>Change Option+a to ä</appendix>
<appendix>Change Option+u to ü</appendix>
<appendix>Change Option+e to €</appendix>
<identifier>remap.org.openhort.german_umlaute_with_ALT_modifier</identifier>