Skip to content

Instantly share code, notes, and snippets.

View frdmn's full-sized avatar
🦀

Jonas Friedmann frdmn

🦀
View GitHub Profile
@suenkler
suenkler / process_postfix_queue.py
Last active June 13, 2023 19:17
This Python script checks Postfix's mail queue for messages that were deferred for a defined reason, deletes these mails and notifies the sender.
# -*- coding: utf-8 -*-
"""
This Python script checks Postfix's mail queue for messages that
were deferred for a defined reason, deletes these mails and
notifies the sender.
This script uses Python 3 and is tested on Ubuntu 14.04.
Copyright (C) 2016 Hendrik Sünkler <mailbox@suenkler.info>
@bitjockey42
bitjockey42 / 00_OSX_Docker_Machine_Setup.md
Last active November 9, 2020 13:49 — forked from andystanton/Start up local Docker Machine on OSX automatically.md
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.

Requirements

@derhuerst
derhuerst / shout.md
Last active October 31, 2015 12:26
An Awesome Realtime Notifications Service™
@malt3
malt3 / edu.md
Last active December 13, 2023 19:57
Edu Vorteile RUB

Studentenvorteile (Vor allem für Informatikstudenten)

Software Pakete

@ekilah
ekilah / .gitconfig
Created August 27, 2015 23:09
Git alias to push current branch to upstream branch of the same name
[alias]
pushup = "!gitbranchname() { git symbolic-ref --short HEAD; }; gitpushupstream() { git push --set-upstream origin `gitbranchname`; }; gitpushupstream"
@dwilkie
dwilkie / ubuntu_unattended_upgrades_gmail.markdown
Created July 2, 2015 10:28
Setup unattended upgrades on Ubuntu with Gmail

Install the unattended-upgrades package

$ sudo apt-get install unattended-upgrades 

Edit the periodic configuration

$ sudo nano /etc/apt/apt.conf.d/10periodic
@hbakhtiyor
hbakhtiyor / openssl_hack.sh
Last active May 9, 2019 18:53
Send secure email messages/files using SSL public certificate without PGP keys
# https://www.madboa.com/geek/openssl - Some usefull openssl cooks.
# If you couldn't find somebody's PGP key, you can still send secure
# email using their SSL public certificate
# Fetching public certificate from example.com server and grabing the key from stream.
openssl s_client -connect example.com:443 | sed -ne \
'/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > publickey.pem
# Encrypting a file/message using retrieved public certificate.
# You can choose another encryption algorithms, rather than `des3`.
# If a file is a binary file, you must put `-binary` option.
@thatfool
thatfool / NoPillars.cs
Last active August 29, 2015 14:17
NoPillars mod for Cities:Skylines
using ICities;
using UnityEngine;
using ColossalFramework.UI;
using ColossalFramework.Plugins;
using System.Collections;
using System.Reflection;
using System;
namespace NoPillars {
public class NoPillarsMod : IUserMod {
#!/bin/sh
### BEGIN INIT INFO
# Provides: dockercompose
# Required-Start: $docker
# Required-Stop: $docker
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Docker Services
### END INIT INFO
@viegelinsch
viegelinsch / fix_munin_dynazoom.md
Last active February 18, 2024 09:34
fix no graphic in munin dynazoom

You have something like "[WARNING] Could not draw graph "/var/lib/munin/cgi-tmp/munin-cgi-graph/" in your /var/log/munin/munin-cgi-graph.log ???

Check the directory permissions!

ls -l /var/lib/munin/cgi-tmp/

shows something like

drwxr-xr-x 3 munin www-data 4,0K Mär 29  2013 munin-cgi-graph/