Skip to content

Instantly share code, notes, and snippets.

@abrahamvegh
abrahamvegh / unifi_ssl_import.sh
Last active October 9, 2016 01:48 — forked from stevejenkins/unifi_ssl_import.sh
Import and use SSL certificates (including Let's Encrypt) with the Ubiquiti UniFi Controller on Unix/Linux Systems
#!/usr/bin/env bash
# unifi_ssl_import.sh
# UniFi Controller SSL Certificate Import Script for Unix/Linux Systems
# by Steve Jenkins <http://www.stevejenkins.com/>
# modified by Abraham Vegh <https://abrahamvegh.com>
# Incorporates ideas from https://source.sosdg.org/brielle/lets-encrypt-scripts
# Version 3.0
# Last Updated October 8, 2016
@abrahamvegh
abrahamvegh / CSTextCell.m
Created April 28, 2011 17:34 — forked from asmallteapot/CSTextCell.m
Trying to figure out how I’m doing cell recycling wrong.
#import <UIKit/UIKit.h>
// Including the .h and .m file together for simplicity’s sake.
// yes, this is a horrific abuse of ObjC
@interface CSTextCell : UITableViewCell {
}
+ (id)generate:(UITableView *)tableView at:(NSIndexPath *)indexPath text:(NSString *)text;
+ (NSString *)cellID;
@abrahamvegh
abrahamvegh / .bashrc
Created December 23, 2009 14:58 — forked from stammy/.bashrc
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"