Skip to content

Instantly share code, notes, and snippets.

View fgimian's full-sized avatar

Fotis Gimian fgimian

View GitHub Profile
@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},
@repi
repi / crate-health.md
Last active February 22, 2024 01:17
Guidelines on evaluating health & quality of third-party crates at Embark

What to evaluate and consider before adding usage of new third-party crates.

These are not exact requirements but questions to investigate and discuss to help reason around the health, safety, maintainability, and more around crates.

This can also be read as an opinionated guide for crate authors of what our (Embark's) guidelines and recommendations are, though should not be taken too literally.

Legend: 🔒 Must have, ⭐️ Should have, 👍 Nice to have, ℹ️ Info

@ScottHutchinson
ScottHutchinson / install-vsix.ps1
Last active January 19, 2024 15:21
PowerShell scripts for batch installing Visual Studio extensions
# Based on http://nuts4.net/post/automated-download-and-installation-of-visual-studio-extensions-via-powershell
param([String] $PackageName)
$ErrorActionPreference = "Stop"
$baseProtocol = "https:"
$baseHostName = "marketplace.visualstudio.com"
$Uri = "$($baseProtocol)//$($baseHostName)/items?itemName=$($PackageName)"
@daveyijzermans
daveyijzermans / index.js
Created April 28, 2019 11:20
Discover Focusrite Control Server on the network
const PORT = 61392;
const dgram = require('dgram');
const client = dgram.createSocket('udp4');
// Make the discovery message
const msg = '<client-discovery app="SAFFIRE-CONTROL" version="4" device="iOS"/>';
const hex = ('000000' + msg.length.toString(16)).substr(-6);
const announce = 'Length=' + hex + ' ' + msg;
// Start the udp socket
// slightly modified to reduce bindgen vomit
/****************************************************************************\
DismApi.H
Copyright (c) Microsoft Corporation.
All rights reserved.
\****************************************************************************/
@markekraus
markekraus / AzCmdletMapping.md
Last active February 18, 2024 17:34
Az to AzureRm Cmdlet Mappings

Az to AzureRM command Mappings

Source

Az.Aks

Az Command AzureRm Command
Get-AzAks Get-AzureRmAks
New-AzAks New-AzureRmAks
@ohac
ohac / Caddyfile
Created November 10, 2018 13:16
:443 {
proxy /v1 https://api.native-instruments.com/
proxy /static https://api.native-instruments.com/
log log.txt
}
# sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy
# /etc/hosts
# 127.0.0.1 api.native-instruments.coz
@gvlx
gvlx / Windows 10 Decrapifier, 1803_1809.ps1
Last active January 21, 2024 22:23
Windows 10 Decrapifier
#Windows 10 Decrapifier 1803/1809
#By CSAND
#Oct 5 2018
#
#
#PURPOSE: Eliminate much of the bloat that comes with Windows 10.
#
# Change many privacy settings to be off by default. Remove
# built-in advertising, Cortana, OneDrive, Cortana stuff
# (all optional).
@kangalio
kangalio / trance-classics.txt
Created May 31, 2018 12:35
A list of all the songs the YouTube channel "Trance Classics" had uploaded before he was banned because of copyright strikes.
24 - The Longest Day (Armin Van Buuren Remix) [2004]
2HD - Sunflakes (Vincent De Moor Remix) [1998]
2Trance & Moonforce - Sunset On Ibiza (Original Mix) [2007]
3 Voices - Nightflight (Future Mix) [1994]
4 Strings - All Around The World
4 Strings - Catch A Fall (Club Mix)
4 Strings - Daytime (Gizeh Remix) [2000]
4 Strings - Desire (DJ 4 Strings Remix)
4 Strings - Desire (Original Mix)
4 Strings - Diving (Hiver & Hammer's Different Gear Remix) [2002]
@sgeto
sgeto / InstallNpcap.ps1
Last active July 22, 2020 17:20
A Non-Interactive Npcap Installation Script
# requires -version 4
#
# Copyright (C) 2018 Ali Abdulkadir <autostart.ini@gmail.com> <sgeto@ettercap-project.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sub-license, and/or sell copies of the Software,