This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Following object is empty, this should be filled from a DB or CMS | |
$page = new stdClass(); | |
// Example of using a template file | |
function renderTemplateFile($templateFile, $variables) { | |
// Start a new output buffer | |
ob_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd "C:\Program Files\VideoLAN\VLC" | |
set /p include_audio=Include audio? (Y/N): | |
if /i "%include_audio%"=="Y" ( | |
start "" vlc.exe --no-qt-privacy-ask --no-qt-updates-notif --no-video-title-show dshow:// :dshow-vdev="Game Capture HD60 S+" :dshow-adev="Digital Audio Interface (Game Capture HD60 S+)" :live-caching=120 :dshow-aspect-ratio=16\:9 | |
) else ( | |
start "" vlc.exe --no-qt-privacy-ask --no-qt-updates-notif --no-video-title-show dshow:// :dshow-vdev="Game Capture HD60 S+" :dshow-adev=none :live-caching=0 :dshow-aspect-ratio=16\:9 | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Git\usr\bin\openssl.exe" req -x509 -nodes -days 3365 -subj /CN=Barrier -newkey rsa:4096 -keyout Barrier.pem -out Barrier.pem -sha256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the required libraries | |
#target "InDesign" | |
#targetengine "session" | |
// Create a new panel | |
var myPanel = new Window("palette", "Coordinates Extraction", undefined); | |
// Add content to the panel | |
var label = myPanel.add("statictext", undefined, "Coordinates:"); | |
label.alignment = "left"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flac to mp3, Single File | |
ffmpeg -i input.flac -ab 320k -ar 44100 output.mp3 | |
# Flac to mp3, Current Dir | |
for file in *.flac; do | |
[ -e "$file" ] || continue | |
ffmpeg -i "$file" -ab 320k -ar 44100 "${file%.flac}.mp3" | |
done | |
rm -f *.flac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to the current directory | |
$baseFolder = Get-Location | |
# Path to the JPG folder | |
$jpgFolder = Join-Path $baseFolder "JPG" | |
# Path to the RAW folder | |
$rawFolder = Join-Path $baseFolder "RAW" | |
# Iterate through all .jpg files in the JPG folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Enhanced X Video Player | |
// @version 1.0.1 | |
// @description Enhance X video player with volume control memory. | |
// @author philippgitpush | |
// @match https://x.com/* | |
// @grant none | |
// ==/UserScript== | |
(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public class RenameChildren : EditorWindow { | |
private static readonly Vector2Int size = new Vector2Int(250, 100); | |
private string childrenPrefix; | |
private int startIndex = 0; | |
[MenuItem("GameObject/Rename children")] public static void ShowWindow() { | |
EditorWindow window = GetWindow<RenameChildren>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name X Embed Button | |
// @version 1.0.1 | |
// @description Userscript that adds a button on X (Formerly Twitter) that allows you to copy a tweet to the obsidian embed format (user plugin) | |
// @author philippgitpush | |
// @match https://x.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |