This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure iphone is unlocked before running this script | |
# You will need to install the following on your ubuntu machine first: | |
# sudo apt install libimobiledevice6 libimobiledevice-utils ifuse | |
# | |
# Based off of: https://wuzhaojun.wordpress.com/2021/03/19/memo-of-backup-iphones-photos-in-ubuntu-20-04/ | |
cd | |
# Pair | |
echo "Pairing iphone" | |
idevicepair pair |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# ./track_memory.sh 100 | |
# Which will record the memory usage (in Mb) for 100 seconds | |
#!/bin/bash | |
x=1 | |
free -h| grep free > memory.txt | |
while [ $x -le $1 ] | |
do | |
free -m | grep Mem: >> memory.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cwd=$(pwd) | |
start=$SECONDS | |
suffix=".ply" | |
foo=$1 | |
filePrefix=${foo%"$suffix"} | |
output="meshed-$filePrefix-depth$2-trim$3.ply" | |
outputLog="meshed-$filePrefix-depth$2-trim$3.log" | |
cmd="docker run -w /working -v $cwd:/working colmap/colmap:latest colmap poisson_mesher --PoissonMeshing.depth $2 --PoissonMeshing.trim $3 --input_path $1 --output_path $output" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# GoogleMapDownloader.py | |
# Created by Hayden Eskriett [http://eskriett.com] | |
# | |
# A script which when given a longitude, latitude and zoom level downloads a | |
# high resolution google map | |
# Find the associated blog post at: http://blog.eskriett.com/2013/07/19/downloading-google-maps/ | |
import urllib | |
from PIL import Image |