Skip to content

Instantly share code, notes, and snippets.

View rodtreweek's full-sized avatar

Rod Treweek rodtreweek

  • Portland, OR
View GitHub Profile
@rodtreweek
rodtreweek / GitLab-CE on Windows 10
Created October 27, 2017 08:49 — forked from kingbin/GitLab-CE on Windows 10
Using Docker toolbox to create a persistent Gitlab-CE install in Windows 10
$ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest
# Make sure Bridging is set on the VM in VirtualBox
$ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest
Using docker 1.13.1
@rodtreweek
rodtreweek / pedantically_commented_playbook.yml
Created October 27, 2017 19:23 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@rodtreweek
rodtreweek / tmux-cheat-sheet.md
Created January 19, 2018 02:13 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@rodtreweek
rodtreweek / ansible-win-10-wsl-config.sh
Created January 30, 2018 01:06 — forked from gregjhogan/ansible-win-10-wsl-config.sh
ansible windows 10 WSL configuration
sudo apt-get -y update
sudo apt-get -y install python
sudo easy_install pip
sudo pip install ansible
sudo pip install "pywinrm>=0.2.2"
# kerberos authentication support
#sudo apt-get install -y python-dev libkrb5-dev krb5-user
#sudo pip install pywinrm[kerberos]
@rodtreweek
rodtreweek / sed cheatsheet
Created February 7, 2018 18:25 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@rodtreweek
rodtreweek / WSL-ssh-server.md
Created July 12, 2018 19:07 — forked from dentechy/WSL-ssh-server.md
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux

How to automatically start ssh server on boot on Windows Subsystem for Linux

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Uninstall and reinstall the ssh server using the following commands:
    1. sudo apt remove openssh-server
    2. sudo apt install openssh-server
  2. Edit the /etc/ssh/sshd_config file by running the command sudo vi /etc/ssh/sshd_config and do the following
    1. Change Port to 2222 (or any other port above 1000)
  3. Change UsePrivilegeSeparation to no
@rodtreweek
rodtreweek / add CA cert on CentOS.md
Created July 24, 2018 19:49 — forked from kekru/add CA cert on CentOS Debian Ubuntu.md
Add CA cert to local trust store on CentOS or Debian
  • Open a webpage that uses the CA with Firefox
  • Click the lock-icon in the addressbar -> show information -> show certificate
  • the certificate viewer will open
  • click details and choose the certificate of the certificate-chain, you want to import to CentOS
  • click "Export..." and save it as .crt file
  • Copy the .crt file to /etc/pki/ca-trust/source/anchors on your CentOS machine
  • run update-ca-trust extract
  • test it with wget https://thewebsite.org
@rodtreweek
rodtreweek / .zshrc
Created October 7, 2018 19:43 — forked from reidblomquist/.zshrc
zshrc (w/ prezto and powerlevel9k)
#
# Reid Blomquist's zshrc
#
# stuff being used:
# - zsh
# - prezto
# - powerlevel9k
# - a bunch of other shit
#
@rodtreweek
rodtreweek / README.md
Created March 5, 2019 11:57 — forked from ahmozkya/README.md
Homebrew with DNSMasq + DNSCrypt-proxy (OpenDNS)

Install & Configure

  1. Install DNSMasq
$ brew install dnsmasq
  1. Install DNSCrypt-proxy
$ brew install dnscrypt-proxy
@rodtreweek
rodtreweek / 00_ha_dnscrypt_proxy_client_setup.markdown
Created March 5, 2019 12:13
Highly-available dnscrypt-proxy client setup on OSX with DNSSEC.

Tested, works!

Install

git clone https://gist.github.com/fccbf0f02355a31f7959 && cd fccbf0f02355a31f7959 && sh install.sh && cd .. && rm -rf fccbf0f02355a31f7959

Uninstall

git clone https://gist.github.com/fccbf0f02355a31f7959 && cd fccbf0f02355a31f7959 && sh uninstall.sh && cd .. && rm -rf fccbf0f02355a31f7959