Skip to content

Instantly share code, notes, and snippets.

View dschaper's full-sized avatar

Dan Schaper dschaper

View GitHub Profile
tcp:
routers:
rou_dot:
entryPoints:
- dot
rule: HostSNI(`my.dot.domain.here`)
service: svc_dot
tls:
certResolver: le
services:
@KennethScott
KennethScott / ChannelHelper.js
Last active April 14, 2024 19:26
Channel Management Helper for ChannelsDVR (Bookmarklet version)
/*
This code is intended to be used as a bookmarklet for use with ChannelsDVR. It provides simple functionality to
sort, update, and filter channel lineups.
It is expected that you are on a Manage Lineup popup for a given Channel Source within the Settings page when you
click the bookmarklet.
You may use any bookmarklet maker site you wish that is capable of handling ES6 (or newer) javascript.
There are no external dependencies.
Recommended instructions for creating the bookmarklet using https://caiorss.github.io/bookmarklet-maker/
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active May 2, 2024 01:13
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@pearofducks
pearofducks / .vimrc
Created August 21, 2017 12:54
vimrc
set nocp
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-haml', { 'for': 'haml' }
Plug 'tpope/vim-commentary'
Plug 'pearofducks/vim-mkdn', { 'for': 'markdown' }
@gryte
gryte / install_config-win2k16_core-proxmox.md
Last active November 21, 2023 06:06
Install and Configure - Windows Server 2016 Core on ProxMox VM

Install and Configure - Windows Server 2016 Core on ProxMox VM

stage drivers locally

# display available drives
Get-PSDrive

# create local driver directory
mkdir c:\drivers
@tavinus
tavinus / opkg-do-upgradable.sh
Last active December 13, 2019 22:00
OpenWRT / LEDE quick and dirty packages upgrade
#!/bin/sh
###############################################
# Gustavo Arnosti Neves
# May / 2017
#
# Upgrade packages listed by:
# opkg list-upgradable
#
# This Script:
# https://gist.github.com/tavinus/997d896cebd575bfaf1706ce6e701c2d
@cryzed
cryzed / fix-infinality.md
Last active April 30, 2024 22:01
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@gwillem
gwillem / ansible-bootstrap-ubuntu-16.04.yml
Created June 16, 2016 21:59
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook.
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# gwillem@gmail.com
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
@lachesis
lachesis / letsencrypt_notes.sh
Last active December 13, 2023 11:02
Set up LetsEncrypt using acme.sh without root
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# updating, and installing certificates. This account will have the following
# (fairly minimal) permissions:
# - Host files at http://EXAMPLE.com/.well-known/acme-challenge
@timothybasanov
timothybasanov / .reuse-session
Last active September 15, 2023 20:04
byobu/tmux configuration
# https://github.com/dustinkirkland/byobu/commit/755c0e9f28b3f8ee57d9c7fc166f0bcbe96577db