Skip to content

Instantly share code, notes, and snippets.

View cletsimon's full-sized avatar

Clet Simon Sevillejo cletsimon

View GitHub Profile
@cletsimon
cletsimon / README.md
Created May 3, 2018 04:56 — forked from jonathantneal/README.md
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@cletsimon
cletsimon / gist:c16b1d680a1f5e1ea9c4ac20d4bba5aa
Created October 31, 2017 05:05 — forked from tamoyal/gist:10441108
Create super user and database user in Mongo 2.6
# Create your superuser
$ mongo
> use admin
> db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]})
> exit
# Alias for convenience (optional and at your own risk)
$ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile
$ source ~/.bash_profile
@cletsimon
cletsimon / centos6run_headless_browser_selenium_firefox.sh
Created March 28, 2016 04:01 — forked from MikimotoH/centos6run_headless_browser_selenium_firefox.sh
CentOS 6.6(final) run headless browser selenium and firefox
#!/bin/bash
# make CentOS 6.6 to run headless browser selenium
# Install Python Anaconda 3.4
# http://continuum.io/downloads
yum groupinstall "Development tools"
# https://gist.github.com/textarcana/5855427
# Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
sudo yum -y install firefox Xvfb libXfont Xorg
sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
@cletsimon
cletsimon / install-tmux
Created March 28, 2016 03:53 — forked from rothgar/install-tmux
Install tmux 1.9 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local