Skip to content

Instantly share code, notes, and snippets.

Knut Ahlers Luzifer

Block or report user

Report or block Luzifer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Luzifer
Luzifer / PKGBUILD
Last active Dec 14, 2018
Binary package as alternative to deprecated community/consul - https://www.archlinux.org/packages/community/x86_64/consul/
View PKGBUILD
pkgname=consul-bin
pkgver=1.4.0
pkgrel=1
pkgdesc="A tool for service discovery, monitoring and configuration."
arch=('x86_64')
url="https://www.consul.io"
license=('MPL2')
depends=('glibc')
conflicts=('consul')
source=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/consul/${pkgver}/consul_${pkgver}_linux_amd64.zip"
View .SRCINFO
pkgbase = getxkblayout
pkgdesc = Simple CLI command to read current active KB map from X server
pkgver = 0.0.1
pkgrel = 1
url = https://gist.github.com/Luzifer/dccae45747a1dad41f011a01c75296a3
arch = x86_64
license = Apache
makedepends = gcc
makedepends = libx11
makedepends = libxkbfile
@Luzifer
Luzifer / google-chrome-ver.py
Created Nov 25, 2018
GCP Cloud-Function (PY3.7) to retrieve current Google Chrome version from official repo data
View google-chrome-ver.py
import flask
import gzip
import json
import requests
import sys
import xml.etree.ElementTree as ET
REPO_URL = "https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz"
@Luzifer
Luzifer / 00-touchpad.conf
Last active Nov 22, 2018
MacBook xorg Config
View 00-touchpad.conf
Section "InputClass"
Identifier "Touchpads"
Driver "mtrack"
MatchIsTouchpad "on"
Option "TrackpadDisable" "0" # Disables trackpad touch input. A value of 1 will enable the trackpad.
# A value of 1 will disable tapping and gestures but not movement. A value
# of 2 will disable all input. A value of 3 will also disable physical
# buttons. Integer. Default is 0.
@Luzifer
Luzifer / go-licenses.sh
Last active Aug 6, 2018
Shell script to list licenses of Go dependencies through the Github license API
View go-licenses.sh
#!/bin/bash
set -euo pipefail
# Export GITHUB_TOKEN shell variable with a Github token with no special
# permissions assigned. Afterwards start the script with a import path
# prefix as first argument:
#
# go-licenses.sh github.com/Luzifer
replaces=(
@Luzifer
Luzifer / check_mail_v7.py
Last active Jan 27, 2019
Uberspace .qmail filter script (for Uberspace-v7 accounts)
View check_mail_v7.py
#!/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 Aug 27, 2018
Uberspace .qmail filter script (for Uberspace-v6 accounts)
View check_mail_v6.py
#!/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 Aug 3, 2018 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491
View postmortem.md

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@Luzifer
Luzifer / share.ps1
Last active Dec 30, 2017
Using HTTP listening version of share utility from Windows Explorer
View share.ps1
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 Nov 29, 2017
Ark v273 Engram points to unlock every Engram until lvl 100
View README.md

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
You can’t perform that action at this time.