Skip to content

Instantly share code, notes, and snippets.

View emansom's full-sized avatar

Ewout van Mansom emansom

  • Groningen, The Netherlands
  • 22:18 (UTC +02:00)
  • LinkedIn in/emansom
View GitHub Profile
@kimsible
kimsible / README.md
Last active August 24, 2022 21:01
PeerTube admin tools for docker

Prerequisites

  • Domain Name
  • Main Dedicated Server
  • Private FTP Backups Server

General budget: from ~17€ to ~100€ per month

Domain Name

@ansemjo
ansemjo / aur-package-hooks.md
Last active May 11, 2022 19:44
Git hooks for AUR package repositories to test your PKGBUILD before pushing.

AUR package hooks

These hooks are meant to be used in Git repositories that track PKGBUILD files for the Arch User Repository. Place them in .git/hooks/pre-{commit|push} and make sure they're executable.

pre-commit

This hook simply updates the .SRCINFO before every commit by running:

vcl 4.0;
import directors;
import std;
# Assumed 'wordpress' host, this can be docker servicename
backend default {
.host = "wordpress-site";
.port = "80";
}
anonymous
anonymous / PKGBUILD
Created April 28, 2017 07:26
# vim: ts=2 sts=2 sw=2 et ft=sh
# Maintainer: Andreas Gerlach <andigerlach76@gmail.com>
# Updated by: Brad Erhart <brae.04+aur@gmail.com>
pkgname=docker-machine-kvm
pkgver=0.10.0
pkgrel=1
pkgdesc="KVM driver for docker-machine"
url="https://github.com/dhiltgen/docker-machine-kvm"
license=('Apache')

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@najamelan
najamelan / gnome-session-documentation.md
Last active January 22, 2024 20:53
Gnome Desktop Entry Format extensions - bootlegged documentation

Gnome Desktop Entry Format extensions - bootlegged documentation

Note: if you work on desktop entry files, you should refresh them to see the results: Alt-F2 and run 'r' or 'restart' to restart gnome-shell. Otherwise changes might only work after you log out.

The desktop entry specification creates a standard for application launchers. Gnome adds several extensions to the format which are widely in use, but as far as I can tell undocumented. This is an attempt to document them so I can write my own autostart launchers for gnome. Pull requests are highly welcome.

There is a guide on gnome developer that explains basics about how to integrate an application with the desktop.

Autostart applications run when the user logs into the graphical desktop environment. All desktop managers make custom extensions to the format. This attempts just to cover the Gnome extensions, and won'

#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@hoffmannkrzysztof
hoffmannkrzysztof / Varnish config for django
Last active May 20, 2019 18:16
Varnish config for django
# Default backend definition. Set this to point to your content
# server.
#
backend web {
.host = "127.0.0.1";
.port = "8080";
}
sub vcl_recv {
@juanje
juanje / Description.md
Last active November 30, 2023 19:29
Limit Chrome from eating all the memory and CPU

I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.

As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:

group browsers {
    cpu {
#       Set the relative share of CPU resources equal to 25%
        cpu.shares = "256";
 }
@zenorocha
zenorocha / .hyper.js
Last active November 12, 2023 15:13 — forked from millermedeiros/osx_setup.md
Setup macOS Sierra (10.12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks