Skip to content

Instantly share code, notes, and snippets.

View RonjaPonja's full-sized avatar
💭
🧠🔥

Ronja Meyer RonjaPonja

💭
🧠🔥
View GitHub Profile
@njoerd114
njoerd114 / README.MD
Last active April 26, 2025 08:07
Sankey Diagram with Google Spreadsheets

Sankey Diagrams within Google Spreadsheets

This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.

Installation

  • Open a spreadsheet
  • Click "Tools" -> "Scripts"
import get from 'lodash.get';
/**
* Subscribe partially to redux store changes
*
* @example
* subscribe(store, "backup.url", (state, prevState) => console.log("change!", state, prevState));
*
* @param {Redux.Store} store - Redux store
* @param {String} path - Path within the store object that should be watched for change. See https://lodash.com/docs/4.17.15#get
@yvesh
yvesh / proxmox-zfs-encryption.md
Last active February 27, 2025 13:09
Proxmox 6.1 ZFS native full disk (ZFS root) encryption.

Simple guide for fulldisk encryption with Proxmox and ZFS native encryption

Install normally using the installer, after the setup reboot into recovery mode (from the USB stick). Make sure to install in UEFI mode (you need systemd-boot).

If the USB stick is not working for you, because of the old Kernel version (2.6.x), you can also use an Ubuntu 19.10 / 20.04 boot stick. ZFS suport is enabled there out of the box.

Steps:

<plist version="1.0">
<dict>
<key>ConsentText</key>
<dict>
<key>default</key>
<string>Installs APN web.vodafone.de IPv4v6</string>
</dict>
<key>PayloadContent</key>
<array>
<dict>
@linuxsimba
linuxsimba / netbox-ansible.py
Created December 10, 2016 06:12
Ansible Netbox Integration Example
#!/usr/bin/python
""" Ansible Inventory Generated From Netbox
Author: Stanley Karunditu <stanley@linuxsimba.com>
License: MIT
Requirements:
* use netbox device roles that result in hyphenated role names. E.g
@dmitrykustov
dmitrykustov / upgrade-postgres-9.4-to-9.6.md
Last active August 8, 2022 17:52 — forked from dideler/upgrade-postgres-9.3-to-9.4.md
Upgrading PostgreSQL from 9.4 to 9.6 on Debian Jessie

To use the most modern version of Postgres software we need to add postgresql repository. Edit /etc/apt/sources.list or create /etc/apt/sources.list.d/pgdg.list and add there a line: deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main Then import the repository signing key, and update the package lists:

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

Install a new version of PostgreSQL server.

Once the Debian upgrade finished, I used dpkg-query -l postgresql* to check which versions of postgres I have installed.

@yrp604
yrp604 / xnu-syscall-life-amd64.md
Last active October 2, 2023 15:59
The life of an XNU unix syscall on amd64

XNU syscall path

Chart

             +------------------+
             |These push their  |                                  +-----------------------+
             |respective syscall|                                  |This overwrites the    |
             |dispatch functions|                                  |saved dispatch function|
             |onto the stack    |                                  |with hndl_alltraps     |
@plushvoxel
plushvoxel / spi_to_bin.py
Created February 12, 2016 21:35
write shit to binary
#!/usr/bin/env python2
import time
import serial
import struct
import binascii
mem_addr = 0x80000000
ser= serial.Serial('/dev/ttyUSB0', 115200, timeout=1)
#!/usr/bin/env python
# coding: utf-8
"""Automate managing an Archlinux repository of AUR-Only packages
Automatically checks the AUR for version changes, rebuilds packages and adds
them to a proper Archlinux repository so you can have your computers use the
latest version without the hassle of manually checking for updates, rebuilding,
package distribution etc pp
#!/usr/bin/bash
# Copyright (c) Joakim Reinert. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
API_URL='https://api.domrobot.com/xmlrpc/'
TMPDIR='/tmp/inwx-acme'