Skip to content

Instantly share code, notes, and snippets.

View smartmic's full-sized avatar

smartmic

  • Germany
View GitHub Profile
@smartmic
smartmic / maple.module
Last active April 19, 2022 13:16
ReNeo module files for Martin's APL Edition of compose sequences
# Martin's APL Edition of Compose Sequences
# =========================================
#
#⠀This should be a complete list of APL symbols accessible via XCompose.
#
# I wanted an easy and independent way to enter APL symbols but found
# all existing solutions either inaccessible or cumbersome in one way or
# another. That's why I created this customized list of Compose
# sequences.
#
@smartmic
smartmic / .XCompose
Created April 14, 2022 21:30
Martin's APL Edition of Compose Sequences
# Martin's APL Edition of Compose Sequences
# =========================================
#
#⠀This should be a complete list of APL symbols accessible via XCompose.
#
# I wanted an easy and independent way to enter APL symbols but found
# all existing solutions either inaccessible or cumbersome in one way or
# another. That's why I created this customized list of Compose
# sequences.
#
@smartmic
smartmic / pouchdb-serverd
Created May 18, 2018 19:24
A PouchDB Server Daemon
#!/bin/bash
# pouchdb-server daemon
# chkconfig: 345 20 80
# description: pouchdb-server daemon
# processname: pouchdb-serverd
DAEMON_PATH="/usr/bin"
DAEMON=pouchdb-server
DAEMONOPTS="-d /var/lib/pouchdb-server -c /etc/pouchdb-server/config.json --sqlite -n --no-color"
@smartmic
smartmic / iphoto2folders.sh
Last active January 2, 2017 20:42
Script to move files from iPhoto exports into appropriate subfolders
# iphoto2folders.sh
#
# Script to move files from iPhoto exports into appropriate subfolders
# (according file name prefix as chosen in iPhoto, here "Events".
#
# First, in iPhoto select all events and do Photos > Batch Change
# Set Title to Event Name
# With all events highlighted, export events a folder somewhere, for filename use title
# Photos will be exported with filename of "event - number.jpg" (ex: Animals - 0004.jpg)
#
@smartmic
smartmic / neoconnect.jl
Created December 30, 2015 21:06
HTTP/REST Interface from Julia to Neo4j Database
using Requests, HttpCommon, Codecs
db_key = "neo4j"
db_secret = "neo4j"
# create authentication
function enc_credentials(db_key::String, db_secret::String)
bearer_token_credentials = "$(encodeURI(db_key)):$(encodeURI(db_secret))"
return(base64(bearer_token_credentials))
end
@smartmic
smartmic / loop2jack.sh
Created September 26, 2015 16:29
loop2jack
#!/bin/sh
# script loop2jack, located in /usr/local/bin
# loop client creation
/usr/bin/alsa_out -j ploop -dploop -q 1 2>&1 1> /dev/null &
/usr/bin/alsa_in -j cloop -dcloop -q 1 2>&1 1> /dev/null &
# give it some time before connecting to system ports
sleep 1
@smartmic
smartmic / .asoundrc
Last active February 3, 2024 19:52
.asoundrc
defaults.pcm.!rate_converter "samplerate_best"
# ******************************************************
# PLAYBACK
# hardware 0,0 : ALSA playback
pcm.loophw00 {
type hw
card Loopback
device 0
subdevice 0
@smartmic
smartmic / teck.xmodmap
Created June 29, 2015 22:08
Neo2 Layout (German) for Truly Ergonomic Keyboard (207) in Linux
! Modifikations- .xmodmap, um das Truly Ergonomic Keyboard (207) an die
! Linux Implementierung von Neo2 anzupassen
!
! von Martin Michel, Januar 2014
!
!
! Folgendes Layout wird zur Verfügung gestellt:
!
! ┌───┐ ┌───┐