Skip to content

Instantly share code, notes, and snippets.

View Luzifer's full-sized avatar

Knut Ahlers Luzifer

View GitHub Profile
@Luzifer
Luzifer / check_mail_v7.py
Last active November 11, 2019 22:10
Uberspace .qmail filter script (for Uberspace-v7 accounts)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Installation: Insert this line into your .qmail-* file
# | /path/to/check_mail_v7.py
from datetime import datetime
import sys
BLOCK_SCORE = 8.0
@Luzifer
Luzifer / check_mail_v6.py
Last active August 27, 2018 08:52
Uberspace .qmail filter script (for Uberspace-v6 accounts)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Installation: Insert this line into your .qmail-* file
# | spamc | /path/to/check_mail_v6.py
from datetime import datetime
import re
import sys
@Luzifer
Luzifer / postmortem.md
Created August 3, 2018 09:15 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@Luzifer
Luzifer / share.ps1
Last active December 30, 2017 02:04
Using HTTP listening version of share utility from Windows Explorer
param (
[System.IO.FileInfo] $filename = $null,
[System.IO.FileInfo] $passwordFile = "C:\Users\Luzifer\Documents\share.pwd",
[string]$username = 'luzifer',
[string]$uri = "https://tools.hub.luzifer.io/share/post"
)
function Post-ShareFile {
param (
[System.IO.FileInfo] $filename = $null
@Luzifer
Luzifer / README.md
Last active November 29, 2017 19:47
Ark v273 Engram points to unlock every Engram until lvl 100

How to use

  1. Stop your server
  2. Open game.ini in Saved\Config\WindowsServer
  3. Ensure you have this as the first line in the file:
    [/script/shootergame.shootergamemode]
    
  4. Paste commands below into the file
  5. Save file and start game server
@Luzifer
Luzifer / README.md
Last active February 7, 2018 04:35
Script to fetch resource records from DNSimple and write corresponding Terraform configs for them

DNSimple to Terraform

When migrating from an existing infrastructure to an infrastructure managed by Terraform it's possible to import the present configuration. The only thing the importer does not do: It does not write the configuration for you.

This script is intended to access a DNSimple account through the APIv2 and fetch all resource records for all domains in that account. The records are written into a Terraform configuration file using one file per domain.

Usage

  1. Create an APIv2 token in the DNSimple web interface
  2. Get your account ID for the account you want to export
@Luzifer
Luzifer / .gitignore
Created September 4, 2017 00:18
Test of eawsy/aws-lambda-go-net serverless Go deployment
handler.so
handler.zip
deploy.out.yml
@Luzifer
Luzifer / README.md
Last active November 18, 2023 17:22
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@Luzifer
Luzifer / Dockerfile
Last active January 17, 2024 16:26
Ruby 1.8.7 Docker container based on Debian Jessie
FROM debian:jessie
ENV RUBY_VERSION 1.8.7-p374
ENV PATH /usr/local/rvm/gems/ruby-${RUBY_VERSION}/bin:/usr/local/rvm/gems/ruby-${RUBY_VERSION}@global/bin:/usr/local/rvm/rubies/ruby-${RUBY_VERSION}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin
RUN set -ex \
&& apt-get update && apt-get install -y curl \
&& gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
&& curl -sSL https://get.rvm.io | bash -s stable --ruby=${RUBY_VERSION}
@Luzifer
Luzifer / README.md
Last active September 16, 2016 09:21
"GobNuss" is a neologism form the german word "Kopfnuss" (clout) and the Go encoding method "gob". Send someone an encoded "GobNuss" instead giving them a Kopfnuss…

FAQ

Whats this?

This is just a joke from my team put into code. We were talking about go Go encoding/gob and someone brought up a "Kopfnuss" (clout). From that the word "GobNuss" derived and I said I will put this together. The result is below.

How to use?

Send a GobNuss: