RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| do_install_pivpn() { | |
| #curl -L https://install.pivpn.io | bash | |
| setupVars=/etc/pivpn/setupVars.conf | |
| if [ -e "${setupVars}" ]; then | |
| sed -i.update.bak '/pivpnUser/d;/UNATTUPG/d;/pivpnInterface/d;/IPv4dns/d;/IPv4addr/d;/IPv4gw/d;/pivpnProto/d;/PORT/d;/ENCRYPT/d;/DOWNLOAD_DH_PARAM/d;/PUBLICDNS/d;/OVPNDNS1/d;/OVPNDNS2/d;/SERVER_NAME/d;' "${setupVars}" | |
| else | |
| mkdir -p /etc/pivpn | |
| touch "${setupVars}" | |
| fi |
- Create namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: gitlab
kubectl create -f ./namespace.yaml
Sometimes you may want to use a DNS server for specific domain requests and another DNS server for all other requests. This is helpful, for instance, when connected to a VPN. For hosts behind that VPN you want to use the VPN's DNS server but all other hosts you want to use Google's public DNS. This is called "DNS splitting."
Here, we run dnsmasq as a background service on macOS. The dnsmasq configuration described below implements DNS splitting.
brew install dnsmasq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [program:autossh] | |
| command=autossh -M0 -N | |
| -o "ExitOnForwardFailure yes" | |
| -o "ServerAliveInterval 15" | |
| -o "ServerAliveCountMax 4" | |
| -o "ControlPath none" | |
| -o "UserKnownHostsFile=/dev/null" | |
| -o StrictHostKeyChecking=no | |
| -R 1234:localhost:1234 | |
| -R 4567:localhost:4567 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Exports issues from a list of repositories to individual csv files. | |
| Uses basic authentication (Github username + password) to retrieve issues | |
| from a repository that username has access to. Supports Github API v3. | |
| Forked from: unbracketed/export_repo_issues_to_csv.py | |
| """ | |
| import argparse | |
| import csv | |
| from getpass import getpass | |
| import requests |
- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml- using inventory:
127.0.0.1 ansible_connection=local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!ipxe | |
| set sysrcd-version 4.7.1 | |
| echo Booting SystemRescueCD ${sysrcd-version} x86 for ${initiator-iqn} | |
| # Kernel command-line options are documented here: | |
| # http://www.system-rescue-cd.org/Sysresccd-manual-en_Booting_the_CD-ROM#Network_boot_using_PXE | |
| set base-url sysrcd-${sysrcd-version}-x86/ | |
| kernel ${base-url}isolinux/altker${archs} setkmap=no net.ifnames=0 backstore=off | |
| initrd ${base-url}isolinux/initram.igz | |
| initrd ${base-url}sysrcd.dat /sysrcd.dat | |
| # Load the ramdisk again as a file inside the ramdisk, so our custom init script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine | |
| ENV \ | |
| APP_DIR="/app" \ | |
| APP_PORT="80" | |
| # the "app" directory (relative to Dockerfile) containers your Laravel app... | |
| COPY app/ $APP_DIR | |
| RUN apk add --update \ |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to: