Skip to content

Instantly share code, notes, and snippets.

Set your status

Furkan Mustafa furkanmustafa

Set your status
Block or report user

Report or block furkanmustafa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
// Defines a yet undocumented method to add a warning if super isn't called.
#if __has_attribute(objc_requires_super)
#define NS_REQUIRES_SUPER __attribute((objc_requires_super))
View 1 IronThrone

The Iron Throne - Monthly Report January 2017

Greetings and welcome to the first in what I hope are a series of monthly reports on the status of The Iron Throne (which some of you know as throneteki).

In January 2017 a total of 4959 games were played. That's roughly 6 per hour, which is pretty awesome. Thanks for playing!

We currently stand at 1592 registered accounts, which frankly blows my mind. When I start this project I never thought it would take off as much as it did. I'm really greatful for the support, kind words and assistance that you the community have provided.

erkanyildiz /
Last active Feb 24, 2018
Language Designator, Script Designator, Region Designator, Language ID, Locale ID all explained with examples.

Language Designator ISO 639-1

  • Specifies a language
  • 2-letters, lowercase
  • Ex:
en          English         
tr          Turkish         
ko          Korean
steipete / Macros.h
Last active Dec 24, 2018
Declare on your main init that all other init methods should call. It's a nice additional semantic warning. Works with Xcode 5.1 and above. Not tested with earlier variants, but should just be ignored. A reference to this macro shortly appeared in…
View Macros.h
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
noteed /
Last active Apr 17, 2019
Docker - Open vSwitch setup
noteed /
Last active Apr 17, 2019
Docker - Tinc setup

Running Docker on two hosts, bridged with Tinc

This Gist is similar to which uses Open vSwitch instead of Tinc.


Download the script and run it:

evadne / gist:4544569
Last active Oct 2, 2019
Todd Laney’s enhancements to Sticky Headers + UICollectionViewFlowLayout
View gist:4544569
// StickyHeaderLayout.h
// Wombat
// Created by Todd Laney on 1/9/13.
// Copyright (c) 2013 ToddLa. All rights reserved.
// Modified from THANKS!
View getargv.c
/* Copied, Pasted and summarized from ps' source code.
You can use sysctl to get other process' argv.
#include <sys/sysctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define pid_of(pproc) pproc->kp_proc.p_pid
diorahman /
Last active Nov 1, 2019
Build WebKitGTK+ from release tarball
$ wget{major}.{minor}.{rev}.tar.xz
$ tar xJf webkitgtk-{major}.{minor}.{rev}.tar.xz
$ cd webkitgtk-{major}.{minor}.{rev}
$ ./Tools/gtk/install-dependencies
$ mkdir build
$ cd build
$ cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release ..
// resolve missing required deps
// most likely: sudo apt-get install libgstreamer-plugins-base1.0-dev, libgstreamer1.0-dev
FredEckert / framebuffer.c
Created Aug 22, 2012
Paint Pixels to Screen via Linux FrameBuffer
View framebuffer.c
To test that the Linux framebuffer is set up correctly, and that the device permissions
are correct, use the program below which opens the frame buffer and draws a gradient-
filled red square:
retrieved from:
Testing the Linux Framebuffer for Qtopia Core (qt4-x11-4.2.2)
You can’t perform that action at this time.