Skip to content

Instantly share code, notes, and snippets.

@bright-pan
bright-pan / random.sh
Last active September 18, 2018 08:06
random alphanumeric sequence generator
#!/usr/bin/env bash
###############
echo ""
echo "Welcome to the random alphanumeric sequence generator."
echo 'Random sequence generation taken from: https://gist.github.com/bright-pan/747a50ec16c4fbd078c61d484a208855'
echo ""
echo -n "Enter desired sequence length: "
read input_variable
/var/folders/4x/808kftc92hzdyqk7qdw34vn40000gn/T/python-build.20171017165051.35993 ~
/var/folders/4x/808kftc92hzdyqk7qdw34vn40000gn/T/python-build.20171017165051.35993/readline-6.3 /var/folders/4x/808kftc92hzdyqk7qdw34vn40000gn/T/python-build.20171017165051.35993 ~
checking build system type... x86_64-apple-darwin17.0.0
checking host system type... x86_64-apple-darwin17.0.0
Beginning configuration for readline-6.3 for x86_64-apple-darwin17.0.0
checking whether make sets $(MAKE)... yes
checking for gcc... clang
checking whether the C compiler works... yes
Phabricator Ubuntu Installation Guide
-------------------------------------
This is a supplement to the official [Phabricator Installation Guide](https://secure.phabricator.com/book/phabricator/article/installation_guide/), because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.
#### Install bonus packages:
# apt-get install python-pygments sendmail imagemagick
#### Create necessary users and add phd-user to sudoers:
@bright-pan
bright-pan / phabricator_readme.md
Created June 7, 2016 09:40 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@bright-pan
bright-pan / ubuntu_py3.md
Last active April 15, 2016 01:59 — forked from softwaredoug/ubuntu_py3.md
Ubuntu 14.04 Python 3.4.2 Setup using pyenv and pyvenv

What I did to get Python 3.4.2 on Ubuntu 14.04. The stock version of Python 3 on Ubuntu is 3.4.0. Which is missing some of the best parts! (asyncio, etc). Luckily I discovered pyenv which solved my problem.

Install pyenv

Pyenv (not to be confused with pyvenv) is the Python equivelant of rbenv. It lets you configure which Python environment/version is available per directory, user, or other session variables.

I followed the instructions here to install pyenv in my home directory. Verbatem, those instructions are:

sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
@bright-pan
bright-pan / init.coffee
Created January 15, 2016 07:56 — forked from justo/init.coffee
Atom mac path inheritance
# Problem: Atom won't inherit the $PATH variable set in your default OS X shell (Terminal).
# Solution: Launch an interactive shell and return $PATH from that. The interactive
# shell will run through all your various .files (.zshrc, .zshenv, etc.) before
# returning. Works well if your path is changed by NVM or RVM. Some existing solutions
# don't work if your shells output a MOTD or any other text before executing
# 'echo $PATH', as that will also be returned. Since your path _should_ be the last
# line output we can grab all text after the last newline character and use that as Atom's path.
#
# Some related issues:
@bright-pan
bright-pan / headh
Last active December 15, 2015 22:39
yasnippet snippet
#name : C header file license
# --
/*********************************************************************
* Filename: `file-name-nondirectory`
*
*
* Author: `user-full-name` <`user-mail-address`>
* Created at: `(format-time-string "%Y-%m-%d %H:%M:%S")`
*