Skip to content

Instantly share code, notes, and snippets.

Michael Poplin mmmpop

Block or report user

Report or block mmmpop

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
jdhao /
Last active May 28, 2020
The script will install GCC 5.4.0 on your CentOS 7 system, make sure you have root right. See for more details.
echo "Downloading gcc source files..."
curl -O
echo "extracting files..."
tar xvfj gcc-5.4.0.tar.bz2
echo "Installing dependencies..."
yum -y install gmp-devel mpfr-devel libmpc-devel
echo "Configure and install..."
meanevo / haproxy.cfg
Last active Jul 25, 2019
H2, HTTP/1.1 traffic balance/routing with HAProxy 1.7 (with SSL-Termination) and Nginx 1.10.2
View haproxy.cfg
# Global settings
chroot /var/lib/haproxy
pidfile /var/run/
maxconn 2048
user haproxy
group haproxy
crsuarez / gist:5a066638a805e46b448acebd4f5fe8d1
Last active May 20, 2020 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest
View gist:5a066638a805e46b448acebd4f5fe8d1

On Mac OS (host):

Shutdown your VM and do:
On a terminal:

VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip
VBoxManage dhcpserver add --ifname vboxnet0 --ip --netmask --lowerip --upperip
VBoxManage dhcpserver modify --ifname vboxnet0 --enable
yossorion /
Last active May 31, 2020
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

SergeyMiracle /
Created Jan 13, 2017 — forked from aymanosman/
Nginx: Start nginx on boot on Mac
# brew install nginx
sudo ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
sudo chown root:wheel /usr/local/opt/nginx/homebrew.mxcl.nginx.plist
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
# Why do you need sudo?
# If you want nginx to be able to bind to port 80, it will need superuser privileges
iamakulov /
Last active May 22, 2020
Fixing babel-plugin-add-module-exports in Webpack 2

babel-plugin-add-module-exports generates an incorrect bundle if you use ES modules in the latest versions of Webpack 2 (at least in 2.1.0-beta.27 and .28). Here’s what to do.

1. Remove the plugin:

  "plugins": [
-   "add-module-exports"

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.

Effective Engineer - Notes

What's an Effective Engineer?

psamit / Vagrantfile
Created Nov 5, 2016 — forked from mefellows/Vagrantfile
Example Vagrant Windows SMB Setup
View Vagrantfile
require 'io/console'
# Capture login details if starting up vagrant or provisioning it
# Required for AD operations.
# Environment variables prevent explicit user input. Useful for CI.
username = ENV["VAGRANT_USER"] || nil
password = ENV["VAGRANT_PASSWORD"] || nil
rcugut /
Last active May 24, 2020 — forked from DanHerbert/
Install node & npm on Mac OS X with Homebrew

DEPRECATED as of macOS 10.13 (High Sierra). See the new GUIDE to install nvm and yarn for macOS (updated July 2019)

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.


This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

bastman /
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
You can’t perform that action at this time.