Skip to content

Instantly share code, notes, and snippets.

View matti's full-sized avatar
🎯
Focusing

Matti Paksula matti

🎯
Focusing
View GitHub Profile
@matti
matti / adb.md
Last active April 3, 2018 08:25
am start PACKAGE_NAME/main
reboot
pm dump PACKAGE_NAME | grep -A 1 MAIN
am force-stop PACKAGE_NAME
dumpsys window windows | grep mCurrentFocus

pm list packages

idevicediagnostics restart
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'platform=iOS,name=Riku' test
curl -X POST -d '{"desiredCapabilities":{"bundleId":"com.apple.mobilesafari", "arguments": ["-u", "http://www.example.com"]}}' $DEVICE_URL/session
/usr/local/Cellar/ios-webkit-debug-proxy/1.8/bin/ios_webkit_debug_proxy
ios-webkit-debug-proxy/examples/wdp_client.html

failed

ideviceimagemounter /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.0/DeveloperDiskImage.dmg

#!/usr/bin/env sh
set -e
if [ "SKAFFOLDER_DEBUG" = "yes" ]; then
set +x
fi
Watchdog() {
pid=$1; shift
while true; do
@matti
matti / gist:ec54d4c110672289e5f9c1f09e7e8c6d
Created November 12, 2018 07:47
skaffolder-install.sh
#!/usr/bin/env sh
set -e
apt-get update && apt-get install -y curl
curl https://gist.githubusercontent.com/matti/ac4dd1c49225c693880457a604f615ab/raw/8198b6993124c681a77838a93fcd7c9bf731c1c6/skaffolder.sh > /skaffolder.sh
chmod +x skaffolder.sh
apt-get purge curl
rm -rf /var/lib/apt/lists/*

firefoxilla: https://www.google.com/chrome/

  • lataa & asenna chrome.

terminaalissa:

vaihdetaan pääkäyttäjäksi:

sudo su

sitten asennetaan tarvittat paketit rubyyn:

@matti
matti / 00-wt75-terminal.txt
Last active January 7, 2019 09:36
wyse75 serial port terminal
aa
# source before -u
. /usr/local/opt/asdf/asdf.sh
asdf_tool_versions_path="$(dirname "$(readlink "$0")")/../.tool-versions"
asdf_tool_versions_content=$(cat "$asdf_tool_versions_path")
IFS=$'\n'
for line in $asdf_tool_versions_content; do
name=$(echo "$line" | cut -d' ' -f1)
version=$(echo "$line" | cut -d' ' -f2)
@matti
matti / quad.py
Created October 27, 2019 08:07
iterm2 quad panes
#!/usr/bin/env python3.7
import asyncio
import iterm2
async def main(connection):
app = await iterm2.async_get_app(connection)
topLeft = app.current_terminal_window.current_tab.current_session
topRight = await topLeft.async_split_pane(vertical=True)