Skip to content

Instantly share code, notes, and snippets.

View ylmrx's full-sized avatar
👾

ylmrx ylmrx

👾
  • @vente-privee
  • Paris
View GitHub Profile
// https://www.shadertoy.com/view/XlBcRV
//RWTexture2D<float4> outputTexture : register(u0);
Texture2D<float4> inputTexture : register(t0);
sampler texSampler : register(s0);
cbuffer ParamConstants : register(b0)
{
float4 Fill;
float4 Background;
<?xml version='1.0' encoding='UTF-8'?>
<lexml version='3'>
<node ID='0e19ffe6-c09d-11ec-8b4f-3c7c3fd88cf0' type='GROUP'>
<properties>
<property type='b'>
<key><![CDATA[background]]></key>
<value>1</value>
</property>
<property type='c'>
<key><![CDATA[color]]></key>
@ylmrx
ylmrx / jzq.bash
Created May 31, 2022 17:57
color jq request builder
jzq() {
local in
temp=`mktemp`
while read in; do
echo "$in" >> $temp
done
fzf --print-query --preview \
"cat $temp | jq {q} | bat -l json --color always -n -p" \
--preview-window 'top,99%' --reverse --no-info <<< ''
rm $temp
@ylmrx
ylmrx / Configurations___MF_Twister_MIX.lua
Created January 14, 2022 00:23
MF Twister Patterns Mix FX
--[[----------------------------------------------------------------------------
-- Duplex.MIDI-Fighter-Twister
----------------------------------------------------------------------------]]--
duplex_configurations:insert {
-- configuration properties
name = "Mix",
pinned = true,
@ylmrx
ylmrx / Configurations___MF_Twister_MIX.lua
Last active January 13, 2022 22:57
MIDI-Fighter Twister Script
--[[----------------------------------------------------------------------------
-- Duplex.MIDI-Fighter-Twister
----------------------------------------------------------------------------]]--
duplex_configurations:insert {
-- configuration properties
name = "Mix",
pinned = true,
-- device properties
@ylmrx
ylmrx / class_midi.lua
Created January 12, 2022 17:30
adding prog_changes
--====================================================--
-- Class: Midi
--====================================================--
--Todo: midi in
class 'Midi'
function Midi:__init(midi_in_device_name,midi_out_device_name,omit_nrpn_lsb)
self.midi_channel = 1
@ylmrx
ylmrx / jomox.lua
Last active January 12, 2022 16:40
jomox.lua
-- random notes ranges are set according to my tastes, sorry about it.
local group_kick = Group {
name = "Kick",
Parameter {
-- not a tune per-se, it's the pitch envelope intensity.
-- we like the 909 here:
randomize_min = 70,
randomize_max = 110,
id = "ktune", name = "Tune", number = 100, type = "cc", default_value = 90 },
Parameter {
@ylmrx
ylmrx / .pandoc.bashrc.bash
Created November 20, 2019 18:45
Monitor .md, update .pdf
function pandonitor {
if [[ -f $1 ]]; then
while true; do
inotifywait -qq -e modify $1
if [[ $2 == 'slides_owl' ]]; then
pandoc ${@:3} -t beamer -V theme:owl -o /tmp/pandonitor.pdf $1
elif [[ $2 == 'slides_metro' ]]; then
pandoc ${@:3} -t beamer -V theme:metropolis -o /tmp/pandonitor.pdf $1
elif [[ $2 == 'eis' ]]; then
pandoc ${@:3} --pdf-engine=xelatex --template eisvogel -o /tmp/pandonitor.pdf $1 --listings\
@ylmrx
ylmrx / scratchtray.py
Created October 16, 2019 16:39
Tend une main fraternelle.
#!/usr/bin/env python3
import os
import signal
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
from gi.repository import Gtk, AppIndicator3
import threading
from os import path
import time
@ylmrx
ylmrx / tunnel_in_disguise.py
Created October 1, 2018 15:47
am i a fox?
from __future__ import print_function
import sys
import scapy
from scapy_ssl_tls.ssl_tls import *
import socket
if __name__ == "__main__":