Skip to content

Instantly share code, notes, and snippets.

View chrislange's full-sized avatar

Chris Lange chrislange

View GitHub Profile
@chrislange
chrislange / docker-compose.yml
Created March 10, 2020 00:01
Docker compose for pi-hole with cloudflared
version: "3"
services:
cloudflared:
container_name: ph-cloudflared
image: visibilityspots/cloudflared:latest
restart: unless-stopped
networks:
pihole_net:
ipv4_address: 10.0.0.2
@chrislange
chrislange / blog-dev.sh
Created December 28, 2019 09:50 — forked from TownLake/blog-dev.sh
Shell script that will switch to your blog directory, start a testing Hugo server, wait for it to begin, and then connect it to the Internet via a free Cloudflare Argo Tunnel.
#!/bin/bash
trap "exit" INT TERM ERR
trap "kill 0" EXIT
# These lines make sure that the Hugo server and the Argo Tunnel processes are killed when you ctrl+c the terminal window.
cd /Users/samrhea/blog-samrhea
# This changes the directory to where my blog lives. Replace this with your own by running `pwd` in your blog directory and adding the output here.

Keybase proof

I hereby claim:

  • I am chrislange on github.
  • I am chrislange (https://keybase.io/chrislange) on keybase.
  • I have a public key ASBu5Lj-0gtBTArZR5kmO-flnL2_NNDkTcObHg2SxlPTqwo

To claim this, I am signing this object:

@chrislange
chrislange / netlify.toml
Created November 17, 2018 19:57
Hugo - Netlify config file
[build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.51"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
@chrislange
chrislange / guacamole install on ubuntu 16.04
Created January 26, 2017 16:39 — forked from cyrex562/guacamole install on ubuntu 16.04
guacamole install on ubuntu 16.04
# install required packages
add-apt-repository ppa:webupd8team/java
apt -y update
apt -y upgrade
apt -y dist-upgrade
apt -y install libcairo2-dev libjpeg-turbo8-dev libpng12-dev libossp-uuid-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev \
libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev git build-essential autoconf libtool oracle-java8-installer tomcat8 \
tomcat8-admin tomcat8-common tomcat8-docs tomcat8-user maven mysql-server mysql-client mysql-common mysql-utilities libpulse-dev \
libvorbis-dev freerdp ghostscript wget
@chrislange
chrislange / CSS3 Media Queries Template
Created November 24, 2016 23:14
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@chrislange
chrislange / dabblet.css
Created May 13, 2013 10:30
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@chrislange
chrislange / dabblet.css
Created May 7, 2013 12:59
Point Location
#container {
width:990px;
margin:0 auto;
height:auto;
}
.infotip span a {color:#fff;font-weight:bold;text-decoration:none;float:right;}
.infotip span {
display:none;
min-width:320px;
@chrislange
chrislange / dabblet.css
Created May 7, 2013 12:59
Point Location
#container {
width:990px;
margin:0 auto;
height:auto;
}
.infotip span a {color:#fff;font-weight:bold;text-decoration:none;float:right;}
.infotip span {
display:none;
min-width:320px;
@chrislange
chrislange / dabblet.css
Created May 7, 2013 12:59
Point Location
#container {
width:990px;
margin:0 auto;
height:auto;
}
.infotip span a {color:#fff;font-weight:bold;text-decoration:none;float:right;}
.infotip span {
display:none;
min-width:320px;