Skip to content

Instantly share code, notes, and snippets.

@obskein
obskein / EventEmitter.swift
Created November 27, 2023 17:34 — forked from brennanMKE/EventEmitter.swift
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
checkpoint = [20000, "00004e207e5f4616b0fe08ffff10bf1019331d98"]
checkpoint = [40000, "00009c404ff04b5e2e1bf593b3a5354f47d4d08d"]
checkpoint = [60000, "0000ea6059f1b29115d331f083ca204b9451b98b"]
checkpoint = [80000, "000138803fc6a034c2525b2a69cfb02a9fc61fc0"]
checkpoint = [100000, "000186a0cfef22f58e73790f30b39afd24fb9a6e"]
checkpoint = [120000, "0001d4c01bbf70e01d3fcaf6f7db72f2f5329922"]
checkpoint = [140000, "000222e0fdbf21818e7a5f93197f32dfbd86feed"]
checkpoint = [160000, "0002710059e204243e1407e81b21373b10b3cd23"]
checkpoint = [180000, "0002bf208c24011279986856a2c7c936d9754f94"]
checkpoint = [200000, "00030d4039940e2087ef827fd5926dcadcdc6741"]
@obskein
obskein / xgtd_instance@.service
Last active June 21, 2021 20:28
/etc/systemd/system/xgtd_instance@.service
[Unit]
Description=xgtd-instance-%i
After=network.target
Before=shutdown.target
[Service]
User=your-user
Group=your-user
WorkingDirectory=/whereever-you-put-xgt
ExecStart=/bin/bash -lc "XGT_INSTANCE_INDEX=%i rake run"
#!/bin/sh
set -e
DEBIAN_FRONTEND="noninteractive"
sudo apt-get clean && sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
@obskein
obskein / gist:dad189dd23d6f8499b7d66b70dd8f3c4
Created November 7, 2018 19:45 — forked from ebeigarts/gist:970898
html2haml recursive
for f in `find . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done
@obskein
obskein / concat_oa.sh
Created December 11, 2016 04:25 — forked from missinglink/concat_oa.sh
concat all openaddresses csv files in to a single file
#!/bin/bash
# concatenate all openaddresses csv files in to a single stream
# note: deduplicates lines in each file
# avoid locale issues with the sort command
export LC_ALL=C;
# base path of openaddresses file system
OAPATH='/data/oa';
@obskein
obskein / build.sh
Created December 11, 2016 04:24 — forked from missinglink/build.sh
Pelias Build Script
#!/bin/bash
# Dependencies
for dep in 'git' 'wget' 'curl'; do
if [ ! `which $dep` ]; then
echo "$dep required, please install it and try again";
exit 1;
fi
done
@obskein
obskein / active_jerbz.rake
Created February 28, 2016 06:14 — forked from stevegraham/active_jerbz.rake
Run ActiveJobs with Sneakers
require 'sneakers/runner'
task :environment
namespace :sneakers do
desc "Start processing jobs with all workers"
task :work => :environment do
silence_warnings do
Rails.application.eager_load! unless Rails.application.config.eager_load
end
@obskein
obskein / Dockerfile
Created January 21, 2016 22:57 — forked from Arcrammer/Dockerfile
Rails Dockerfile
FROM ruby:latest
MAINTAINER Alexander Rhett Crammer <Alexander2475914@gmail.com>
# ENV Variables
ENV HOME /home/rails/eximius
# Dependencies required by Rails and RubyGems
RUN apt-get update -qq \
&& apt-get install -y \
build-essential \
@obskein
obskein / id_rsa.pub
Created December 14, 2015 22:17
My public SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCroOFzPBL98c4Vi+FZlZtN+gcBnXGQBoJeHQ5t/XEpWb7/9kJH2uJVM+0hoISLXjhMztkJ1J2dOSH3aDjdKFK05TB70tAyUmEdyYZEOhQA08DK2e1zMzLxQEVa6fR2CG7zkStWR3k/q5whO1kw900OJKsPxu1oRL/DJfszd7IihV0Im8jWUG45V+terOk0F2kG5mrZb2VTIPctrSVNPzois7sDSy3MtN+viaAFWfWV3hi/pkdFEx50M3gO+a90LEZX8lv0tAw6Cs8qGY4Vh4QB0gk8l1w/cYABhNqAQBLrpVxUxm4A9af82naATIIm34SVcVqwYQGketkyyz4JQlhD obskein@rdEdon.local