Skip to content

Instantly share code, notes, and snippets.

View tryone144's full-sized avatar
🙃

Bernd Busse tryone144

🙃
  • Germany
View GitHub Profile
@tryone144
tryone144 / sample-shader_color-key.frag
Created November 29, 2020 02:16
Fragment Shader to test color-keyed transparency in picom
#version 330
uniform float opacity;
uniform float dim;
uniform bool invert_color;
in vec2 texcoord;
uniform sampler2D tex;
uniform sampler2D brightness;
uniform float max_brightness;
float get_color_distance(vec3 a, vec3 b) {
@tryone144
tryone144 / transcript.txt
Created March 15, 2019 01:45
Transcript of 077 065 083 084 069 082 032 066 079 079 084 032 082 069 067 079 082 068 / https://youtu.be/_KMia5xpCMo
# Frame 01
077 084 085 117 078 106 103 117 077 084 103 048 076 106 089
050 067 106 077 052 076 106 069 120 076 106 069 049 078 105
052 121 078 068 069 075 077 084 107 052 076 106 081 049 076
106 085 048 076 106 069 053 078 065 111 121 078 105 052 121
077 122 081 117 079 068 073 117 077 084 107 120 067 106 069
122 077 067 052 120 077 068 065 117 077 106 077 052 076 106
073 049 067 106 081 119 076 106 069 052 077 083 052 052 078
067 052 121 077 106 107 075 077 084 081 121 076 106 069 049
076 106 073 122 077 105 052 120 077 122 085 075 077 106 081
@tryone144
tryone144 / bl_render.sh
Last active August 24, 2019 21:32
Launch multiple blender instances to speed up vse video encoding.
#!/bin/bash
#
# run as: ./render_final.sh BLENDFILE
#
# (c) 2019 Bernd Busse
#
BUILDROOT="$HOME/blender"
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
@tryone144
tryone144 / actionMapPreset8.xml
Created May 6, 2018 13:23
Logitech G29 Input Map for Race Driver: Grid
<ActionMap deviceType="Logitech G29 Driving Force Racing Wheel USB" schemeType="Logitech G29 Driving Force Racing Wheel USB" priority="0" >
<!-- In Game Actions -->
<Action actionName = "Accelerate" >
<Axis axisName = "win_con_di_axisY" deviceName = "Logitech G29 Driving Force Racing Wheel USB" baseCalibration = "uniDirectionalNegative" deadZone = "0.0" saturation = "1.0"/>
</Action>
<Action actionName = "Brake" >
<Axis axisName = "win_con_di_axisRz" deviceName = "Logitech G29 Driving Force Racing Wheel USB" baseCalibration = "uniDirectionalNegative" deadZone = "0.0" saturation = "1.0"/>
</Action>
<Action actionName = "Hand Brake" >
@tryone144
tryone144 / vlcrc
Created April 7, 2018 12:28
VLC config for fullscreen video on second monitor on windows
###
### vlc 2.2.6
###
###
### lines beginning with a '#' character are comments
###
[visual] # Visualizer filter
@tryone144
tryone144 / PKGBUILD
Created April 4, 2018 10:38
Archlinux package of compton with dual_kawase blur patch
# Maintainer: tryone144 <bernd AT busse-apps DOT de>
# Contributor: WorMzy Tykashi <[email protected]>
# Contributor: OK100 <ok100 at lavabit dot com>
# Contributor: Valère Monseur <valere dot monseur at ymail dot com>
pkgname=compton-dual_kawase-git
_gitname=compton
pkgver=0.1_beta2.95.g241bbc5
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) with dual_kawase blur patch (git version)"
@tryone144
tryone144 / enct2.py
Created January 29, 2018 20:40
Implementation of the AES protocol as used by https://encipher.it
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# implementation of the AES protocol as used by https://encipher.it
#
# (c) 2018 Bernd Busse
from cryptography.hazmat.primitives.ciphers import Cipher
from cryptography.hazmat.primitives.ciphers.algorithms import AES
from cryptography.hazmat.primitives.ciphers.modes import ECB, CTR
@tryone144
tryone144 / morse.py
Created January 29, 2018 20:38
Simple morse-code implementation for strings usings '.' and '-' symbols
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# simple morse-code implementation for strings usings '.' and '-' symbols
#
# (c) 2018 Bernd Busse
import sys
@tryone144
tryone144 / aes.py
Last active January 6, 2024 14:01
Implementation of AES as used by https://aesencryption.net
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# (c) 2020 Bernd Busse
#
"""Implementation of AES as used by https://aesencryption.net."""
import base64
import sys
@tryone144
tryone144 / arachni-web.service
Created July 31, 2017 14:31
Arachni Scanner WebUI systemd unit file
[Unit]
Description=Arachni Web Application Scanner – WebUI
Requires=postgresql.service
After=postgresql.service
[Service]
Type=forking
PIDFile=/var/run/arachni_web.pid
ExecStart=/usr/local/bin/arachni_web -D -P /var/run/arachni_web.pid