Skip to content

Instantly share code, notes, and snippets.

View couleurm's full-sized avatar

Couleur couleurm

View GitHub Profile
Set-Location $PSScriptRoot
[void][Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$folder = [Microsoft.VisualBasic.Interaction]::InputBox('Titre du dossier', 'Mettez le nom du dossier a creer:')
if ((Test-Path $folder)){
Write-Warning "Le dossier existe déjà"
pause
@couleurm
couleurm / BAT2PS1 Hybrid.cmd
Created January 17, 2022 21:57
Hybrid oneliners / short scripts to put at the top of your script with a cmd/bat extension
<# : & cls & @echo off & (for %%I in ("%~f0";%*) do @echo(%%~I) | powershell -nop -c "$argv = $input | ?{$_}; iex (${%~f0} | out-string)" & exit #>;Clear-Host
Write-Output 'Hi PowerShell!'
$defaults = @'
- blur
blur: true
blur amount: 1.27
blur output fps: 60
blur weighting: equal
- interpolation
interpolate: true
interpolated fps: 960
@couleurm
couleurm / LCLinstall.ps1
Last active August 11, 2021 07:00
Installation script for LCL
mode con cols=50 lines=3
Write-Host "Downloading LCL.."
$source = "https://github.com/Aetopia/Lunar-Client-Lite-Launcher/releases/latest/download/LCL.exe"
$destination = "$env:localappdata\Microsoft\WindowsApps\LCL.exe"
$webClient = [System.Net.WebClient]::new()
$webClient.DownloadFile($source, $destination)
cls;Write-Host "Downloading done!"
Unblock-File $destination
Start-Process $destination
exit

Keybase proof

I hereby claim:

  • I am couleurm on github.
  • I am couleur (https://keybase.io/couleur) on keybase.
  • I have a public key ASD_gR0Jx63f_NlTfPNLXxgPEzCaWmsH9CMud3GgD8M5Cwo

To claim this, I am signing this object: