Skip to content

Instantly share code, notes, and snippets.

@sztectus
sztectus / exiftool-snippets.sh
Last active November 13, 2023 12:34
Exiftool for Drone Mapping
# Find all photos with GPS, place in GPS/ folder
exiftool -if 'not ($gpslatitude eq "0.000000 N")' -c "%.6f" -directory=GPS .
# Find all photos without GPS, move to WithoutGPS/ folder
exiftool -if '($gpslatitude eq "0.000000 N")' -c "%.6f" -directory=WithoutGPS .
# Find all photos with gimbal pitch > -15 degrees, move to ExcludedPhotos/
exiftool -if 'not ($gimbalpitchdegree ge "-15.00")' -c "%.2f" -directory=ExcludedPhotos .
# Pefix all jpg files with string
@randria
randria / list.md
Last active November 13, 2023 12:32
Your Mac Environment

Update softwares

  • list available updates
    softwareupdate -l
    
  • to install updatables
    softwareupdate -i -a
    
@DayvitSiqueira
DayvitSiqueira / estados-do-brasil-lista.txt
Last active September 14, 2023 19:18
estados-do-brasil-lista
// Lista
AC, Acre
AL, Alagoas
AP, Amapá
AM, Amazonas
BA, Bahia
CE, Ceará
DF, Distrito Federal
ES, Espirito Santo
@dnozay
dnozay / My Exiftool Cheatsheet.md
Last active November 12, 2023 15:48 — forked from rjames86/My Exiftool Cheatsheet.md
Cheatsheet for image / video metadata manipulation.

Cheatsheet for image / video metadata manipulation.

Last updated 2019-07-24

Disclaimer

until more specific license...

THE CONTENT BELOW IS PROVIDED "AS-IS",
WE DISCLAIM LIABILITY FOR ALL USES TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW.
@SpenceDiNicolantonio
SpenceDiNicolantonio / TestUtil.cls
Last active December 20, 2023 19:29
[Salesforce ID generator] Generates 15-character Salesforce IDs for testing #salesforce #apex
/**
* A collection of static utility methods for unit testing.
*/
@IsTest
public class TestUtil {
// ID generator configuration
private static final Integer ID_RESERVED_CHARACTERS = 7;
private static final Integer ID_INCREMENTER_PREFIX_LENGTH = 1;
private static final String BASE62_ALPHABET = '0123456789abcdefghijklmnopqrstuvwqyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
@onlyforbopi
onlyforbopi / Python.Mod.openpyexceladv.py
Last active August 16, 2023 08:33
Python.Excel.ExcelHandling #python #Python #Excel #excel #ExcelHandling #openpyxl #pandas #PythonModules #modules Features: Openpyxl pandas 1. Get sheets of workbook : workbooksheets.py (Openpyxl) 2. Iterate over wo
# ##########
# CONVERTING BETWEEN COLUMN LETTERS (IE A2) AND NUMBERS IE (1, 2)
# Two methods :
# get_column_letter
# column_index_from_string
def xlsizerow(file_in, sheet_name):
import openpyxl
wb = openpyxl.load_workbook(file_in)
@connorclarklindh
connorclarklindh / facebook_messages_delete_imacros.iim
Created January 14, 2017 14:26
imacros code to automatically delete facebook messages
'these notes can be removed'
'this script requires the free chrome imacros plugin to run (http://imacros.net/overview)'
'updates to facebook messenger interface will likely break this and it will need to be rebuilt using a new recorded imacro.'
'i tested this on windows 10 using the most updated chrome browser (stable) as of 14/1/2017, future updates may break this.'
'i recommend copy-pasting the delete code as many times as you want to delete in one sitting. I did 20 at a time.'
'i also recommend using "play loop" and setting a loop according to the number of messages you have to delete. The messager page will reload on every loop.'
VERSION BUILD=844 RECORDER=CR
URL GOTO=https://www.facebook.com/messages/
@taylor224
taylor224 / run.py
Last active May 10, 2017 22:52
rclone Automatic Upload Script
#-*- coding: utf-8 -*-
import os
import subprocess
ROOT_DIR = '/home/user/data/'
REMOTE_ROOT_DIR = '/Documents/data/'
for dir in os.listdir(ROOT_DIR):
if not os.path.isdir(os.path.join(ROOT_DIR, dir)):
@wsaribeiro
wsaribeiro / update-rtorrent.sh
Created September 27, 2016 19:56 — forked from thde/update-rtorrent.sh
rTorrent install/update on Ubuntu 14.04
#!/bin/bash
# installs/updates rtorrent from source on Ubuntu
TMPDIR=$(mktemp -d)
mkdir $TMPDIR/logs
install_dependencies () {
apt-get update
apt-get install -y git subversion build-essential automake libtool libcppunit-dev zlib1g-dev libcurl4-openssl-dev libncurses5-dev
@tmaiaroto
tmaiaroto / Dockerfile
Last active June 30, 2022 08:48
WordPress on Amazon ECS
FROM alpine:3.3
MAINTAINER Tom Maiaroto <tom@outdoorsy.co>
# Install packages
RUN apk --update --repository http://dl-3.alpinelinux.org/alpine/edge/main add \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
php7 \