Skip to content

Instantly share code, notes, and snippets.

@umara123
umara123 / desqueeze.sh
Created June 25, 2024 21:59
Script to resize images taken with a 1.55 anamorphic lens. The script expects .heic files in the current directory and outputs 2 .jpg files for each - one which extends the width of the original file, and another version which downscales both height and width to meet a max megapixel count
#!/bin/bash
# Install dependencies on macos
# brew install imagemagick
# brew install exiftool
# Ensure ImageMagick is installed
if ! command -v magick &> /dev/null; then
echo "ImageMagick is not installed. Please install it to use this script."
exit 1
@umara123
umara123 / slate_emulator_simulator.sh
Last active May 16, 2018 09:11
Install and set up Slate to set position of Simulator and Emulator
cd /Applications && curl http://www.ninjamonkeysoftware.com/slate/versions/slate-latest.tar.gz | tar -xz
cd ~
cat > .slate.js << EOF
var pushRight = slate.operation("push", {
"direction" : "right",
"style" : "bar-resize:screenSizeX/3"
});
var pushRightTab = slate.operation("push", {
@umara123
umara123 / appium_clear_play_store_history.rb
Last active March 29, 2018 16:05
Quick script to remove history of all previously installed apps, useful when returning a shared group device
# You will need to have appium server installed and running, and the appium ruby gem installed
# appium 1.6.5
# appium_lib (9.4.3)
# Tested on Android 7.0, Google Play Store 7.9.80...
# To run the script connect a device with usb debugging enabled, then run at terminal:
# ruby appium_clear_play_store_history.rb
require 'appium_lib'