Skip to content

Instantly share code, notes, and snippets.

@Palakis
Palakis / classeamericaine
Last active March 22, 2024 14:54
Fichier fortune des répliques de La Classe Américaine
Attention, ce flim n'est pas un flim sur le cyclimse. Merci de votre compréhension.
-*- Le narrateur - La Classe Américaine -*-
%
Monde de merde.
-*- George Abitbol - La Classe Américaine -*-
%
Ecoute-moi bien, mon petit José. Tu baises les ménagères ? Bien ! tu dois avoir le cul qui brille. Mais c'est pas ça qu'on appelle la classe.
-*- George Abitbol - La Classe Américaine -*-
%
Tu n'es vraiment pas très sympa.
@Palakis
Palakis / lsc_pir.yaml
Last active March 3, 2023 14:28
ESPhome on Action LSC Motion Sensor - Tuya TYWE3S (ESP8266-based)
# This device has two chips:
# - an ESP8266-based WiFi Module that talks to Tuya's cloud service (when running the stock firmware) and the on-board MCU.
# - an unmarked Tuya microcontroller (a.k.a MCU) that acts as a power management chip and wakes up the WiFi Module
# when motion is detected by the PIR sensor. The WiFi Module has to talk to the MCU upon power-on to prevent immediate power-off.
substitutions:
device_name: CHANGEME
esphome:
name: '${device_name}'

vMix Call - TURN Server Addresses

Contributing

You can contribute to this list by visiting https://www.vmixcall.com/turn.ashx?Array=1, then check if the addresses starting with turn: on that page are listed in the tables below. If not, please leave a comment with your findings at the bottom of this page!

Regions

Global

@Palakis
Palakis / glitch.effect
Last active February 16, 2022 05:22
StreamFX - Glitch shader filter (based on airtight's glitch shader)
// https://www.shadertoy.com/view/MtXBDs
// partially converted using Xaymar's shadertoy StreamFX template
#define vec2 float2
#define vec3 float3
#define vec4 float4
#define ivec2 int2
#define ivec3 int3
#define ivec4 int4
#define mat2 float2x2
@Palakis
Palakis / ddns.py
Last active August 28, 2021 17:39
Behind-NAT-style Dynamic DNS script, designed to run on Ubiquiti EdgeRouter hardware
#!/usr/bin/python
import socket
import fcntl
import struct
import httplib
import json
import sys
from base64 import b64encode
from urllib import urlencode
#!/bin/bash
DAILY_CHECK_AT="06:00"
DOMAIN_NAME=$1
ALERT_RECIPIENT=$2
function sendEmail() {
echo "$2" | mail -s "$1" "$ALERT_RECIPIENT"
}
@Palakis
Palakis / globalbrowsersource.lua
Last active March 20, 2018 22:15
OBS Studio - Global Browser Source (Downstream Keyer)
ffi = require "ffi"
obs = obslua
globalSource = nil -- Null pointer
outputIndex = 63 -- Last index
function script_description()
return "Plays a media source as a global source.\nSelect a file, reload the script and enjoy."
end
@Palakis
Palakis / globalmediasource.lua
Last active March 20, 2018 21:41
OBS Studio - Global media source
obs = obslua
mediaSource = nil -- Null pointer
outputIndex = 63 -- Last index
-- A function named script_description returns the description shown to
-- the user
function script_description()
return "Plays a media source as a global source.\nSelect a file, reload the script and enjoy."
end

Keybase proof

I hereby claim:

  • I am Palakis on github.
  • I am stephanel (https://keybase.io/stephanel) on keybase.
  • I have a public key whose fingerprint is 8A7D BCC4 DD16 4B9A 6E49 7B4B 713E EDE3 9114 AFB1

To claim this, I am signing this object:

#include <FastLED.h>
#define LED_PIN 6
#define NUM_LEDS 20
#define BRIGHTNESS 255
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 50