Skip to content

Instantly share code, notes, and snippets.

View sjoqvist's full-sized avatar

Anders Sjöqvist sjoqvist

  • Intry AB
  • Stockholm, Sweden
View GitHub Profile
@tshinnic
tshinnic / valgrind_ff_pango.supp
Last active April 10, 2016 11:03
Valgrind suppression file for FontForge built with Pango
# The below suppressions suppress just about every entry that pango
# libraries could have contributed to. This is likely excessive... ;)
#
# We make good use of the wildcarding features of Valgrind. By using
# wildcarded library object filenames we can hope this source is
# portable to more systems.
# On one tested system (Ubuntu 14.04), these libraries are:
# /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.3600.3
# /usr/lib/x86_64-linux-gnu/libpangoxft-1.0.so.0.3600.3
@Sigmus
Sigmus / gulpfile.js
Last active November 15, 2017 11:55
gulpfile.js with browserify, reactify, watchify and gulp-notify.
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserify = require('browserify');
var reactify = require('reactify');
var watchify = require('watchify');
var notify = require("gulp-notify");
var scriptsDir = './scripts';
var buildDir = './build';
@tinganho
tinganho / gist:7694487
Created November 28, 2013 16:23
Google about the future of javascript
---------- Forwarded message ----------
From: Mark S. Miller <erig...@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: java...@google.com
On November 10th and 11th, a number of Google teams representing a variety
of viewpoints on client-side languages met to agree on a common vision for
the future of Javascript.
@jasonwryan
jasonwryan / Install
Last active April 29, 2021 09:26
Arch Linux installation procedure for LVM on LUKS: UEFI EFISTUB boot with gumiboot on a Samsung Series 9 laptop.
# Notes for installing on Samsung Series 9
# UEFI boot: LVM on LUKS
#
# See the full blog post:
# http://jasonwryan.com/blog/2013/01/25/uefi/
# check you are booted in uefi
modprobe efivars
ls /sys/firmware/efi/vars
anonymous
anonymous / MWeakRefCollection.h
Created January 9, 2013 10:52
Weak reference version of NSMutableArray and NSMutableSet. Use associated object to watch dealloc of objects and remove them when deallocated.
#import <Foundation/Foundation.h>
@interface NSObject (MDeallocObserver)
- (void)addDeallocObserverBlock:(void (^)(void))block;
- (void)addDeallocObserverWithKey:(id<NSCopying>)key block:(void (^)(void))block;
- (void)removeDeallocObserverForKey:(id<NSCopying>)key;
@end
@clintel
clintel / gist:1155906
Created August 19, 2011 02:40
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@katylava
katylava / git-selective-merge.md
Last active February 27, 2024 10:18
git selective merge

Update 2022: git checkout -p <other-branch> is basically a shortcut for all this.

FYI This was written in 2010, though I guess people still find it useful at least as of 2021. I haven't had to do it ever again, so if it goes out of date I probably won't know.

Example: You have a branch refactor that is quite different from master. You can't merge all of the commits, or even every hunk in any single commit or master will break, but you have made a lot of improvements there that you would like to bring over to master.

Note: This will not preserve the original change authors. Only use if necessary, or if you don't mind losing that information, or if you are only merging your own work.