Skip to content

Instantly share code, notes, and snippets.

View mulle-nat's full-sized avatar
🍀

Nat! mulle-nat

🍀
View GitHub Profile
@mulle-nat
mulle-nat / mulle-ls-dot
Created February 2, 2018 11:01
Recursive Graphviz view of your current directory
#! /usr/bin/env bash
#
# Copyright (c) 2018 Nat! - Mulle kybernetiK
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
@mulle-nat
mulle-nat / MulleScion+VariableIO.m
Created February 23, 2018 17:39
MulleScion bidirectional
//
// Allow bidirectional communication with the template. After the template has run, you can pick out
// the global variables from `variables`. Might do this as a "standard" in the next version
//
@implementation MulleScionTemplate( VariableIO)
- (NSString *) descriptionWithTemplateFile:(NSObject <MulleScionStringOrURL> *) filename
dataSource:(id) dataSource
readWriteVariables:(NSMutableDictionary *) variables
{
@mulle-nat
mulle-nat / commit-and-push-task.sh
Created November 15, 2018 10:33
Example task that synchronizes a directory using git
#! /usr/bin/env bash
r_evaluator()
{
local cmd="$1"
local statefile="$2"
redirect_exekutor "${statefile}" echo "${cmd}" || exit 1
case "${cmd}" in
@mulle-nat
mulle-nat / Cherry-Tastatur.keylayout
Created September 27, 2019 14:29
Cherry Stream 3.0 für Mac OS Keyboard Layout
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<keyboard group="0" id="4712" name="Cherry-Tastatur, Deutsch" maxout="1">
<layouts>
<layout first="0" last="17" mapSet="ANSI" modifiers="Modifiers"/>
<layout first="18" last="18" mapSet="JIS" modifiers="Modifiers"/>
<layout first="21" last="23" mapSet="JIS" modifiers="Modifiers"/>
<layout first="30" last="30" mapSet="JIS" modifiers="Modifiers"/>
<layout first="33" last="33" mapSet="JIS" modifiers="Modifiers"/>
<layout first="36" last="36" mapSet="JIS" modifiers="Modifiers"/>
@mulle-nat
mulle-nat / Default (OSX).sublime-keymap
Last active October 1, 2019 12:42
Sublime Text, add CTRL- shortcuts for copy/paste and some more
[
{ "keys": ["ctrl+c"], "command": "copy" },
{ "keys": ["ctrl+x"], "command": "cut" },
{ "keys": ["ctrl+v"], "command": "paste" },
{ "keys": ["ctrl+s"], "command": "save" },
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} }
]
@mulle-nat
mulle-nat / build-mulle-aba.sh
Last active April 11, 2020 12:28
How to build mulle-aba in an ubuntu:bionic docker (manually without mulle-sde)
apt-get update
apt-get dist-upgrade
apt-get install -y cmake curl
# mulle-c11
mkdir src
cd src
curl -O -L https://github.com/mulle-c/mulle-c11/archive/4.0.0.tar.gz
tar xfz 4.0.0.tar.gz
cd mulle-c11-4.0.0/
@mulle-nat
mulle-nat / run-objc
Last active June 12, 2020 17:26
tcc -run <filename> for Objective-C (mulle-objc / Apple)
#! /usr/bin/env bash
#
# Coded by Nat! in 2020
# Public Domain
#
tmpdir=
mulle=
finish()
{
@mulle-nat
mulle-nat / mulle-printpdf
Last active June 6, 2022 16:48
mulle-printpdf - print a PDF file on a PostScript Network Printer
#!/bin/sh
#
# Print PDF to a PostScript capable network printer
#
PRINTER="${PRINTER:-brother.local}"
PRINTER_PORT="${PRINTER_PORT:-9100}"
if [ $# -eq 0 -o "$1" = '-h' -o "$1" = "--help" ]
then
@mulle-nat
mulle-nat / mulle-objc-clone-all
Last active November 11, 2021 22:07
🐑 Clone all Repositories relevant for hacking on mulle-objc
#! /bin/sh
[ "${TRACE}" = 'YES' -o "${MULLE_OBJC_CLONE_ALL_TRACE}" = 'YES' ] && set -x && : "$0" "$@"
REPOS_M="mulle-bashfunctions"
REPOS_S="mulle-craft
mulle-dispense
mulle-domain
mulle-env
@mulle-nat
mulle-nat / mulle-strip-whitespace
Created November 19, 2021 01:01
🚏💃👗 mulle-strip-whitespace strips off leading and trailing spaces
#! /bin/sh
#
# Copyright (c) 2021 Nat! - Mulle kybernetiK
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.