Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
Working from home

Patrick H. Mullins phmullins

🎧
Working from home
View GitHub Profile
@phmullins
phmullins / setup_nginx.md
Last active Aug 29, 2015
nginx Installation and Setup
View setup_nginx.md

##nginx Installation and Setup

Ubuntu/Debian

$ sudo apt-get install nginx

Configuration

View keybase.md

Keybase proof

I hereby claim:

  • I am phmullins on github.
  • I am pmullins (https://keybase.io/pmullins) on keybase.
  • I have a public key ASCFE-lboQ7LUdlVI_-ZA8IQk-_i_3pudzXFeQpDge5RFAo

To claim this, I am signing this object:

View Blogging - Jekyll.md

Install Jekyll on Mac OS X 10.9

> sudo gem install jekyll

Jekyll Commands

@phmullins
phmullins / bash_newpass.md
Last active Sep 1, 2016
Generate a unique 10 character password using OpenSSL
View bash_newpass.md

Use OpenSSL’s random function to generate a 20 character base64 password

$ openssl rand -base64 20

Even better, add the folowwing function to your .bash_profile and then type in randpass to generate a new unique 20 character password.

@phmullins
phmullins / mapnet.sh
Last active Sep 1, 2016
Discover hosts on a network
View mapnet.sh
#!/bin/bash
# This bash script will output the IP addresses of all the live hosts on a network. Note: Hosts that filter ICMP
# are not included in this list.
#
# Usage: ./mapnet IP_RANGE Example: ./mapnet 192.168.1.1/24
clear
if [ -z "$1" ]; then
exit "Input IP range to scan. Example: 192.168.1.0/24"
@phmullins
phmullins / tut_build_p7zip.md
Last active Apr 19, 2017
Building P7ZIP on MacOS
View tut_build_p7zip.md

Building P7ZIP on MacOS

  1. Download the source from: https://sourceforge.net/projects/p7zip/files/latest/download
  2. Unzip the new file by double-clicking on it.
  3. You should now have a new folder on your Mac named p7zip_16.02 or something similar.
  4. Open a Terminal window and then make your way to the new p7zip folder.
  5. Once there, type in the following commands:

$ sudo cp makefile.macosx_llvm_64bits makefile.linux

View keys.pub
BEGIN MESSAGE.
UOJhBzXQbhAL9mx b2Zq9KKg0GddBBc dIONFZSWsrEYTdL FQHTpUNa11EPFkY
cTb1Yct36DSzkZE JZ1F3vW9tDkTCKq 6Xr2MZHgg6m77ob ZB7aRvMripLvgVQ
F4bnyGt3wCr5vK5 DPCQ2y1KCy0OsWY H54hXyoRyJdilEU TXadJvsBuDaBiOV
u8XLlUR2mEHH5Ke MKvZSIKztZjjm13 P2lYG29HFxl.
END MESSAGE.