Skip to content

Instantly share code, notes, and snippets.

View jmfergeau's full-sized avatar
🗼
Nous n'avons pas besoin de vinaigre balsamique après tout...

JM Fergeau jmfergeau

🗼
Nous n'avons pas besoin de vinaigre balsamique après tout...
View GitHub Profile
@jmfergeau
jmfergeau / lights.lsl
Last active December 7, 2023 22:28
Lightswitch system
// LIGHTSWITCH SYSTEM
// A very simple set of scripts for lighting your house
// This script is meant to be in the lightbulbs.
integer channel = 916847; // To change depending of the channel of the button.
string buttonName = "Lightswitch"; // This must be the name of the prim used for the light switch.
vector lightColor = <1.0,0.717647,0.486275>; // The color of the lights, in case you want to change them
@jmfergeau
jmfergeau / .conkyrc
Last active February 9, 2023 11:38
My default personal conky config
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
alignment = 'top_left',
background = true,
border_width = 10,
cpu_avg_samples = 2,
default_color = '#C0C0C0',
default_outline_color = '#C0C0C0',
default_shade_color = '#C0C0C0',
draw_borders = false,
@jmfergeau
jmfergeau / vscode.edit.py
Created October 20, 2022 12:39
For some reason, Ren'Py refuses to set up vscode as editor on linux, even if it downloads it. In the meantime, i found this kind of fix.
# For some reason, Ren'Py refuses to set up vscode as editor, even if it downloads it.
# In the meantime, i found this kind of fix.
# 1. Attempt to install vscode for renpy.
# 2. if it fails and says "not specified", copypaste this in a new file
# called "vscode.edit.py" inside the 'vscode' folder in renpy.
# 3. Change the CODE_PATH variable as indicated.
# 4. launch (or restart) renpy, and in the settings, choose the lone 'vscode' in the editor settings
# Many thanks to the chinese dude for this file.
import os
@jmfergeau
jmfergeau / gamepad
Created January 5, 2022 14:26
Wii Guitar in Clone Hero
# This file must be located in "/etc/cwiid/wminput" and should be named "gamepad"
# gameport
Classic.Dpad.X = ABS_X
Classic.Dpad.Y = ABS_Y
Classic.LStick.X = ABS_HAT0X
Classic.LStick.Y = ABS_HAT0Y
Classic.RStick.X = ABS_HAT1X
Classic.RStick.Y = ABS_HAT1Y
Classic.LAnalog = ABS_GAS
@jmfergeau
jmfergeau / unfckdock.sh
Created August 2, 2021 20:05
This will bring back the Deepin dock if you randomly lost it. Just make a sh script on the desktop, put this code inside and run it when needed.
#!/bin/sh
# This will bring back the Deepin dock if you randomly lost it.
# Just make a sh script on the desktop, put this code inside and
# run it when needed.
pkill dde-dock; dde-dock
exit
@jmfergeau
jmfergeau / Rip Audio from CD audio bin files.md
Last active October 21, 2022 20:08
Rip Audio from CD audio bin files

You got one of those hybrid ISO CDs that does both data and audio and you want to rip the audio? Here's a way to do it without even needing a conversion program. Note: It's only for windows. But i'm pretty sure it can be done with unix-like. If you see how to, tell me so i can update the gist.


  1. with a Hexadecimal editor (like HxD), create a new file called wav.hed and put this in it:

52 49 46 46 FF FF FF 7F 57 41 56 45 66 6D 74 20 10 00 00 00 01 00 02 00 44 AC 00 00 10 B1 02 00 04 00 10 00 64 61 74 61 00 FF FF 7F

@jmfergeau
jmfergeau / bdcheck.acs
Last active June 5, 2021 13:28
Brutal DOOM Checker
#include "zcommon.acs"
///////////////////////////////////////////////////////////////////
/*
BRUTAL DOOM CHECK.
This will detect when, in your zdoom mod, if Brutal Doom has been added too
and, for some reason, you want to discourage the player to do so.
The script simply looks for two decorate classes that are in all versions
of BD. If they're both detected. a message will display. Feel free to
@jmfergeau
jmfergeau / listlinux.txt
Last active January 3, 2022 15:16
List of TTS voices to use with Ren'Py (listed by code)
### Linux
###############################################
NAME LANG CODE Other languages
afrikaans af
aragonese an
bulgarian bg
bosnian bs
catalan ca
czech cs
welsh cy
@jmfergeau
jmfergeau / bell hour clock.lsl
Created April 18, 2019 15:41
This will emits a sound for each hour, like your average town clock or anything...
// CLOCK BELL SCRIPT
// ORIGINAL AUTHOR: Beverly Larkin
// Edited by buttbadger Mirabeau
// Like
// Put below the bell sound name or UUID:
string bell = "bab03683-516a-22a3-a9ec-4a357dbdc587";
// Or some junk
integer H; //Hours
@ECHO OFF
REM This script forces Windows to get its clock updated
REM in case multiboot makes it forget what time is it.
REM (WHY?!!!!)
REM Launch this with task schedule and pray that it works.
net start w32time
w32tm /resync