Skip to content

Instantly share code, notes, and snippets.

View rijnhard's full-sized avatar

Rijnhard Hessel rijnhard

View GitHub Profile
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active July 22, 2025 10:51
Byte formatting for Google Sheets
@acolyer
acolyer / jessfraz.md
Created November 19, 2017 13:39
Containers, operating systems and other fun things from The Morning Paper
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active May 30, 2025 09:01
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@aikar
aikar / jbtb-open.sh
Last active September 10, 2019 08:47
#!/bin/bash
if [ $# -lt 3 ]; then
echo "$0 <app> <channel> <binpath> [*args]"
exit 1
fi
app=$1
channel=$2
binpath=$3
shift
shift
@devisnotnull
devisnotnull / installing_kubernetes_on_proxox.md
Last active October 30, 2024 20:25
Installing Kubernetes on Proxox, Herzner

Installing Kubernetes on Proxox

For this example i shall be using a dedicated server from Hertzner.https://www.hetzner.de/en/. A shout out to hetzner if your looking for cheap and beefy dedicated hosting then these guys are your best bet.

Setting up the Hertzer server

This guide assumes your server has Debian 8 (Jessie installed)

Config when tested

@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@markandrus
markandrus / server.js
Created July 9, 2014 01:01
WebRTC Test Client
// This is the signaling server for relaying messages between Node.js and
// Chrome. Run it with
//
// $ node server.js
//
function SignalingServer() {
var clients = {};
var WebSocketServer = require('ws').Server;
var wss = new WebSocketServer({
@keisans
keisans / bitwiseFlags.js
Last active September 11, 2023 12:41
A javascript flags system based on bitwise function. This function allows for the representation of a flag state in a single base 10 number. This library also includes the ability to parse information about the flags, with functions to check if any (`hasAny`) or all (`hasAllOf`), of a group have been set, as well as their inverses (`notAny` and …
/**
* @class Flags
* @constructor
* @param {Array} newFlags Optional array of flag keys to define when the flags module is instantiated
*/
Flags = function( newFlags ){
this.flags = 0;
this.flagHash = {};
this.keys = 0;
if(newFlags){
@cecilemuller
cecilemuller / get_combinations.php
Created February 1, 2013 03:13
PHP: Get all combinations of multiple arrays (preserves keys)
<?php
function get_combinations($arrays) {
$result = array(array());
foreach ($arrays as $property => $property_values) {
$tmp = array();
foreach ($result as $result_item) {
foreach ($property_values as $property_value) {
$tmp[] = array_merge($result_item, array($property => $property_value));
}
@rynop
rynop / new_ca.sh
Created November 26, 2012 15:03
Script to create new Cert Authority
#!/bin/bash
function usage () {
echo "$0 [CA section name]"
exit 1
}
if [ $# -ne 1 ]
then
usage