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
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
public readonly struct UUIDv7 {
private readonly InteriorStruct _interior;
public UUIDv7() {
@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 / ReadingListReader.swift
Last active January 10, 2021 08:17
Read your Safari Reading List and dump to plain text
import Foundation
func fatalerror(_ text : String) {
fputs(text, __stderrp)
exit(-1)
}
struct ReadingListItem {
init(title: String?, previewText: String?, url: URL, dateAdded: Date) {
self.title = title
@yaakov-h
yaakov-h / StartupTask.cs
Created December 6, 2015 09:28
Win10 IoT code for Pi Menorah
using System;
using System.Diagnostics;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
using Windows.Devices.Gpio;
using Windows.System.Threading;
namespace PiMenorah
@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 / gist:ad8ec4cb5361d3344aa8
Created March 15, 2015 07:20
Network Activity Indicator concurrent isolation
import UIKit
public class NetworkOperation {
init(application: UIApplication) {
self.application = application;
}
let application : UIApplication
@yaakov-h
yaakov-h / .gitignore
Last active August 29, 2015 14:11 — forked from ingramchen/.gitignore
protobuf
protobuf-2.6.1
protobuf-master
@yaakov-h
yaakov-h / gist:3c1e602f3fbcfe84e636
Created May 25, 2014 01:48
KRuntime Build Error
[11:41am yaakov@Expression:~/Development/DotNet/vNext/KRuntime] (branch: dev) ./build.sh
Installing 'KoreBuild 0.2.1-dev-build-0320'.
Successfully installed 'KoreBuild 0.2.1-dev-build-0320'.
Installing 'Sake 0.2'.
Successfully installed 'Sake 0.2'.
info: Target default
info: Target pre-clean
info: Target target-dir-clean
info: Target build-clean
info: Target clean
@yaakov-h
yaakov-h / keybase.md
Created March 28, 2014 03:30
keybase.md

Keybase proof

I hereby claim:

  • I am yaakov-h on github.
  • I am yaakov_h (https://keybase.io/yaakov_h) on keybase.
  • I have a public key whose fingerprint is 1777 5FF3 B42E 401D 511F 22F5 5604 4136 536F 7EF2

To claim this, I am signing this object:

@yaakov-h
yaakov-h / steam remote client
Created February 1, 2014 13:06
Proof of concept code for connecting to the Steam In-Home Streaming Remote Client control system.
#include <iostream>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <netinet/in.h>
#include <assert.h>
#include <unistd.h>
uint32_t remote_ip_addr = PUT YOUR REMOTE IP HERE AS AN INT. EG 192.168.0.4 is 0xc0A80004
uint16_t remote_port = PUT YOUR REMOTE PORT NUMBER HERE
uint8_t steam_psk[] = { PUT YOUR PSK HERE AS A BYTE ARRAY };