- list available updates
softwareupdate -l
- to install updatables
softwareupdate -i -a
# 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 |
// Lista | |
AC, Acre | |
AL, Alagoas | |
AP, Amapá | |
AM, Amazonas | |
BA, Bahia | |
CE, Ceará | |
DF, Distrito Federal | |
ES, Espirito Santo |
/** | |
* 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'; |
# ########## | |
# 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) |
'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/ |
#-*- 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)): |
#!/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 |
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 \ |