Skip to content

Instantly share code, notes, and snippets.

View sryze's full-sized avatar

Sergey Zolotarev sryze

View GitHub Profile
@sryze
sryze / bashdo.bat
Last active November 11, 2023 09:33
Quickly run a shell command inside Git Bash from command prompt / PowerShell on Windows (without manually opening a new Git Bash instance)
@echo off
REM Usage: bashdo echo 'hello, world!'
REM Caution: it doesn't work well if there are double quotes in your Bash commands (need to figure out how to escape them).
"%ProgramFiles%\Git\bin\bash.exe" -l -c "%*"
@sryze
sryze / convert-app-icon-ios.sh
Last active May 4, 2024 22:42
Convert app icon from a single PNG to different sizes for iOS
#!/bin/bash
# Install ImageMagick before using this script: brew install imagemagick (for the convert command)
# This script works in Bash, but not in ZSH.
sizes="
40x40
60x60
58x58
87x87