This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
bool LoadCustomFont(const std::string &fontPath) { | |
// Load the font from the specified file path | |
int numFontsAdded = AddFontResourceA(fontPath.c_str()); | |
if (numFontsAdded > 0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
jq -r '.db.entries[] | [.name, .issuer, .info.algo, .info.secret]| @tsv' <"$1" | | |
while IFS=$'\t' read -r name issuer algo secret; do | |
ykman oath accounts add -i "$issuer" -a "$algo" "$name" "$secret" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure that file is run as admin | |
Write-Host "Checking for elevated permissions..." | |
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Write-Warning "Insufficient permissions to run this script. Open the PowerShell console as an administrator and run this script again." | |
Break | |
} | |
else { | |
Write-Host "Script is running as administrator - go on executing the script..." -ForegroundColor Green | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Media_Play_Pause::ControlSend, ahk_parent, {Space}, ahk_exe mpv.exe | |
Media_Next::ControlSend, ahk_parent, {`>}, ahk_exe mpv.exe | |
Media_Prev::ControlSend, ahk_parent, {`<}, ahk_exe mpv.exe | |
<+Volume_Up::ControlSend, ahk_parent, {0}, ahk_exe mpv.exe | |
<+Volume_Down::ControlSend, ahk_parent, {9}, ahk_exe mpv.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[array]$data = code --list-extensions | |
$file = ".\codeExtensions.html" | |
Write-Output '<details>' > $file | |
Write-Output ' <summary>' >> $file | |
Write-Output ' VSCode Extensions' >> $file | |
Write-Output ' </summary>' >> $file | |
Write-Output ' <ul>' >> $file | |
for ($i = 0; $i -lt $data.length; $i++) { | |
Write-Output (' <li>' + '<a href="https://marketplace.visualstudio.com/items?itemName=' + $data[$i] + '">' + $data[$i] + '</a></li>') >> $file | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
# $errorActionPreference = 'Stop' | |
# if (Test-Path $PSScriptRoot/update_vars.ps1) { . $PSScriptRoot/update_vars.ps1 } | |
# else { Write-Error 'Var file doesn''t exists' -Category ResourceUnavailable} | |
$darkChibiHoodie = [PSCustomObject]@{ | |
Name = '"Dark Chibi" Hoodie' | |
Link = 'https://loliparadise.com/kolekcja/ubrania/dark-chibi-hoodie' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# install FriaCode Nerd Font | |
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip | |
unzip FiraCode.zip -d ~/.fonts | |
cd ~/.fonts | |
rm -v !("*.otf"|"Fira Code*") | |
fc-cache -fv | |
sudo add-apt-repository ppa:neovim-ppa/unstable | |
sudo apt-get update |