Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀

Jonas Friedmann frdmn

🦀
View GitHub Profile
@aeschright
aeschright / npm-strike.md
Last active Jul 27, 2019
A note about npm cli work status
View npm-strike.md

When will npm@6.9.1 be released (and other PRs merged?)

On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.

Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?

It's disappointing for all of us to find the work we were doing interrup

@hluaces
hluaces / queueCounter.sh
Last active Jun 21, 2019 — forked from agarzon/queueCounter.sh
Alert based in mail queue size for postfix and plesk forked from [agarzon's](https://gist.github.com/heartshare/7bdeebfab74ed436e72c163aadbb3004) and slightly tuned.
View queueCounter.sh
#!/bin/bash -e
# Binary locations
readonly MAIL_BIN=$(command -v mail)
readonly QUEUE_SIZE=$(/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}')
readonly QUEUE_SUMMARY=$(/usr/sbin/qshape -s deferred | head)
readonly CONTROL_FILE="/tmp/queueCounter"
# Comma-separated list of email addreses that should be notified when the
# queue grows above the defined threshold
@geekgonecrazy
geekgonecrazy / Import Emoji.md
Last active Sep 25, 2020
Import Emoji into Rocket.Chat
View Import Emoji.md

Usage

To use this drop these two files in beside a folder called emoji filled with the emoji you want to upload.

Run npm install to grab the needed dependencies.

Modify the host, user, and pass in the file.

Then run: node import-emoji.js

@reetp
reetp / Readme.md
Last active Jul 6, 2020
Debugging
View Readme.md
@PhilipSchmid
PhilipSchmid / ubuntu-1804-lacp-bonding.md
Last active Oct 21, 2020
Ubuntu 18.04 LACP Network Interface Bonding
View ubuntu-1804-lacp-bonding.md

Interface bonding

Configure a LACP active network interface bonding on Ubuntu 18.04 using netplan:

root@srv01:~# mv /etc/netplan/50-cloud-init.yaml /etc/netplan/01-netcfg.yaml
root@srv01:~# cat /etc/netplan/01-netcfg.yaml 
network:
    version: 2
    renderer: networkd
    ethernets:
@soundstorm
soundstorm / rocketupdate.py
Last active Jul 12, 2017
Rocket.Chat Autoupdater written in Python
View rocketupdate.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Make sure you have set retry=0 in ProxyPass when on apache
rootdir="/opt/"
#folder in rootdir where Rocket.Chat is installed in
rocketdir="Rocket.Chat"
#MongoDB backup, comment if you don't want to backup your db
mongobackup="mongodump --db rocketchat --archive=/backup/mongodb/Rocket.Chat.db.bak --gzip"
@ntopulos
ntopulos / Multiple PHP versions on Ubuntu 16.04.md
Created Jun 10, 2016
Steps to get multiple versions of PHP running alongside on separate Apache virtual hosts using phpfarm
View Multiple PHP versions on Ubuntu 16.04.md

Multiple PHP versions on Ubuntu 16.04

Steps to get multiple versions of PHP running alongside on separate Apache virtual hosts using phpfarm.
The guide uses the example of PHP v5.4.45 and v7.0.7, but installation of any version and any number of versions will be done this same way.

Prerequisites

Update the machine:

@hugochinchilla
hugochinchilla / slack_munin.sh
Last active Mar 28, 2019 — forked from anarchivist/slack_munin.sh
Slack notification script for Munin
View slack_munin.sh
#!/bin/bash
# Slack notification script for Munin
# Mark Matienzo (@anarchivist)
#
# To use:
# 1) Create a new incoming webhook for Slack
# 2) Edit the configuration variables that start with "SLACK_" below
# 3) Add the following to your munin configuration:
#
@suenkler
suenkler / process_postfix_queue.py
Last active Jun 14, 2019
This Python script checks Postfix's mail queue for messages that were deferred for a defined reason, deletes these mails and notifies the sender.
View process_postfix_queue.py
# -*- 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>
View 00_OSX_Docker_Machine_Setup.md

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

You can’t perform that action at this time.