Skip to content

Instantly share code, notes, and snippets.

View frdmn's full-sized avatar
🦀

Jonas Friedmann frdmn

🦀
View GitHub Profile
@mietzen
mietzen / macos-bitwarden-cli-ssh.md
Last active November 7, 2024 12:13
How to use use Bitwarden CLI for SSH-Keys in macOS

How to use use Bitwarden CLI for SSH-Keys in macOS

If you want to use Touch ID have a look at: How to use use Bitwarden CLI with macOS Touch ID

Wirtten and tested on macOS Ventura

Add SSH-Keys to Bitwarden

Before you can use Bitwarden CLI for your SSH private keys you have to add them to your Bitwarden account. Just create a normal login. The name, username and URI fields doesn't matter for my functions.

@comp500
comp500 / fabricserversidemods.md
Last active September 3, 2024 03:23
Useful Fabric server side mods
@aeschright
aeschright / npm-strike.md
Last active September 8, 2021 16:32
A note about npm cli work status

When will [email protected] 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 June 21, 2019 11:18 — 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.
#!/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 April 14, 2021 21:25
Import Emoji into Rocket.Chat

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 November 14, 2024 16:02
Debugging
@PhilipSchmid
PhilipSchmid / ubuntu-1804-lacp-bonding.md
Last active January 31, 2023 20:48
Ubuntu 18.04 LACP Network Interface Bonding

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 July 12, 2017 10:35
Rocket.Chat Autoupdater written in Python
#!/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 June 10, 2016 15:00
Steps to get multiple versions of PHP running alongside on separate Apache virtual hosts using phpfarm

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 July 7, 2023 14:53 — forked from anarchivist/slack_munin.sh
Slack notification script for Munin
#!/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:
#