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() {}
@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 / install-tensorflow.sh
Created November 13, 2015 23:47 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update