Skip to content

Instantly share code, notes, and snippets.

View yaakov-h's full-sized avatar
👦
Hi! I like shorts! They're comfy and easy to wear!

Yaakov yaakov-h

👦
Hi! I like shorts! They're comfy and easy to wear!
View GitHub Profile
@yaakov-h
yaakov-h / kubernetes-service.yaml
Last active March 5, 2018 10:30 — forked from Jeffwan/kubernetes-service.yaml
kubernetes-service.yaml
apiVersion: v1
kind: Service
metadata:
name: nginxsvc
labels:
app: nginx
spec:
ports:
- port: 80
porotocal: TCP
@yaakov-h
yaakov-h / iphone6s.rb
Last active October 2, 2015 02:59 — forked from alexeckermann/iphone6.rb
iPhone 6s Reservation Availability in Australia
# iPhone 6 Reservation Availability in Australia
# !! Please use responsibly. Personal use only !!
# `ruby iphone6.rb` - list all available models in all stores
# `ruby iphone6.rb R405` - list available models for a specific store, Rundle Place in this example.
require 'open-uri'
require 'json'
MODEL_NAMES = {
"MKQT2X/A" => "iPhone 6s Space Grey 128GB",
@yaakov-h
yaakov-h / .gitignore
Last active August 29, 2015 14:11 — forked from ingramchen/.gitignore
protobuf
protobuf-2.6.1
protobuf-master
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
if (argc == 2) {
NSString *folderPath = [[NSString stringWithFormat:@"%s",argv[1]] stringByExpandingTildeInPath];
BOOL isFolder;
if ([[NSFileManager defaultManager] fileExistsAtPath:folderPath isDirectory:&isFolder]) {