Skip to content

Instantly share code, notes, and snippets.

View franzflasch's full-sized avatar

franzflasch

View GitHub Profile
@skeeto
skeeto / avalanche.c
Last active April 21, 2023 23:28
Avalanche matrix graphs for various hash functions
/* Avalanche matrix visualizer
* $ cc -Ofast -fopenmp -Wall -Wextra avalanche.c
* This is free and unencumbered software released into the public domain.
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define NSAMPLES (1L << 24)
#define SCALE 24
@fberndl
fberndl / latancy-clock.sh
Last active March 6, 2020 13:13
gst latency-clock ( Gstreamer Latency Measurement)
# install and build
sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-0 libgstreamer1.0-dev libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio -y
https://github.com/stb-tester/latency-clock.git
cd latency-clock
make all
export GST_PLUGIN_PATH=/usr/local/lib/
# shit
sudo mv libgsttimeoverlayparse.so /usr/local/lib/
@travelhawk
travelhawk / ffmpeg_commands.md
Last active April 2, 2024 16:23
Collection of ffmpeg commands (basic usage, streaming, advanced usage)

ffmpeg

ffmpeg is a fast video and audio converter that can also grab from a live audio/video source.

Standard usage

Getting help and information

  • -h show all options
  • -h(elp) topic show help
  • -version show version
  • -formats show available formats
@38
38 / Makefile
Last active February 19, 2024 02:12
A Minimal LLVM JIT example for LLVM-5
jit-toy: jit-toy.cpp
clang++ -g -o $@ $^ $(shell /usr/lib/llvm-5.0/bin/llvm-config --cxxflags --ldflags --system-libs --libs core)
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active July 1, 2024 21:55
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel

@dgrubb
dgrubb / HiFive1-Timer-interrupt.c
Created October 17, 2017 15:03
HiFive1 Timer interrupt sample
/* Standard includes */
#include <stdio.h>
/* HiFive1/FE310 includes */
#include "sifive/devices/spi.h"
#include "platform.h"
#include "encoding.h"
#include "plic/plic_driver.h"
volatile int invert_LEDs = 0;
#!/bin/bash
# THIS GIST IS NO LONGER MAINTAINED!
# GO HERE FOR THE NEW REPO - https://github.com/ZakKemble/avr-gcc-build
# http://www.nongnu.org/avr-libc/user-manual/install_tools.html
# For optimum compile time this should generally be set to the number of CPU cores your machine has
@pylover
pylover / a2dp.py
Last active May 27, 2024 21:51
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware
@leomos
leomos / connect-to-fortigate.sh
Created May 10, 2016 18:43
Fortigate firewall connection
#!/bin/bash
USER="user"
PASSWORD="password"
SEP="+++++"
TMP=`curl -s -D - www.google.it | grep Location`
echo "Header with magic: "$TMP
MAGIC=`echo $TMP | grep -o '[[:alnum:]]\{16\}' | tr -d '\r\n'`
echo "Magic extracted from header: "$MAGIC
@angrycoffeemonster
angrycoffeemonster / Sublime Text 3 Build 3103 License Key - CRACK
Created April 18, 2016 02:13
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04