Skip to content

Instantly share code, notes, and snippets.

View gik0geck0's full-sized avatar

Matt Buland gik0geck0

View GitHub Profile
#!/bin/bash
# Use ImageMagick/convert to resize any image (e.g. 64mp samsung phone photos) down to a slack-friendly target megapixel count
targetMegapixel=35
inputResolution=$(identify $1 | awk '{print $3}')
x=${inputResolution%%x*}
y=${inputResolution#*x}
newResolution=$(python3 -c "import math; x=$x; y=$y; scaleFactor = ($targetMegapixel * 1000000.0)/(x*y); print('%sx%s' % (math.floor(x*scaleFactor), math.floor(y*scaleFactor)))")
fileName=${1%%.*}
fileExtension=${1#*.}
@gik0geck0
gik0geck0 / appium_anchor_target.log
Created September 13, 2016 20:08
Appium testing anchor with target logs
[Appium] Welcome to Appium v1.5.3 (REV aa747b915a080633e626cd741fa8f74ae6c5c9d8)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platform":"MAC","platformVersion":"9.3","deviceName":"iPhone 6","platformName":"iOS","browserName":"safari","version":""}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platform":"MAC","platfor...
[Appium] Creating new IosDriver session
[Appium] Capabilities:
[Appium] platform: 'MAC'
[Appium] platformVersion: '9.3'
[Appium] deviceName: 'iPhone 6'
[Appium] platformName: 'iOS'
#!/usr/bin/env python3
import sys
# This program parses xev input from stdin, and displays an "arguably"
# easy to read key-press
ctrl = False
shift = False

Keybase proof

I hereby claim:

  • I am gik0geck0 on github.
  • I am gik0geck0 (https://keybase.io/gik0geck0) on keybase.
  • I have a public key whose fingerprint is 623F A0DD 25F3 FF94 70F3 0B92 B722 0B90 D7AA 2479

To claim this, I am signing this object:

xmodmap -e 'keysym Super_L = Escape'