Skip to content

Instantly share code, notes, and snippets.

@alexellis
alexellis / README.md
Last active February 8, 2021 20:50
Provision faasd 0.7.5 on DigitalOcean with Terraform 0.12.0
  1. Sign up to DigitalOcean
  2. Download Terraform
  3. Clone this gist using the URL from the address bar
  4. Run terraform init
  5. Run terraform apply -var="do_token=$(cat $HOME/digitalocean-access-token)"
  6. View the output for the login command and gateway URL i.e.
gateway_url = http://178.128.39.201:8080/
login_cmd = faas-cli login -g http://178.128.39.201:8080/ -p rvIU49CEcFcHmqxj
William Gibson
Neuromancer
Dedication:
for Deb
who made it possible
with love
[server]
SERVER
[server:vars]
server_name=SERVER
[email protected]
docker_nginx_ssl=true
@MawKKe
MawKKe / split_ffmpeg.py
Last active August 7, 2021 21:50
MOVED TO: https://github.com/MawKKe/audiobook-split-ffmpeg | Split audio file with ffmpeg based on chapter metadata
#!/usr/bin/env python3
import sys
import os
import re
import subprocess as sub
import argparse
import tempfile
import json
from concurrent.futures import ThreadPoolExecutor, as_completed
@MawKKe
MawKKe / cryptsetup-with-luks2-and-integrity-demo.sh
Last active October 25, 2025 07:05
dm-crypt + dm-integrity + dm-raid = awesome!
#!/usr/bin/env bash
#
# Author: Markus (MawKKe) [email protected]
# Date: 2018-03-19
#
#
# What?
#
# Linux dm-crypt + dm-integrity + dm-raid (RAID1)
#
@bryanbraun
bryanbraun / .gitlab-ci.yml
Created July 6, 2017 15:15
Example Gitlab CI Config for a Rails + Nginx application using Docker Compose
# See how variables work, and a list of predefined ones:
# - https://docs.gitlab.com/ce/ci/variables/
variables:
RAILS_IMAGE: registry.gitlab.com/bryanbraun/gridmaster.io/railsapp:$CI_COMMIT_SHA
NGINX_IMAGE: registry.gitlab.com/bryanbraun/gridmaster.io/nginx:$CI_COMMIT_SHA
DEPLOY_TAG: $CI_COMMIT_SHA
cache:
paths:
- vendor/ruby
@chosig
chosig / gist:da75013914e7bc4f5d711f95c1e7fd53
Last active March 10, 2020 10:22
Just loot coins with "value" in Discworld MUD.
Coins are split on type/continent:
nickname every half-dollar & every dollar & every ten-dollar & every royal & every ankh-morpork crown as loot-am-coins
nickname every quarter-rhinu & every half-rhinu & every rhinu & every ten-rhinu & every fifty-rhinu as loot-cwc-coins
nickname every toon & every talent & every ra & every thanra as loot-djb-coins
nickname every livre & every forin & every ducat as loot-genua-coins
nickname every stater & every decadrachma & every mina & every tyrant as loot-eph-coins
nickname every shilling & every lancre crown & every tencrown & every sovereign & every hedgehog as loot-lancre-coins
nickname every fifty para & every dinar & every two dinar & every five dinar & every ten dinar & every fifty dinar & every hundred dinar & every thousand dinar & every toman as loot-klatch-coins
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active October 13, 2025 18:44
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@tmslnz
tmslnz / dnsmasq.md
Last active March 20, 2023 07:07
Setting up dnsmasq on OS X

Install dnsmasq

Via brew or other method

Set up DNS resolver order

In order to work on every connection and on any TLD, dnsmasq needs to be the first DNS resolver receving the query.

And since dnsmasq is a local process, all DNS queries need to go to 127.0.0.1

On macOS, /etc/resolv.conf is automaticaly created, depending on a variety of things (network settings, etc), so it cannot be edited.

@joaquindlz
joaquindlz / redmine_openissue.sh
Created April 3, 2016 01:22
Zabbix Action remote script: Open Redmine issue
#!/usr/bin/env bash
#######################################################################
#
# Joaquín de la Zerda <[email protected]>
# Zabbix Custom alertscripts: Open Redmine issue
# 20160402
#
#######################################################################