Skip to content

Instantly share code, notes, and snippets.

View caseycoding's full-sized avatar
🐢
woof

Casey Billman caseycoding

🐢
woof
View GitHub Profile

Keybase proof

I hereby claim:

  • I am caseycoding on github.
  • I am caseybillman (https://keybase.io/caseybillman) on keybase.
  • I have a public key ASDLjHi-JNjhpqttEn_-L36cJvbbW5AGgwbm7R3n-0nnnAo

To claim this, I am signing this object:

@caseycoding
caseycoding / vsftpd.md
Last active January 17, 2024 10:46 — forked from giordanocardillo/Install vsftpd with virtual users on Ubuntu 14.04.md
vsftpd with virtual users (htpasswd), s3fs

OS: Ubuntu 16.04

First you need vsftp and PAM installed

sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install vsftpd libpam-pwdfile apache2-utils s3fs -y

Edit /etc/vsftpd.conf

sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig
@caseycoding
caseycoding / circle-ci-pre-commit
Created May 10, 2018 03:06
Circle CI Pre-commit hook
#!/bin/sh
# If validation fails, tell circleci to stop and provide error message. Otherwise, continue.
if ! [ -x "$(command -v circleci)" ]; then
echo 'Error: circle is not installed. Circle config validation will not occur.' >&2
exit 0
else
# The following line is needed by the CircleCI Local Build Tool (due to Docker interactivity)
exec < /dev/tty
@caseycoding
caseycoding / pr_opener.sh
Last active January 5, 2018 19:34
pr_opener
AUTH_HEADER='"Authorization: bearer HEREHEREHEREHEREHEREHEREHEREHEREHEREHEREHEREHERE"'
ACCEPT_HEADER='"Accept: application/vnd.github.v3+json"'
# Message within the pr
BODY="Script generated pull request"
# TESTING
# OWNER=caseycoding
# REPOS=(caseycoding.github.io tic-tac-toe)
# BRANCHES=(caseycoding.github.io tic-tac-toe)
@caseycoding
caseycoding / CCZoneMonitor.swift
Last active January 21, 2016 18:09
Swift BCZoneMonitor example
//
// CCZoneMonitor.swift
// SwiftExamples
//
// Created by Casey Billman on 1/18/16.
// Copyright © 2016 BlueCats. All rights reserved.
//
import Foundation
import BlueCatsSDK
@caseycoding
caseycoding / linkJazzyDocs.js
Last active January 20, 2016 16:03
Adds links in declarations for Jazzy docs with javascript and nodejs
var fs = require('fs');
var docCategories = ['Classes','Enums','Protocols','Categories']
var docPath = './docs/'
var classesPath = './docs/Classes/'
var enumsPath = './docs/Enums/'
var protocolPath = './docs/Protocols/'
var categoriesPath = './docs/Categories/'
@caseycoding
caseycoding / ViewController.M
Created September 9, 2015 22:07
iBeacon Ranger View Controller with two regions
//
// ViewController.m
// iBeaconRanger
//
//
//
#import "ViewController.h"
#import <CoreLocation/Corelocation.h>
@caseycoding
caseycoding / Bridging-Header.h
Last active August 1, 2016 20:01
lazy bridging-header for older versions of the BlueCats SDK.
//
// Bridging-Header.h
//
//
// Created by BlueCats Austin on 9/24/15.
// Copyright © 2015 BlueCats. All rights reserved.
//
#ifndef Bridging_Header_h
#define Bridging_Header_h
@caseycoding
caseycoding / AppDelegate.m
Last active November 5, 2020 14:09
iBeacon Background Notification
//
// AppDelegate.m
// BCLocalNotifications
//
// Created by Damien Clarke on 24/05/2015.
// Copyright (c) 2015 Bluecats. All rights reserved.
//
#import "AppDelegate.h"
#import "BlueCatsSDK.h"
@caseycoding
caseycoding / AppDelegate.m
Last active April 1, 2016 16:59
Background Local Notifications by Proximity with Secure Mode Beacons
//
// AppDelegate.m
// BCLocalNotifications
//
// Created by Damien Clarke on 24/05/2015.
// Copyright (c) 2015 Bluecats. All rights reserved.
//
//Note: you must select 'Uses Bluetooth LE Accessories' and request always location permission
//'Uses Bluetooth LE Accessories': https://github.com/bluecats/bluecats-ios-sdk/wiki/Ranging-Secure-Beacons-in-the-Background-and-Core-Data-Notification-Conflicts#ranging-secure-beacons-in-the-background