Skip to content

Instantly share code, notes, and snippets.

View turbulentie's full-sized avatar

turbulentie turbulentie

  • France
View GitHub Profile
@turbulentie
turbulentie / gnuplot-waveform.sh
Created September 29, 2024 14:11
Plotting waveform of audiofile data in gnuplot using stats from sox
#!/bin/bash
# -----------------------------------------------------------------------------
# file: gnuplot-waveform.sh
# -----------------------------------------------------------------------------
#
# author: turbulentie
# created: 2024-09-29 (09:48:25)
# updated: 2024-09-29 (17:02:03)
# revision: 1.0

List of exit codes for GNU/Linux

Exit Code Description
0 Success
1 Operation not permitted
2 No such file or directory
3 No such process
4 Interrupted system call
5 Input/output error
@echo off
color 0B
mode con:cols=100 lines=20
if not defined WEISAR_HOME set WEISAR_HOME=%~dp0
start "" /realtime saracon.exe
diff --git a/irc.pas b/irc.pas
index d83593a..a34603b 100644
--- a/irc.pas
+++ b/irc.pas
@@ -159,6 +159,7 @@ procedure irc_AddINFO(const msgFormat: String; Args: array of const); overload;
function CommandAuthorized(const netname, channel, cmd: String): Boolean;
procedure irc_SendAddPre(const msgirc: String);
+procedure irc_SendAddPreStandard(const msgirc: String);
procedure irc_SendSPEEDSTATS(const msgirc: String);
@turbulentie
turbulentie / mpl_Generate CUE from project markers.lua
Created May 19, 2023 11:33
Generate CUE from project markers v1.03
-- @description Generate CUE from project markers
-- @version 1.03
-- @author MPL
-- @website https://forum.cockos.com/showthread.php?t=188335
-- @changelog
-- + Add save file dialog (require JS ReaScript API Extension)
function main()
local scr_name = 'MPL Generate CUE from markers'
@turbulentie
turbulentie / mpl_Generate CUE from project markers.lua
Created May 19, 2023 11:31
Generate CUE from project markers v1.07
-- @description Generate CUE from project markers
-- @version 1.07
-- @author MPL
-- @website https://forum.cockos.com/showthread.php?t=188335
-- @changelog
-- # 1-based markers count
-- # exculde number sign from marker name
function patternamtch(nameOut) return nameOut:gsub('%s',''):sub(0,1) end
@turbulentie
turbulentie / sysctl.conf
Created May 8, 2023 04:58
config /etc/sysctl.conf
# -----------------------------------------------------------------------------
# file: /etc/sysctl.conf > /etc/sysctl.d/99-sysctl.conf
# -----------------------------------------------------------------------------
#
# updated: 2020/11/24
# revision: 2
#
# -----------------------------------------------------------------------------
@turbulentie
turbulentie / ffmpeg_riff-to-rf64.bat
Last active May 3, 2023 18:36
Small batch script for converting RIFF WAV files to RF64 using ffmpeg
@echo off
::-----------------------------------------------------------------------------
:: Small batch script for converting RIFF WAV files to RF64 using ffmpeg
:: Location of ffmpeg binary should be sets globally or via PATH= env ^
::-----------------------------------------------------------------------------
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:Loading
@turbulentie
turbulentie / moc.sh
Created July 9, 2021 11:32
script for conky to show MOC playback info
#!/bin/bash
state=$(mocp -Q %state)
mocp_status() {
if [[ $state == "PLAY" ]]; then
state="Playing"
echo $state
elif [[ $state == "STOP" ]]; then
state="Stopped"