Skip to content

Instantly share code, notes, and snippets.

View furkanmustafa's full-sized avatar
💭
Set your status

Furkan Mustafa furkanmustafa

💭
Set your status
View GitHub Profile
// Defines a yet undocumented method to add a warning if super isn't called.
#ifndef NS_REQUIRES_SUPER
#if __has_attribute(objc_requires_super)
#define NS_REQUIRES_SUPER __attribute((objc_requires_super))
#else
#define NS_REQUIRES_SUPER
#endif
#endif

The Iron Throne - Monthly Report January 2017

https://theironthrone.net

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.

@noteed
noteed / docker-tinc.md
Last active April 17, 2019 06:22
Docker - Tinc setup
@diorahman
diorahman / steps.md
Last active November 1, 2019 12:53
Build WebKitGTK+ from release tarball
$ wget http://webkitgtk.org/releases/webkitgtk-{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
@evadne
evadne / gist:4544569
Last active August 14, 2023 05:04
Todd Laney’s enhancements to Sticky Headers + UICollectionViewFlowLayout
//
// StickyHeaderLayout.h
// Wombat
//
// Created by Todd Laney on 1/9/13.
// Copyright (c) 2013 ToddLa. All rights reserved.
//
// Modified from http://blog.radi.ws/post/32905838158/sticky-headers-for-uicollectionview-using THANKS!
//
@erkanyildiz
erkanyildiz / LocalizationTerms.md
Last active October 24, 2023 16:17
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
/* 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
@adamgit
adamgit / gist:3705459
Last active December 11, 2023 16:27
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@noteed
noteed / docker-ovs.md
Last active December 29, 2023 07:07
Docker - Open vSwitch setup
@jessedearing
jessedearing / gist:2351836
Created April 10, 2012 14:44 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key