Skip to content

Instantly share code, notes, and snippets.

View cjohnson496's full-sized avatar

Charles Johnson cjohnson496

View GitHub Profile
@cjohnson496
cjohnson496 / csv2table.hs
Created January 10, 2018 22:04 — forked from baig/csv2table.hs
A Pandoc filter that replaces Image links having *.csv extension with Pandoc Markdown Tables.
#!/usr/bin/env runhaskell
{-
The MIT License (MIT)
Copyright (c) 2015 Wasif Hasan Baig <pr.wasif@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@cjohnson496
cjohnson496 / flowdock-archive-to-html.rb
Created December 7, 2017 19:49 — forked from noniq/flowdock-archive-to-html.rb
Convert the messages.json file from an exported Flowdock flow into a static HTML page.
#!/usr/bin/env ruby
# Convert an exported Flowdock flow into a static HTML document.
#
# Usage:
#
# flowdock-archive-to-html messages.json > messages.html
#
# The script assumes that there is a subdirectory `files` containing all files referenced in the exported flow. (This is exactly the
# directory structure you get if you unzip an archive downloaded from Flowdock.)
@cjohnson496
cjohnson496 / prehensile.networkwatcher.plist
Created November 29, 2017 19:58 — forked from prehensile/prehensile.networkwatcher.plist
A launchd daemon to execute a Python script when network configuration changes.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>prehensile.networkwatcher</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/python</string>
@cjohnson496
cjohnson496 / gist:36d634dbdc79593d8bd59bf68f556bf0
Created October 15, 2017 22:05 — forked from Atem18/gist:4696071
Tutorial to seting up a django website in production.

******************************************************************** Set up Django, Nginx and Gunicorn in a Virtualenv controled by Supervisor********************************************************************

Steps with explanations to set up a server using:

  • Virtualenv
  • Virtualenvwrapper
  • Django
  • Gunicorn
@cjohnson496
cjohnson496 / .bash_profile
Created September 22, 2017 03:16 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@cjohnson496
cjohnson496 / bootstrapNewMac
Created September 22, 2017 02:46 — forked from natelandau/bootstrapNewMac
A bootstrap script to install my dotfiles and configure a new computer
#!/usr/bin/env bash
# This bootstraps installing ssh-keys to github
# set colors
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
ORANGE="$(tput setaf 172)"
else
@cjohnson496
cjohnson496 / SVN_Subversion_on_Mac_OS-X.md
Created September 7, 2017 18:30 — forked from ejlp12/SVN_Subversion_on_Mac_OS-X.md
Subversion (SVN) server on Mac (OS-X)

Install SVN

$ brew options subversion
--universal
	Build a universal binary
--with-gpg-agent
	Build with support for GPG Agent
--with-java
	Build Java bindings
--with-perl
@cjohnson496
cjohnson496 / 1 - Startup
Created September 6, 2017 05:02 — forked from jamestomasino/1 - Startup
Setup for OSX development environment
- Install XCode
- Make your user an admin
- Create SSH keys
$ ssh-keygen
- Upload public key to Assembla & Github
$ cat ~/.ssh/id_rsa.pub | pbcopy
@cjohnson496
cjohnson496 / gist:357a8dfba0ada3903e0435d4286a7503
Created May 26, 2017 17:18 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@cjohnson496
cjohnson496 / README.md
Last active May 15, 2017 21:30 — forked from hofmannsven/README.md
My simple Git Cheatsheet