Skip to content

Instantly share code, notes, and snippets.

View fgimian's full-sized avatar

Fotis Gimian fgimian

View GitHub Profile
@ScottHutchinson
ScottHutchinson / install-vsix.ps1
Last active May 3, 2024 21:48
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)"
@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

@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
@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).
@harvimt
harvimt / cffi_test.c
Created March 10, 2014 07:52
lib7zip minimal c example.
#include <stdio.h>
#include <windows.h>
#include <wchar.h>
#include <initguid.h>
#include "pstdint.h"
DEFINE_GUID(CLSID_CFormat7z,
0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00);
DEFINE_GUID(IID_IInArchive,
@leonardo-m
leonardo-m / gist:6e9315a57fe9caa893472c2935e9d589
Last active January 4, 2024 12:22
A selection of 101 LINQ Samples converted to Rust
// Port of the C# 101 LINQ Samples rewritten into Apple's Swift 3.
#![feature(ordering_chaining, step_by)]
fn main() {
// linq5: Where - Indexed
/*
//c#
public void Linq5()
{
@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
@avillafiorita
avillafiorita / .colors.csv
Created July 16, 2014 11:27
change osx terminal colors and font from the command line
LightPink1 #ffbdc5 255 189 197 {65535 48573 50629}
pink4 #9d777f 157 119 127 {40349 30583 32639}
pink3 #d7a3ad 215 163 173 {55255 41891 44461}
pink2 #f2b9c4 242 185 196 {62194 47545 50372}
pink1 #ffc3cf 255 195 207 {65535 50115 53199}
HotPink4 #9e4f75 158 79 117 {40606 20303 30069}
HotPink3 #d878a1 216 120 161 {55512 30840 41377}
HotPink2 #f383b5 243 131 181 {62451 33667 46517}
HotPink1 #ff87c1 255 135 193 {65535 34695 49601}
DeepPink4 #9e1e62 158 30 98 {40606 7710 25186}
#!/bin/bash
address=https://ilo.mysite.com:34043
username=Administrator
password=********
session_key=$(
curl -fsS \
--insecure \
"$address/json/login_session" \
@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]