Skip to content

Instantly share code, notes, and snippets.

View lucienbill's full-sized avatar
🦄
"Failure is always an option" - Adam Savage

Lucien Bill lucienbill

🦄
"Failure is always an option" - Adam Savage
View GitHub Profile
@lucienbill
lucienbill / window11_disable_internet_search_in_menu
Last active November 14, 2022 15:19
This command disables the internet results when you search things in the Windows menu
# About Windows 11 whenever you hit the "Windows" key, the Windows menu
# appears, and it has a search engine! Neat!
# But that's not all: this search engine doesn't just look for content on your
# computer, it also searches on the internet.
#
# I love this kind of features, unless it is forced onto the user. There isn't
# any way to toggle it on or off in Windows' UI, which makes me really hate it.
#
# Run this command in a CMD or PowerShell terminal to disable this feature:
REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search\ /v BingSearchEnabled /t REG_DWORD /d 0
@lucienbill
lucienbill / SearchInZip-FilesThatContainASpecificString.ps1
Last active August 3, 2022 20:22
Given a folder that contains some zip files, this script lists the files within the zipped files that contain a specific string.
### What is this script ? ###
# Given a folder that contains some zip files, this script lists the files
# within the zipped files that contain a specific string.
#
# Example behavior (if you run the script with the example values) :
# This script will search for files that have the following characteristics :
# - ".csv" files contained within a zip, in a the folder
# "C:\Users\lulu\Downloads\tmp\dev" or its subfolders
# - The file must contain the string "foo"
# - The script will return 2 files or less
@lucienbill
lucienbill / ignoreLilo-Chrome.ps1
Last active June 28, 2022 13:55
Une bidouille pour ignorer un paramétrage par défaut trop restrictif
##################################
### Contexte ###
# Sur les ordinateurs de l'entreprise, le moteur de recherche "lilo" est imposé
# par défaut sur les navigateurs. Je n'ai rien contre ce moteur de recherche,
# mais j'ai un problème avec le fait qu'on nous l'impose sans nous laisser la
# possibilité de le changer simplement.
#
# Etant un bidouilleur dans l'âme, j'ai réglé le problème sur ma machine. Voici
# comment vous pouvez le régler sur la votre.
@lucienbill
lucienbill / convertWordToPDF.ps1
Last active December 9, 2021 20:33
Script PowerShell pour transformer des documents Word en PDF (testé sous Windows 10)
# MANUEL :
# 1 : lisez le script, en totalité.
# 2 : modifiez la valeur de $documents_path pour mettre le chemin de votre dossier
# 3 : adaptez d'autres instructions si besoin
# 4 : exécutez le script (clic droit -> Exécuter avec PowerShell)
# 5 : Patientiez
# Script pour transformer des .doc et .docx en .pdf
# ATTENTION : crée des pdf, et supprime les .doc / .docx
# Adapté à partir de https://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf