Skip to content

Instantly share code, notes, and snippets.

@HealsCodes
HealsCodes / keybase.md
Created December 30, 2023 15:27
keybase.md

Keybase proof

I hereby claim:

  • I am HealsCodes on github.
  • I am shirk (https://keybase.io/shirk) on keybase.
  • I have a public key whose fingerprint is EA42 10E1 7B87 1D17 7ECF CEFC 5C80 27AC 0F47 7921

To claim this, I am signing this object:

@HealsCodes
HealsCodes / gas.vim
Created July 8, 2016 05:46
gas.vim with support for C++-style single line comments using //
" 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

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:

@HealsCodes
HealsCodes / macligatures-runtime-doc.diff
Last active November 13, 2015 21:53
Add documentation for macvim PR #129
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'
@HealsCodes
HealsCodes / docker-machine-vmfusion.sh
Last active August 29, 2015 14:27
Basic workflow for docker-machine on Mac with VMWare Fusion
# 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
@HealsCodes
HealsCodes / grub-2.02~beta2_native_clang_OSX_build.patch
Created August 24, 2014 08:51
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
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) \
@HealsCodes
HealsCodes / accel-display.c
Created February 28, 2014 19:04
Pebble on-screen accelerometer data display
#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));
@HealsCodes
HealsCodes / st3-cpp-highlight-bug.cpp
Created January 13, 2014 21:16
This file shows how ST3 loses highlighting in long files. I get proper syntax up to line 460.
class SubStateXX : public BaseState //{{{
{
public:
SubStateXX( StateID id )
: BaseState( id ) {};
virtual void OnEntry()
{
};
@HealsCodes
HealsCodes / x.js
Created June 14, 2010 07:08 — forked from anonymous/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/",