Skip to content

Instantly share code, notes, and snippets.

View benileo's full-sized avatar

Ben Irving benileo

  • Nelson, BC Canada
  • 08:43 (UTC -07:00)
View GitHub Profile
@benileo
benileo / linux
Last active October 23, 2018 09:12
# Handy Linux Commands I never want to forget ;)
# add your user to the suduers file
username ALL=(ALL) NOPASSWD:ALL
# Set the root user password for mysql, this allows logging in with no password
mysqladmin -u root -proot password ''
# Create the letsencrypt (certbot) test environment
cd letsencrypt
@benileo
benileo / environment.sh
Last active June 2, 2016 05:21
Ubuntu Development Environment
#!/bin/bash
function run_as_root {
sudo -u root $@
}
function apt_install {
run_as_root apt-get install -y --no-install-recommends $@
}
@benileo
benileo / mongod.service
Last active March 1, 2021 04:57
Systemd Service Script for Mongod On Ubuntu 15.04, 15.10, 16.04 Xenial
[Unit]
Description=High-performance, schema-free document-oriented database
Documentation=man:mongod(1)
After=network.target
[Service]
Type=forking
User=mongodb
Group=mongodb