Skip to content

Instantly share code, notes, and snippets.

View 031nna's full-sized avatar
🕸️
O1.

031nna

🕸️
O1.
View GitHub Profile

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@031nna
031nna / ngrok-installation.md
Created January 16, 2019 10:58 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
@031nna
031nna / gist:8a0ef7cc7483701621939bc32d14af5e
Created August 11, 2018 01:56 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@031nna
031nna / setup_mailcatcher.sh
Last active July 21, 2018 02:32 — forked from shark0der/setup_mailcatcher.sh
Mailcatcher installation script for Ubuntu 16.04 (14.04 commands commented out)
#!/bin/bash
# Install dependencies
# older ubuntus
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev
# xenial
sudo apt install build-essential libsqlite3-dev ruby-dev
# Install the gem
sudo gem install mailcatcher --no-ri --no-rdoc
@031nna
031nna / countries.php
Created June 14, 2018 19:32 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
@031nna
031nna / install.sh
Created May 29, 2018 04:06 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@031nna
031nna / gist:022dad52620b1742d9d23160d1738dfa
Created November 10, 2017 17:40 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@031nna
031nna / running-selenium.md
Last active June 5, 2018 17:12 — forked from aczietlow/selenium-php-webdriver-cheatsheet.md
Cheat sheet for using php webdriver (facebook/webdriver). https://goo.gl/L7wskn
use `xvfb-run java -Dwebdriver.chrome.driver=/home/vagrant/sites/millenium-testsuite/bin/drivers/chromedriver -jar bin/server/selenium-server-standalone-3.12.0.jar` or
`xvfb-run java -Dwebdriver.gecko.driver=/home/vagrant/sites/millenium-testsuite/bin/drivers/geckodriver -jar bin/server/selenium-server-standalone-3.12.0.jar
` to avoid issues in phantomjs
download link for selenium-server-standalone-3.12.0.jar: https://goo.gl/tbd1NS
start phantomjs server node_modules/.bin/phantomjs --webdriver=8001 or use selenium server java -jar bin/server/selenium-server-standalone-3.12.0.jar
or use  xvfb-run phantomjs --webdriver=8001  or phantomjs -platform offscreen --webdriver=8001