Skip to content

Instantly share code, notes, and snippets.

View yannduran's full-sized avatar

Yann Duran yannduran

View GitHub Profile
@yannduran
yannduran / scan-vs-dlls.linq
Created October 4, 2020 12:12 — forked from bert2/scan-vs-dlls.linq
Developing a VS extension and want to style it with the VS theme? This is a list of all `*style.xaml` files found in the VS dlls. Open any of the DLLs with ILSpy to inspect the XAML files (they're named `*.baml` after compilation).
// This needs to be executed multiple times, because it will crash with an out of memory exception.
// Once an assembly has been loaded with `Assembly.LoadFile()`, it cannot be unloaded again. The
// +10K DLLs to load will eat up all your memory, but the script will resume at the DLL that
// crashed the process, when it is restarted.
void Main() {
// Adjust those paths.
var resultStore = @"C:\Users\bert\Desktop\vs-style-baml-files.txt";
var lastFileStore = @"C:\Users\bert\Desktop\vs-baml-files.last.txt";
// Make sure this file exists (empty).
@yannduran
yannduran / bootstrapwindows10.ps1
Created December 20, 2020 07:57 — forked from zloeber/bootstrapwindows10.ps1
Boxstarter Windows 10 Configuration
<#
The command to run, built from the raw link of this gist
Win+R
iexplore http://boxstarter.org/package/url?<RAW GIST LINK>
OR (if you don't like the way the web launcher force re-installs everything)
@yannduran
yannduran / free_ports.sh
Last active November 1, 2024 13:00 — forked from c01dfusion/free_ports.sh
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx