Skip to content

Instantly share code, notes, and snippets.

View fgimian's full-sized avatar

Fotis Gimian fgimian

View GitHub Profile
# 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
@fgimian
fgimian / main.rs
Last active November 19, 2022 21:54
Animations with egui
#![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,
@fgimian
fgimian / main.rs
Last active November 20, 2022 09:38
Example Window for Volume Widget using winit
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},
@fgimian
fgimian / satellite.py
Created August 21, 2016 23:35
Red Hat Satellite Dynamic Inventory for Ansible
#!/usr/bin/env python
#
# Red Hat Satellite Dynamic Inventory for Ansible
# Copyright 2016 by Fotis Gimian (MIT License)
#
# Set your inventory to point to this script and ensure the script is
# executable. You'll need an INI file with Satellite details of the following
# style (whereby you may specify one or more Satellite servers):
#
# [satellite]
@fgimian
fgimian / CMakeLists.txt
Last active July 2, 2023 02:33
My first attempt at a CMake script for building an application
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"
)