Skip to content

Instantly share code, notes, and snippets.

Renée Köcher Shirk

View GitHub Profile
@Shirk
Shirk / gas.vim
Created Jul 8, 2016
gas.vim with support for C++-style single line comments using //
View gas.vim
" Vim syntax file
" Language: GNU as (AT&T) assembler for X86
" Maintainer: Rene Koecher <shirk@bitspin.org>
" Last Change: 2013 Aug 15
" Version: 0.9
" Remark: Intel compatible instructions only (for now)
" License: BSD (3 clause), see LICENSE
"
if version < 600
View keybase.md

Keybase proof

I hereby claim:

  • I am shirk on github.
  • I am shirk (https://keybase.io/shirk) on keybase.
  • I have a public key ASDlWb5MeqwKv0RkI2M0K51Dvtlw8kTRfDKNHoRnlEmmxAo

To claim this, I am signing this object:

@Shirk
Shirk / macligatures-runtime-doc.diff
Last active Nov 13, 2015
Add documentation for macvim PR #129
View macligatures-runtime-doc.diff
diff --git a/runtime/doc/gui_mac.txt b/runtime/doc/gui_mac.txt
index a3d3ea7..e93904d 100644
--- a/runtime/doc/gui_mac.txt
+++ b/runtime/doc/gui_mac.txt
@@ -111,7 +111,7 @@ to your .gvimrc file to revert back to the default Vim tab label.
*macvim-options*
These are the non-standard options that MacVim supports:
'antialias' 'blurradius' 'fullscreen'
- 'fuoptions' 'macmeta' 'toolbariconsize'
+ 'fuoptions' 'macmeta' 'macligatures' 'toolbariconsize'
@Shirk
Shirk / docker-machine-vmfusion.sh
Last active Aug 29, 2015
Basic workflow for docker-machine on Mac with VMWare Fusion
View docker-machine-vmfusion.sh
# Get everything ready on a Mac
brew install docker docker-machine docker-compose
# Create a new machine (based on the 1.8.1 boot2docker iso)
docker-machine create --driver vmwarefusion --vmwarefusion-memory-size 2048 --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.8.1/boot2docker.iso osxdock
# Bring the machine up
docker-machine start osxdock
# Configure Shell
@Shirk
Shirk / grub-2.02~beta2_native_clang_OSX_build.patch
Created Aug 24, 2014
Patch grub-2.02~beta2 to build on OS X (up to and including Yosemite) using Clang. Get grub-2.02~beta2 from http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz
View grub-2.02~beta2_native_clang_OSX_build.patch
Patch grub-2.02~beta2 to build on OS X (up to Yosemite) using Clang.
Get grub-2.02~beta2 from http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz
diff -Nrdup grub-2.02~beta2.orig/Makefile.in grub-2.02~beta2/Makefile.in
--- grub-2.02~beta2.orig/Makefile.in 2013-12-24 21:06:39.000000000 +0100
+++ grub-2.02~beta2/Makefile.in 2014-08-24 10:28:34.000000000 +0200
@@ -451,7 +451,6 @@ am_libgrubgcry_a_OBJECTS = grub-core/lib
grub-core/lib/libgcrypt-grub/cipher/libgrubgcry_a-sha256.$(OBJEXT) \
grub-core/lib/libgcrypt-grub/cipher/libgrubgcry_a-sha512.$(OBJEXT) \
grub-core/lib/libgcrypt-grub/cipher/libgrubgcry_a-tiger.$(OBJEXT) \
- grub-core/lib/libgcrypt-grub/cipher/libgrubgcry_a-twofish.$(OBJEXT) \
@Shirk
Shirk / accel-display.c
Created Feb 28, 2014
Pebble on-screen accelerometer data display
View accel-display.c
#include <pebble.h>
static Window *window;
static TextLayer *x_accel_layer, *y_accel_layer, *z_accel_layer;
static char accel_layer_text[3][15];
static void process_accel_data(AccelData *data, uint32_t num_samples)
{
memset(accel_layer_text, 0, sizeof(accel_layer_text));
@Shirk
Shirk / st3-cpp-highlight-bug.cpp
Created Jan 13, 2014
This file shows how ST3 loses highlighting in long files. I get proper syntax up to line 460.
View st3-cpp-highlight-bug.cpp
class SubStateXX : public BaseState //{{{
{
public:
SubStateXX( StateID id )
: BaseState( id ) {};
virtual void OnEntry()
{
};
View x.js
/* This is a template command. */
CmdUtils.CreateCommand({
names: ["message"],
icon: "http://developer.pidgin.im/static/pidgin.ico",
description: "Send a message to one of your pidgin contacts",
help: "Supported formats are:<br> (empty) - just text<br/> as link - hyperlink using the document title<br/> as quote - hyperlink using the current selection / text",
author: {name: "Rene Koecher", email: "shirk@bitspin.org"},
license: "GPL",
homepage: "http://labs.mozilla.com/",
You can’t perform that action at this time.