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
View NS_REQUIRES_SUPER.h
// 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
View 1 IronThrone Report.md

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.

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

Language Designator ISO 639-1

  • Specifies a language
  • 2-letters, lowercase
  • Ex:
en          English         
tr          Turkish         
ko          Korean
@steipete
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 https://developer.apple.com/library/ios/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObj…
View Macros.h
#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif
@noteed
noteed / docker-ovs.md
Last active Apr 17, 2019
Docker - Open vSwitch setup
View docker-ovs.md
@noteed
noteed / docker-tinc.md
Last active Apr 17, 2019
Docker - Tinc setup
View docker-tinc.md

Running Docker on two hosts, bridged with Tinc

This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.

Setup

Download the install.sh script and run it:

> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
@irae
irae / _Stay_standalone.md
Last active Sep 6, 2019 — forked from kylebarrow/example.html
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari
View _Stay_standalone.md

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.

@adamgit
adamgit / gist:3705459
Last active Sep 10, 2019
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
View gist:3705459
##########################################
#
# 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)
@evadne
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 http://blog.radi.ws/post/32905838158/sticky-headers-for-uicollectionview-using THANKS!
//
@jessedearing
jessedearing / gist:2351836
Created Apr 10, 2012 — forked from twoism-dev/gist:1183437
Create self-signed SSL certificate for Nginx
View gist:2351836
#!/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
You can’t perform that action at this time.