Skip to content

Instantly share code, notes, and snippets.

View X-Raym's full-sized avatar

Raymond Radet X-Raym

View GitHub Profile
@X-Raym
X-Raym / memberpress-corporate-all-sub-accounts.php
Last active July 9, 2020 16:24 — forked from cartpauj/memberpress-corporate-all-sub-accounts.php
Get all sub-accounts for a parent user in MemberPress Corporate Accounts
<?php
/**
* Plugin Name: MemberPress Corporate Sub Account Shortcode
* Plugin URI: https://gist.github.com/X-Raym/a2c5a2eb05b9be3c04ee9972876aa2df/edit
* Description: AMemberPress Corporate Sub Account Shortcode
* Author: X-Raym
* Author URI: https://www.extremraym.com/
* License: GNU AGPLv3
* License URI: http://www.gnu.org/licenses/agpl-3.0.html
@X-Raym
X-Raym / X-Raym_Search and replace.py
Last active June 25, 2020 16:37
Search and replace in text files from a folder and its subfolders without changing last modified date - Here is demo with .rpp and .rpp-bak files REAPER files
import sys
import os
from os import path
debug = False
#### USER INPUT ####
if debug:
dirName = "E:\\Bureau\\"
search = "F:\\Bureau\\SOUNDS"
@X-Raym
X-Raym / affinity script - obect.lua
Last active May 9, 2020 14:39
Affinity App API Protocode
-- Object based. Like Adobe API.
doc = affinity.GetDocument(1) -- get first opened doc. affinity is an objevt with all functions exposed by the api.
layer = doc.GetLayer(1) --get first dpcument. return a layer obect with its own set of functions.
name = layer.GetName() -- get name from layer object
layer.SetName( name:gsub(search, replace) ) -- use Set method of layer object.
resolve = Resolve()
pm = resolve:GetProjectManager()
proj = pm:GetCurrentProject()
tl = proj:GetCurrentTimeline()
items = tl:GetItemsInTrack("subtitle", 1)
for i, v in ipairs( items ) do
print( v:GetName() )
end
/**
* JSFX Name: Note Generator
* Description: Inspired by Aurélien Demey
* About: Press play.
* Screenshot: https://i.imgur.com/zCVSnMk.gifv
* Author: X-Raym
* Author URI: https://www.extremraym.com
* Donation: http://www.extremraym.com/en/donation
* Licence: GPL v3
* REAPER: 5.0
@X-Raym
X-Raym / GreaseMonkey Navigation wih Left and Right keys.js
Last active April 17, 2020 13:56
GreaseMonkey Navigation wih Left and Right keys
// ==UserScript==
// @name Navigation wih Left and Right keys
// @version 1
// @grant none
// @include http://www.example.com/*
// ==/UserScript==
// USER CONFIG AREA ******************* //
var selector_1 = 'body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) > p:nth-child(3) > a:nth-child(1) > img:nth-child(1)';
var selector_2 = 'body > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) > td:nth-child(1) > p:nth-child(3) > a:nth-child(2) > img:nth-child(1)';
@X-Raym
X-Raym / DaVinci Resolve Scripting Doc.txt
Last active May 13, 2024 19:26
DaVinci Resolve Scripting API Doc v18.6.6
Updated as of 18 December 2023
----------------------------
In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import
modules for scripting access (DaVinciResolve.py) and some representative examples.
From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes.
Overview
--------
@X-Raym
X-Raym / davinci_resolve.ahk
Last active June 1, 2021 07:13
DaVinci Resolve AutoHotKey KeyBoard Shorcuts and MIDI Scripts
GetActiveWindowProcessName() {
WinGet, Active_ID, ID, A
WinGet, Active_Process, ProcessName, ahk_id %Active_ID%
return Active_Process
}
`;::
if (GetActiveWindowProcessName() = "Resolve.exe") {
send {WheelDown 1}
// Text overlay
length = 3250;
#text = '';
i = offset;
loop( srctime+length,
sprintf(#val,"% 05i", i);
strncat(#text,#val,0);
i = i+1;
);
@X-Raym
X-Raym / ffmpeg-normalize 96-24
Last active September 25, 2019 13:51
ffmpeg-normalize 96/24 with overwrite existing file
for %%f in ("*.WAV") do ffmpeg-normalize "%%f" -c:a pcm_s24le -ext wav