Skip to content

Instantly share code, notes, and snippets.

View brunolm's full-sized avatar
🏠
Working from home

BrunoLM brunolm

🏠
Working from home
View GitHub Profile
@brunolm
brunolm / base64-image.ps1
Created November 23, 2018 18:22
Powershell: Get-ImageBase64 from FILE or URL
function Get-ImageBase64([string]$file) {
if ($file -like 'http*') {
return Get-ImageBase64FromUrl($file);
}
return Get-ImageBase64FromFile($file);
}
function Get-ImageBase64FromFile(
[string]
curl -L "https://go.microsoft.com/fwlink/?LinkID=760868" > /tmp/vscode.deb
sudo dpkg -i /tmp/vscode.deb && sudo apt-get install -f
@brunolm
brunolm / test.md
Last active November 5, 2020 02:15
aaaaaaa yo

foo bar

@brunolm
brunolm / .eslintrc
Last active April 7, 2021 21:20
.eslintrc (PascalCase for react)
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
@brunolm
brunolm / voicecommands.ahk
Created November 11, 2023 01:33
Windows Copilot commanded by voice (Cortana) WIN+F1 to toggle
#Persistent
#SingleInstance, Force
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
SetMouseDelay, -1
; Voice Command state
toggle := false
Menu, Tray, Icon, %A_ScriptDir%\IconFalse.ico