Skip to content

Instantly share code, notes, and snippets.

@kconner
kconner / macOS Internals.md
Last active July 7, 2024 19:42
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@NileshGule
NileshGule / edit-metrics-server-deployment.md
Last active June 21, 2024 16:37
gist to update kuberentes metrics server deployment

deploy metrics server


kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

edit metrics server deployment by adding command

version: "3"
services:
sftpgo:
image: "drakkan/sftpgo:v2-alpine"
# default user id
user: 1026
restart: always
expose:
# HTTP
- "8080"
@matthinc
matthinc / borg.sh
Last active April 4, 2023 14:06
Script for using borg-backup with Hetzner storagebox
#!/usr/bin/env bash
########## Configuration ##########
SSH_PASSWD="" # SSH password of the storagebox
BORG_USER="" # Storagebox user
BORG_SERVER="xxx.your-storagebox.de" # Storagebox
BORG_REPO="~/borg" # Borg repository on the storagebox
FILES="/home /opt" # Files to backup (space separated)
###################################
@mjf
mjf / Postgres.md
Last active July 17, 2024 06:40
Postgres

⚠️ WARNING
The ordering of listed projects or documents is random and has no connection to relevance or maturity levels!

Postgres

Extensions

Extension Description
pgaudit Postgres auditing extension
pg_auto_failover Postgres extension for failover without distributed consensus (by Citus Data)
@hellresistor
hellresistor / SSHEnforcer.sh
Last active July 12, 2023 07:46
SSH Initialization Script to run on first Installation on a VPS
#!/bin/bash
## By: hellresistor 2k9-2k20
## V20.12.20
## This Script Execute it on first Booting (VPS installing) for Ubuntu 18 20 & Debian 9 10
## NEW: Prepare your Kali 2020.4 (run as ROOT ...)
## Support with:
## Bitcoin: 13Gr4JiWQBnhCs6AdUNapdfHVu3tG9G6zL
## Bitcanna - B73RRFVtndfPRNSgSQg34yqz4e9eWyKRSv
#################################################################################################################
UsrAdm="ADMINUSER" ## A Admin User
@souhaiebtar
souhaiebtar / dbeaver.ini
Last active June 23, 2024 12:28
[dbeaver config file] .ini file for dbeaver #dbeaver #linux
# path on linux /usr/share/dbeaver/dbeaver.ini
# path on macos /Applications/DBeaverEE.app/Contents/Eclipse/dbeaver.ini
-vm
/usr/bin/java
-startup
plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.1100.v20190907-0426
-vmargs
-XX:+IgnoreUnrecognizedVMOptions
@unixweb
unixweb / anruf.json
Last active July 25, 2023 07:02
Anrufweiterleitung mit Fritzbox und Node-Red
[{"id":"203a9aad.9e133e","type":"tab","label":"Fritzbox","disabled":false,"info":""},{"id":"ecf93999.3965c8","type":"inject","z":"203a9aad.9e133e","name":"Anrufweiterleitung einschalten","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":269,"y":173,"wires":[["a34a96a0.4e7208"]]},{"id":"2eef830c.6f84f4","type":"fritzbox-in","z":"203a9aad.9e133e","device":"4a125cf6.71cc64","name":"Fritz","service":"urn:dslforum-org:service:X_AVM-DE_OnTel:1","action":"SetDeflectionEnable","arguments":"{\"NewDeflectionId\":\"value\",\"NewEnable\":\"value\"}","x":813,"y":258,"wires":[[]]},{"id":"a34a96a0.4e7208","type":"function","z":"203a9aad.9e133e","name":"Anrufweiterleitung Ein","func":"var string = {\"NewDeflectionId\":\"0\",\"NewEnable\":\"1\"};\nmsg.payload = string;\nreturn msg;\n","outputs":1,"noerr":0,"x":560,"y":172,"wires":[["2eef830c.6f84f4"]]},{"id":"d107d06b.f56f68","type":"function","z":"203a9aad.9e133e","name":"Anrufweiterleitung Aus","func":"var string = {\"New
@jackblk
jackblk / squid_proxy_tutorial.md
Last active July 26, 2024 01:16
Tutorial on how to setup a squid proxy with authentication.

Note

This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.

Install squid & update

sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
@unixweb
unixweb / benzinpreis-info.json
Created September 3, 2018 14:48
Benzinpreis Info mit clever-tanken.de
[{"id":"de7f592f.426b4","type":"tab","label":"benzinpreise","disabled":false,"info":""},{"id":"17602fbb.76d9e","type":"html","z":"de7f592f.426b4","name":"","property":"payload","tag":"span","ret":"text","as":"single","x":610,"y":220,"wires":[["d073b7f3.18f4e","60def84f.1b22d"]]},{"id":"90a570f5.03e88","type":"inject","z":"de7f592f.426b4","name":"","topic":"tank1","payload":"","payloadType":"date","repeat":"","crontab":"00 12 * * *","once":false,"onceDelay":0.1,"x":150,"y":220,"wires":[["b2894f43.dcb4e8"]]},{"id":"b2894f43.dcb4e8","type":"http request","z":"de7f592f.426b4","name":"Bavaria Petrol - Munich","method":"GET","ret":"txt","url":"https://www.clever-tanken.de/tankstelle_details/33072","tls":"","x":390,"y":220,"wires":[["17602fbb.76d9e"]]},{"id":"d073b7f3.18f4e","type":"function","z":"de7f592f.426b4","name":"Parse Value","func":"msg.payload = msg.payload[38];\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":220,"wires":[["9c0741c7.a33d58","8874821d.3c10b8"]]},{"id":"c1b8c77f.44295","type":"googlehome-no