Skip to content

Instantly share code, notes, and snippets.

🎛️

Mal Curtis snikch

🎛️
View GitHub Profile
@snikch
snikch / .env.example
Last active Jun 29, 2020
Chia Network Docker Compose
View .env.example
PLOTS_TMP_DIR=/mnt/scratch/plots
PLOTS_FINAL_DIR=/mnt/storage/plots
View keybase.md

Keybase proof

I hereby claim:

  • I am snikch on github.
  • I am snikch (https://keybase.io/snikch) on keybase.
  • I have a public key ASBxC7cG-o9JguSQGkfICPIFmoH4LE7GcvVj-Ucxxbjpsgo

To claim this, I am signing this object:

@snikch
snikch / dropbox@.service
Created May 30, 2018
Dropbox Service for Ubuntu 16+
View dropbox@.service
[Unit]
Description=Dropbox as a system service user %i
[Service]
Type=forking
ExecStart=/usr/bin/dropbox start
ExecStop=/usr/bin/dropbox stop
User=%i
Group=%i
# 'LANG' might be unnecessary, since systemd already sets the
@snikch
snikch / interfaces
Created Jan 18, 2016
Working Raspberry Pi USB wifi
View interfaces
uto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlamn0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
@snikch
snikch / install.md
Last active Aug 29, 2015
Raspberry Pi syncronised airplay installation
View install.md

Install Raspbian

Install raspbian via NOOBs. Seems all g.

Install shairplay

Prerequisites

# Update Packages
@snikch
snikch / README.md
Created Feb 5, 2014
Apostle Rails testing
View README.md

Testing an apostle-rails Integration

This document gives examples using RSpec, but the concepts should apply to any testing framework.

Turn off delivery

In test, we recommend turning off delivery. You can do this in a spec helper, or similar. All calls to #deliver will return true.

require 'apostle'
@snikch
snikch / sample_data.json
Created Dec 8, 2013
Apostle.io 'Order' email sample data
View sample_data.json
{
"customer": {
"name": "Joe Blogs",
"address": "123 Example St,\nFaketown\nNew Zealand"
},
"order": {
"id": "51234",
"date": "25/12/13",
"total": "35",
"tax": "5.60",
@snikch
snikch / README.md
Last active Dec 29, 2015
Apostle.io integration
View README.md

Apostle.io Client Integration Guide

Apostle.io is a web service for managing web app generated emails. This guide describes the requirements for writing a Client Library in any language.

Please check http://github.com/apostle to see if there is a client library for your language already.

This gist lives at https://gist.github.com/snikch/7606139

Style Guide

@snikch
snikch / Podfile
Last active Dec 27, 2015
Slow pod install. Mac OS 10.9.0 Mavericks Ruby: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]
View Podfile
platform :ios, '6.0'
pod 'HockeySDK'
pod 'Lockbox'
pod 'ViewDeck'
pod 'RestKit'
pod 'SDWebImage'
pod 'DDPageControl'
pod 'MagicalRecord'
pod 'SSPullToRefresh'
pod 'AFOAuth2Client'
@snikch
snikch / test.rb
Last active Mar 28, 2018
Convert a UUID to UTF-8 encoding to visually shorten.
View test.rb
>> code = Urlcode.uuid_to_code("4c3559f0-cd95-482f-a27d-b2bbc68523ef")
=> "䰵姰축䠯ꉽ늻욅⏯"
>> Urlcode.code_to_uuid(code)
=> "4c3559f0-cd95-482f-a27d-b2bbc68523ef"
You can’t perform that action at this time.