start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* Adds the serialNumber property to the UIDevice class | |
* | |
* The implementation uses undocumented (for iOS) IOKit functions, | |
* so handle with caution and be prepared for nil. | |
*/ | |
#import <UIKit/UIDevice.h> | |
@interface UIDevice (serialNumber) |
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
function trim(s) { return rtrim(ltrim(s)); } | |
BEGIN { | |
# whatever | |
} | |
{ | |
# whatever | |
} | |
END { |
# | |
# Ignore requests for useless dot files generated by OS X Finder (WebDAV). | |
# | |
# This little hack speeds-up a WebDAV access from the Finder significantly and | |
# also prevents messing storage with these annoying files. | |
# | |
location ~ \.(_.*|DS_Store|Spotlight-V100|TemporaryItems|Trashes|hidden)$ { | |
access_log off; | |
error_log off; |
#!/usr/bin/env python3 | |
import simplekml | |
import urllib.request | |
try: | |
import simplejson as json | |
except ImportError: | |
import json | |
fr24_flight_code = "" |
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
import Foundation | |
import UIKit | |
extension String { | |
var attributedString: NSAttributedString { | |
return NSAttributedString(string: self) | |
} | |
} |
#!/bin/bash | |
################################ | |
# OS X Install ISO Creater # | |
# # | |
# Author: shela # | |
################################ | |
####################################### | |
# Declarations |
*.img | |
*.raw |