Skip to content

Instantly share code, notes, and snippets.

View AlexLaforge's full-sized avatar

Alex Laforge AlexLaforge

  • Reims, France.
View GitHub Profile
Set-ItemProperty -Path $defaultFTP -Name ftpServer.security.ssl.serverCertHash -Value 582EF84C1D431738C0A5F75C845CAA03D81E63B6 # Replace my sample thumbprint with the value from your certificate
# Data channel ports are a per server configuration not per site
Set-WebConfigurationProperty -PSPath IIS:\ -Filter system.ftpServer/firewallSupport -Name lowDataChannelPort -Value 5001
Set-WebConfigurationProperty -PSPath IIS:\ -Filter system.ftpServer/firewallSupport -Name highDataChannelPort -Value 5001
@AlexLaforge
AlexLaforge / UnicodeBlocks.json
Created April 18, 2025 01:30 — forked from mrpapercut/UnicodeBlocks.json
JSON object of all Unicode blocks
/* "<name of block>": [<start of block>, <end of block>] */
{
"Basic Latin": [0x0000, 0x007F],
"Latin-1 Supplement": [0x0080, 0x00FF],
"Latin Extended-A": [0x0100, 0x017F],
"Latin Extended-B": [0x0180, 0x024F],
"IPA Extensions": [0x0250, 0x02AF],
"Spacing Modifier Letters": [0x02B0, 0x02FF],
"Combining Diacritical Marks": [0x0300, 0x036F],
"Greek and Coptic": [0x0370, 0x03FF],
@AlexLaforge
AlexLaforge / scrdec18-VC8.exe
Created April 15, 2025 02:04 — forked from bcse/scrdec18-VC8.exe
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@AlexLaforge
AlexLaforge / accounts.json
Created September 19, 2023 22:32 — forked from anonymous/accounts.json
accounts.json
[
{
"$id": "1",
"$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount,
SourceTree.Api.Host.Identity",
"Authenticate": true,
"HostInstance": {
"$id": "2",
"$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance,
SourceTree.Host.AtlassianAccount",
@AlexLaforge
AlexLaforge / firefox-viewsource-customize.md
Created April 13, 2022 13:39 — forked from abelcheung/firefox-viewsource-customize.md
Customizing Firefox view-source style -- Solarized Dark theme with wallpaper

Customizing Firefox view-source style

TL;DR

  1. Open (or create) chrome/userContent.css under your Firefox profile folder
  2. Append attached CSS content and save file
  3. Restart Firefox

firefox view-source style customization

@AlexLaforge
AlexLaforge / CBase64.vbs
Last active April 2, 2022 21:09 — forked from wangye/CBase64.vbs
VBScript Base64 encode and decode
'Usage
Set MyBase64Encoder = New CBase64
MyBase64Encoder.Charset = "utf-8"
Response.Write MyBase64Encoder.EncodeText("MyText With Accented Characters é à Û")
Set MyBase64Encoder = Nothing : MyBase64Encoder = Empty
'
' Description: Base64 encode and decode
' Author: wangye <pcn88 at hotmail dot com>
@AlexLaforge
AlexLaforge / Disable_Wi-Fi.vbs
Created December 8, 2021 11:47 — forked from simply-coded/Disable_Wi-Fi.vbs
Use VBScript to enable, disable, or toggle a connection like your Wi-Fi on and off.
'************************
'Name: Disable Connection
'Author: Jeremy England
'Company: SimplyCoded
'Date: 10/01/2016
'************************
Option Explicit
Dim interface, interfaceName, interfaceTarget, available, verb
'Pick the Interface Name you want to disable
@AlexLaforge
AlexLaforge / gist:3ed5ac3ce2796fc93cce7be68b29a773
Created March 28, 2021 13:13 — forked from Matho/gist:4389818
TinyMCE settings for Word html cleaning, preserving text color
// Paste in http://fiddle.tinymce.com/baaaab
// This settings strip all span and font tag, but preserving color and text-decoration
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
@AlexLaforge
AlexLaforge / encoder.js
Created January 19, 2021 02:04 — forked from iron9light/encoder.js
Windows jscript base64 encoder. Drag and drop files you wanna encode to this .js file.
var fsDoOverwrite = true // Overwrite file with base64 code
var fsAsASCII = false // Create base64 code file as ASCII file
var adTypeBinary = 1 // Binary file is encoded
function encode(from, to) {
var inputStream = WScript.CreateObject("ADODB.Stream");
inputStream.Type = adTypeBinary
inputStream.Open();
inputStream.LoadFromFile(from);
@AlexLaforge
AlexLaforge / getting-started.ps1
Last active June 22, 2020 02:38 — forked from benyoungnz/getting-started.ps1
Data Integration API from Veeam - Getting Started
Add-PSSnapin VeeamPSSnapin -ErrorAction SilentlyContinue
#connect to your backup server
Connect-VBRServer -Server "YOURBACKUPSERVER"
#get this machine (the data processor) ip address
$targetServer = (Get-NetIPAddress -AddressFamily IPv4 | Select-Object -First 1).IPAddress
$targetServerCreds = Get-VBRCredentials -Name "lab\administrator"
#backup job name