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
include(FetchContent) | |
cmake_minimum_required(VERSION 3.26) | |
project( | |
totalmix-control | |
VERSION 0.1.0 | |
DESCRIPTION "Provides control over RME TotalMix via OSC." | |
HOMEPAGE_URL "https://github.com/fgimian/totalmix-control" | |
) |
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
use anyhow::Result; | |
use thiserror::Error; | |
use windows::Win32::UI::{ | |
Input::KeyboardAndMouse::{ | |
RegisterHotKey, MOD_SHIFT, VK_VOLUME_DOWN, VK_VOLUME_MUTE, VK_VOLUME_UP, | |
}, | |
WindowsAndMessaging::{MSG, WM_HOTKEY}, | |
}; | |
use winit::{ | |
dpi::{PhysicalPosition, PhysicalSize}, |
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
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] // hide console window on Windows in release | |
use eframe::egui; | |
use egui::{color, pos2, Color32, Id, Rect, Rounding}; | |
fn main() { | |
let options = eframe::NativeOptions::default(); | |
eframe::run_native( | |
"My egui App", | |
options, |
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
function Install-File { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true, Position=0)][string]$Path, | |
[Parameter(ParameterSetName='SourcePath')][string]$SourcePath, | |
[Parameter(ParameterSetName='Content')][string]$Content, | |
[Parameter(ParameterSetName='DownloadUrl')][string]$DownloadUrl | |
) | |
# ... |
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
#!/usr/bin/env python3 | |
""" | |
Trash Locations shows you all deleted files and their original location (sorted by original | |
location). | |
To run this script, you'll first need to install Python 3.6 or later and run: | |
pip3 install ds_store | |
Developed by Fotis Gimian (MIT license). |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
@token = '' | |
def list_files(days) | |
params = { | |
token: @token, | |
ts_to: (Time.now - days * 24 * 60 * 60).to_i, |
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
require "yaml" | |
# The default representation of null values in Crystal is an empty value which while valid | |
# (see http://yaml.org/type/null.html) but is less familiar and clear to me, use the string | |
# "null" instead | |
struct Nil | |
def to_yaml(yaml : YAML::Nodes::Builder) | |
yaml.scalar "null" | |
end | |
end |
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
--- | |
# Ensure very detailed checking with no exclusions | |
strictness: veryhigh | |
doc-warnings: true | |
member-warnings: true | |
test-warnings: true | |
# Set maximum line length across linters to the agreed length | |
max-line-length: 100 |
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
import math | |
import sys | |
import time | |
# Colours | |
BOLD = '\033[1m' | |
RED = '\033[91m' | |
GREEN = '\033[92m' | |
YELLOW = '\033[93m' |
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
# Generate a file containing all URLs for Logic Pro X content | |
curl -s http://audiocontentdownload.apple.com/lp10_ms3_content_2016/logicpro1023.plist | \ | |
grep -B 1 DownloadSize | grep "<string>" | sed -e "s:.*<string>::" -e "s:</string>.*::" | \ | |
sed "s;^;http://audiocontentdownload.apple.com/lp10_ms3_content_2016/;" > logic-pro-x-download-urls-2016.txt | |
# After generating the output file logic-pro-x-download-urls-2016.txt, I recommend opening it with Firefox | |
# and using DownloadThemAll to download all the URLs. | |
# When the downloads are complete, you may automatically install packages as follows | |
sudo -v |
NewerOlder