Skip to content

Instantly share code, notes, and snippets.

Lee Foster lpf23

  • Texas
Block or report user

Report or block lpf23

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Python + Django Environment Setup - OSX
1. $> brew install python3
2. add to .zshrc and/or .bashrc:
export PATH=$HOME/Library/Python/3.7/bin:$PATH
3. $> pip3 install --user pipenv
4. $> pip3 install virtualenv
@lpf23
lpf23 / Xubuntu Guest Additions
Created Oct 15, 2015
Install VirtualBox Guest Additions 5.0.6 on Xubuntu 15.04
View Xubuntu Guest Additions
sudo apt-get install build-essential module-assistant
sudo m-a prepare
cd /media/<username>/VBOXADDITIONS_5.0.6_103037/
sudo ./VBoxLinuxAdditions.run
@lpf23
lpf23 / postgresql (notes)
Created Jun 7, 2015
brew install postgresql (notes)
View postgresql (notes)
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
https://github.com/Homebrew/homebrew/issues/2510
To migrate existing data from a previous major version (pre-9.4) of PostgreSQL, see:
https://www.postgresql.org/docs/9.4/static/upgrading.html
To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
Then to load postgresql now:
@lpf23
lpf23 / openssl notes
Created Jun 7, 2015
brew install openssl (notes)
View openssl notes
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
@lpf23
lpf23 / Apple Keyboard & CentOS
Created Sep 18, 2014
Apple Keyboard w/CentOS Virtualbox
View Apple Keyboard & CentOS
System -> Preferences -> Keyboard
Under Layouts tab, choose the appropriate Keyboard model
Click 'Layout Options...' button
Expand Alt/Win key behavior
Choose "Control is mapped to Win keys (and the usual Ctrl keys)
@lpf23
lpf23 / Reset Bash Shell Environment
Created Aug 6, 2014
Refresh Bash Shell Environment
@lpf23
lpf23 / Install Chef Server
Last active Aug 29, 2015
Install Chef Server
View Install Chef Server
Ubuntu:
1) wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.1.3-1_amd64.deb
2) dpkg -i chef-server*.deb
3) sudo chef-server-ctl reconfigure
4) sudo chef-server-ctl test
CentOS:
@lpf23
lpf23 / CNTLM Proxy - Centos
Last active Oct 2, 2019
Configure CNTLM Proxy on Centos/Ubuntu
View CNTLM Proxy - Centos
1) Download cntlm rpm package from http://sourceforge.net/projects/cntlm/files/cntlm/
2) Login as root
3) Run command:
$ rpm -ivh cntlm-*.rpm
4a) Obtain password hash for the configuration file in step 4b (do not put plaintext password in configuration)
$ cntlm -H -d <domain> -u <username>
@lpf23
lpf23 / Install_VB_GuestAdditions_Ubuntu
Last active Aug 29, 2015
Install VirtualBox Guest Additions on Ubuntu
View Install_VB_GuestAdditions_Ubuntu
These steps have worked with Ubuntu 14.04, Kubuntu 14.04 and Lubuntu 14.04
1) # sudo apt-get update
2) # sudo apt-get upgrade
3) # sudo apt-get install linux-headers-generic
4) # sudo apt-get install build-essential dkms
@lpf23
lpf23 / CanonMG5200_Ubuntu
Created Jul 2, 2014
Canon MG5200 & Ubuntu
View CanonMG5200_Ubuntu
sudo add-apt-repository ppa:michael-gruz/canon-trunk
sudo apt-get update
sudo apt-get install cnijfilter-common
sudo apt-get install cnijfilter-mg5200series
You can’t perform that action at this time.