Skip to content

Instantly share code, notes, and snippets.

@psct
psct / wgstrap.sh
Last active May 27, 2022 06:17
WireGuard-Server per Skript einrichten
#!/bin/bash
# Wireguard auf Debian/Raspbian einrichten,
# nach c't 15/2019, S. 166
# * läuft auf Raspbian oder Debian Netinst (Buster)
# * bitte nur auf frischen Installationen verwenden
# * Skript überschreibt Netzwerkkonfiguration
# * als pi (Raspbian) oder als root/passwortloses sudo (Debian) ausführen
# * schreibt Protokoll nach /var/log/wgstrap.log
# * zweistufiger Prozess, der einen Reboot erfordert
@henhell
henhell / gist:2eb6fee1b2ba71fb18dd8e977d07cb59
Created August 27, 2018 08:35
Update bios from Linux on HP Elitebook 840 G3
!!! WARNING Selecting wrong /dev/sdX might wipe your main harddrive !!!
!!! These are only notes, not a step by step !!!
Download BIOS from HP's page, find your correct bios files via serialnumber
# sudo dmidecode |grep -A 4 "HP EliteBook"
Download the service pack spXXXXX.exe
# apt-get install wine-stable
# wine spXXXXX.exe
@hostz-frank
hostz-frank / functions.php
Created February 18, 2018 11:19
Copy to sender via Divi's contact form
<?php
/**
* Copy lines below into functions.php of your Divi child theme.
*/
add_filter( 'et_contact_page_headers', 'mycopytosender', 10, 4 );
function mycopytosender( $headers, $contact_name, $contact_email ) {
$headers[] = "Cc: \"{$contact_name}\" <{$contact_email}>";
return $headers;
}
anonymous
anonymous / O2minipop.ino
Created March 17, 2016 21:24
// O2 Minipops rhythm box (c) DSP Synthesizers 2016
// Free for non commercial use
// http://janostman.wordpress.com
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>