Skip to content

Instantly share code, notes, and snippets.

@guillaC
guillaC / NormalizeAll.cs
Last active June 28, 2025 23:52
Fiverr Order #FO51AC43813C7
namespace NormalizeAll
{
using ScriptPortal.Vegas;
using System.Windows.Forms;
using System.Collections.Generic;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
@guillaC
guillaC / AddRegion.cs
Created December 22, 2021 21:46
Fiverr Order #FO211DA32BB86
namespace AddRegion
{
using ScriptPortal.Vegas;
using System.Windows.Forms;
using System.Collections.Generic;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
@guillaC
guillaC / updater.bat
Created December 17, 2020 17:54
update uMod mod for the game Rust
@echo off
SET URL=https://umod.org/games/rust/download
SET FILE="./%RANDOM%.zip"
SET FOLDERPATH="C:\Users\Guillaume\Desktop\RustServer\common\rust_dedicated\data\Managed"
ECHO Downloading from %URL%
powershell.exe -c "(New-Object Net.WebClient).DownloadFile('%URL%','%FILE%')"
ECHO Done.
ECHO Extract to current folder
powershell.exe -c "Expand-Archive -Force '%FILE%' ./"
ECHO Done.
@guillaC
guillaC / extract.bat
Last active October 21, 2020 07:42
extract .h from .c files
@ECHO OFF
SETLOCAL enableextensions
:start
SET /P project="project path:"
SET /P save="save path:"
SET tmp=%random%
CLS
FINDSTR /S /B /N /R /C:"#include" %project%\*.c>%tmp%
FOR /f "tokens=*" %%a IN (%tmp%) DO CALL :parse %%a
@echo off
::Configuration
SET folderPath=C:\Users\Guillaume\Desktop\fiverrorderFO1B3039F9A5\backuppls\
SET backupPath=C:\Users\Guillaume\Desktop\fiverrorderFO1B3039F9A5\
SET SubExcept[0]=sub3
SET SubExcept[1]=sub4
SET /A i = 0
::ClearBackupFolder
ForFiles /p %backupPath% /s /m *.zip /d -7 /c "cmd /c del @file"
@guillaC
guillaC / highlight.cs
Created August 29, 2020 15:27
RichTextBox Syntax Highlighting
private void Highligh(RichTextBox rtb) {
String[] keywords = {
"@echo",
"echo",
"pause",
"set",
"cls",
"exit",
"del",
"erase",
@guillaC
guillaC / tips.cs
Created January 23, 2020 21:30
selenium check if exist
private Boolean Exist(By by) //vérifie si un élément existe
{
try
{
this.driver.FindElement(by);
return true;
}
catch(Exception)
{
return false;
@guillaC
guillaC / regex.cs
Created September 17, 2019 21:17
regex eth/btc/xmr address
/*
bitcoin = new Regex(@"\b(bc1|[13])[a-zA-HJ-NP-Z0-9]{26,35}\b");
ethereum = new Regex(@"\b0x[a-fA-F0-9]{40}\b");
monero = new Regex(@"\b4([0-9]|[A-B])(.){93}\b");
*/
@guillaC
guillaC / Program.cs
Created December 28, 2017 16:57
lightshotDumper
using System;
using System.Net;
using System.Text.RegularExpressions;
namespace lightshotDumper
{
class Program
{
const string IMG404 = "0_173a7b_211be8ff.png"; // 404
static void Main(string[] args)
Imports System.Runtime.InteropServices
Imports System.Drawing
Module Module1
<DllImport("kernel32.dll", SetLastError:=True, CharSet:=CharSet.Auto)>
Private Function GetConsoleWindow() As IntPtr
End Function
Sub Main()