Skip to content

Instantly share code, notes, and snippets.

View AlexLaforge's full-sized avatar

Alex Laforge AlexLaforge

  • Reims, France.
View GitHub Profile
@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
@AlexLaforge
AlexLaforge / typeValue.asp
Created February 28, 2020 22:20 — forked from marcelodeandrade/typeValue.asp
Convert value by recordset value type
public function typeValue(value)
select case TypeName(value)
case "Byte": typeValue = cBool(value)
case "Integer": typeValue = cInt(value)
case "Long": typeValue = cLng(value)
case "Single": typeValue = cDbl(value)
case "Double": typeValue = cDbl(value)
case "Currency": typeValue = cDbl(value)
case "Decimal": typeValue = cDbl(value)
case "Date": typeValue = cDate(value)
@AlexLaforge
AlexLaforge / dynamic_get_set.asp
Created February 28, 2020 22:20 — forked from marcelodeandrade/dynamic_get_set.asp
Dynamic get/set properties
<%
class teste
private abc
private def
private sub class_initialize
end sub
@AlexLaforge
AlexLaforge / parameters.vbs
Created February 24, 2020 21:14 — forked from mlhaufe/parameters.vbs
VBScript class constructor parameters
Class Person
Private m_Age
Private m_Name
Public Default Function Init(Name, Age)
m_Name = Name
m_Age = Age
Set Init = Me
End Function