Linux Mint cinnamon desktop ISO written to USB with Balena Etcher.
Boot using F12 key to select USB drive.
Linux Mint cinnamon desktop ISO written to USB with Balena Etcher.
Boot using F12 key to select USB drive.
#!/bin/bash | |
# Rename a file with a UUID, preserve the extension. | |
# Usage: | |
# mvuuid.sh TEST.JPG | |
# Output example: | |
# 887D830A-AE74-4835-8990-760908125E0B.JPG | |
mv $1 `uuidgen`."${1##*.}" |
#!/bin/bash | |
# Rename a file with a UUID, preserve the extension. | |
# Usage: | |
# mvuuid.sh TEST.JPG | |
# Output example: | |
# 887D830A-AE74-4835-8990-760908125E0B.JPG | |
mv $FILE `uuidgen`."${FILE##*.}" |
# Run in QGIS | |
# Save all the layouts as PNG files from the current project. | |
outurl = '/Users/USERNAME/' # using ~ does not work? | |
outformat = '.png' | |
outdpi = 200 | |
manager = QgsProject.instance().layoutManager() | |
for layout in manager.printLayouts(): | |
print('Saving: ' + layout.name()) | |
layout = manager.layoutByName(layout.name()) |
<!DOCTYPE model> | |
<Option type="Map"> | |
<Option type="Map" name="children"> | |
<Option type="Map" name="grass7:v.clean_1"> | |
<Option type="bool" value="true" name="active"/> | |
<Option name="alg_config"/> | |
<Option type="QString" value="grass7:v.clean" name="alg_id"/> | |
<Option type="QString" value="v.clean - Toolset for cleaning topology of vector map." name="component_description"/> | |
<Option type="double" value="157" name="component_pos_x"/> | |
<Option type="double" value="185" name="component_pos_y"/> |
This is a brief guide to using ExifTool to geotag a folder of images.
brew install exiftool
sudo apt install exiftool
Example:
# RCurl needed for Google Docs access. | |
require(RCurl) | |
# The URL obtained by File|Publish to web then select csv: | |
u <- "https://docs.google.com/spreadsheet/pub?hl=en_GB&hl=en_GB& | |
key=0AmFzIcfgCzGFdHQ0eEU0MWZWV200RjgtTXVMY1NoQVE | |
&single=true&gid=4&output=csv" | |
con <- getURL(u, ssl.verifypeer=FALSE) | |
i <- read.csv(textConnection(con)) # Read the file. |
# set.seed(42) | |
X = 25 | |
Y = 26 | |
N = 100 | |
set.sd = 5 | |
set <- rnorm(N, Y, set.sd) | |
set.left <- set[set < X] | |
set <- c(set.left, X + (X - set.left)) |
for (i in 1:10) { | |
kid.img <- system.time(dem <- raster("~/workspace/TEMP/kideporegion.img")) | |
kid.asc <- system.time(dem <- raster("~/workspace/TEMP/kideporegion.asc")) | |
kid.tiffdeflate <- system.time(dem <- raster("~/workspace/TEMP/kideporegion_deflate.tif")) | |
kid.tiffnone <- system.time(dem <- raster("~/workspace/TEMP/kideporegion_none.tif")) | |
kid.tif <- system.time(dem <- raster("~/workspace/TEMP/kideporegion.tif")) | |
kid.tifpack <- system.time(dem <- raster("~/workspace/TEMP/kideporegion_pack.tif")) | |
kid.times <- data.frame(as.list(kid.img)) | |
kid.times[2,] <- as.list(kid.asc) |