Skip to content

Instantly share code, notes, and snippets.

View fritschy's full-sized avatar

Marcus Borkenhagen fritschy

  • Black Forest, Germany
View GitHub Profile
@rena2019
rena2019 / es_war_einmal.bat
Last active March 25, 2024 17:05
Downloadskript für die ersten 3 Staffeln "Es war einmal der Mensch"
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0635_sendung_esw/4/231202_0635_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E01_Eine_neue_Welt_entsteht.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0700_sendung_esw/1/231202_0700_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E02_Die_Neandertaler.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0725_sendung_esw/1/231202_0725_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E03_Ein_Mensch_aus_Cro-Magnon.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0750_sendung_esw/1/231202_0750_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E04_Macht_euch_die_Erde_untertan.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0815_sendung_esw/1/231202_0815_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E05_Die_ersten_Weltreiche.mp4
curl https://nrodlzdf-a.akamaihd.net/de/zdf/23/12/231202_0840_sendung_esw/1/231202_0840_sendung_esw_a1a2_6660k_p37v17.mp4 --output S01_E06_Die_Zeit_des_Perikles.mp4
curl https://nrodlzdf-a.ak
@radiantly
radiantly / noMangleGoogle.user.js
Last active December 28, 2023 04:31
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@nadavrot
nadavrot / Matrix.md
Last active May 22, 2024 13:38
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@MawKKe
MawKKe / cryptsetup-with-luks2-and-integrity-demo.sh
Last active April 29, 2024 21:19
dm-crypt + dm-integrity + dm-raid = awesome!
#!/usr/bin/env bash
#
# Author: Markus (MawKKe) ekkwam@gmail.com
# Date: 2018-03-19
#
#
# What?
#
# Linux dm-crypt + dm-integrity + dm-raid (RAID1)
#
@jessfraz
jessfraz / boxstarter.ps1
Last active April 11, 2024 16:02
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@kevin39
kevin39 / nfsd-on-lxc
Created March 2, 2017 10:05
NFSD on LXC
Create a new file "/etc/apparmor.d/lxc/lxc-default-with-nfsd" and paste in the following;
Code:
# Do not load this file. Rather, load /etc/apparmor.d/lxc-containers, which
# will source all profiles under /etc/apparmor.d/lxc
profile lxc-container-default-with-nfsd flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/lxc/container-base>
# the container may never be allowed to mount devpts. If it does, it
@amtal
amtal / Hybrids.md
Created January 17, 2017 08:28
Walkthrough of two dupes and an item corruption exploit for Diablo 2 in layman's terms

This is a common-jargon walkthrough of an interesting Diablo 2 exploit. It provides the necessary background information (network protocol and game mechanics) to gain some understanding of the primitives from which it's constructed. Since the exploit is against a black-box network service with no available code, exact details and subtleties remain a mystery. :)

Exploit effects

Diablo 2 items can have a list of properties with various effects. The most common items (normal or "white" ones) have very few possible effects; however, all items can have sockets. Rune and gem-type items can be inserted into sockets. Some sequences of runes are special - inserting them into a white item makes a runeword item with predictable special properties.

Here's an example runeword "Peace" created by inserting Shael, Thul, and Amn runes into a 3-socket Light Plate:

Peace + Enigma hybrid

@holubv
holubv / fxlib.h
Created September 21, 2016 16:21
CASIO fx-9860G SDK Library (with documentation) https://edu.casio.com/
/*****************************************************************/
/* */
/* CASIO fx-9860G SDK Library */
/* */
/* File name : fxlib.h */
/* */
/* Copyright (c) 2006 CASIO COMPUTER CO., LTD. */
/* */
/*****************************************************************/
#ifndef __FXLIB_H__
@vurtun
vurtun / Library writing.txt
Created September 12, 2016 11:20
Library writing
LIBRARY WRITING REFERENCE LIST
===============================
1.) Designing and Evaluating Reusable Components (Casey Muratori: http://mollyrocket.com/casey/stream_0028.html)
----------------------------------------------------------------------------------------------------------------
_THE_ reference on API design up to this day on the internet. Nobody should write a library without having seen this.
I come back to this talk every N number of weeks it is that good.
2.) stb_howto (Sean Barrett: https://github.com/nothings/stb/blob/master/docs/stb_howto.txt)
--------------------------------------------------------------------------------------------
Sean Barretts single header libraries (https://github.com/nothings/stb) was the first time for me that I came across