Skip to content

Instantly share code, notes, and snippets.

View langheran's full-sized avatar
🎧
Automation Ninja 🐱‍👓

Nisim Hurst-Tarrab langheran

🎧
Automation Ninja 🐱‍👓
View GitHub Profile
@langheran
langheran / ku.cmd
Created March 31, 2025 16:21
C:\Users\NisimHurst\NDS\scripts\cmds\ku.cmd
@echo off
@REM kubectl config rename-context aksympdescbscus yomp
@REM kubectl config set-context --current --namespace=yompqa
@REM kubectl config use-context yomp
kubectl config get-contexts
kubectl config use-context %*
kubectl config get-contexts
@langheran
langheran / ps.cmd
Created March 26, 2025 16:41
C:\Users\NisimHurst\NDS\scripts\cmds\ps.cmd
@echo off
powershell %*
@langheran
langheran / ks.cmd
Created March 26, 2025 16:41
C:\Users\NisimHurst\NDS\scripts\cmds\ks.cmd
@echo off
@REM kubectl config rename-context aksympdescbscus yomp
@REM kubectl config set-context --current --namespace=yompqa
@REM kubectl config use-context yomp
@REM kubectl config use-context %*
kubectl config get-contexts
@langheran
langheran / remove_alpha.bat
Created March 26, 2025 16:23
C:\Users\NisimHurst\NDS\scripts\remove_alpha.bat
convert "calculo costo.png" -background white -alpha remove -alpha off calculo_costo_2.png
@langheran
langheran / pipdeps.cmd
Created March 19, 2025 18:27
C:\Users\NisimHurst\NDS\scripts\cmds\pipdeps.cmd
@echo off
call .\venv\Scripts\activate.bat
@REM pip install pipdeptree
echo ========================
echo Installed packages
echo ========================
pip show %*
echo ========================
@langheran
langheran / pod_logs.ps1
Created March 19, 2025 00:59
C:\Users\NisimHurst\NDS\scripts\cmds\pod_logs.ps1
# read parameters from the command line
param(
[string]$namespace = "default",
[string]$pattern = "",
[bool]$previous = $false
)
# check if pattern has a space and if so, split it in two and use the first part
$container = ""
if ($pattern.Contains(" ")) {
@langheran
langheran / alarm.js
Created March 16, 2025 17:35
C:\Users\Nisim Hurst\Downloads\sunrise set alarm tasker\sunrise.js
function addOrSubtractMinutes(timeString, minutesToAddOrSubtract) {
var timeParts = timeString.split(':');
var hours = parseInt(timeParts[0], 10);
var minutes = parseInt(timeParts[1], 10);
var date = new Date();
date.setHours(hours);
date.setMinutes(minutes + minutesToAddOrSubtract);
var newHours = date.getHours();
@langheran
langheran / sh_pod.ps1
Last active March 19, 2025 01:18
C:\Users\NisimHurst\NDS\scripts\cmds\sh_pod.ps1
# read parameters from the command line
param(
[string]$namespace = "default",
[string]$pattern = "",
[bool]$previous = $false
)
# check if pattern has a space and if so, split it in two and use the first part
$container = ""
if ($pattern.Contains(" ")) {
@langheran
langheran / sh_pod.ps1
Created March 14, 2025 23:17
C:\Users\NisimHurst\NDS\scripts\cmds\sh_pod.ps1
# read parameters from the command line
param(
[string]$namespace = "default",
[string]$pattern = "",
[bool]$previous = $false
)
# check if pattern has a space and if so, split it in two and use the first part
$container = ""
if ($pattern.Contains(" ")) {
@langheran
langheran / SumatraPDF-settings.txt
Last active March 12, 2025 20:55
C:\Users\NisimHurst\Utilities\SumatraPDF\SumatraPDF-settings.txt
# For documentation, see https://www.sumatrapdfreader.org/settings3.2.html
MainWindowBackground = #80fff200
EscToExit = false
ReuseInstance = false
UseSysColors = false
RestoreSession = true
FixedPageUI [
TextColor = #000000