Skip to content

Instantly share code, notes, and snippets.

@btjones
btjones / remove-all-from-docker.sh
Last active March 2, 2020 18:21 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa`
# Remove all volumes
@btjones
btjones / SimpleKeychain.h
Created April 9, 2014 16:12
An updated version of SimpleKeychain (original: http://stackoverflow.com/a/5251820/334725) that supports accounts
#import <Foundation/Foundation.h>
@class SimpleKeychainUserPass;
@interface SimpleKeychain : NSObject
+ (void)save:(NSString *)service account:(NSString *)account data:(id)data;
+ (id)load:(NSString *)service account:(NSString *)account;
+ (void)delete:(NSString *)service account:(NSString *)account;
@btjones
btjones / _config.yml
Created August 27, 2012 15:44
This is a Jekyll plugin that uses the file path to set a page variable. Then, we can use that page variable as a key to access directory wide config variables in _config.yml. This example uses the file structure conferences/[CONFERENCE_KEY].
# conference config
conferences:
conference1: {
name: Conference 1 Wow!,
date: Jan 1-6 2013
}
conference2: {
name: Conference 2 Neato!!,
date: Dec 15-20 2013
}