Skip to content

Instantly share code, notes, and snippets.

@ajthemacboy
ajthemacboy / movedigiphotos.bash
Last active May 2, 2017 23:59 — forked from jvhaarst/movedigiphotos.bash
Bash script to move images, based on exif data and file timestamp
#!/bin/bash
# Reads EXIF creation date from all .JPG files in the
# current directory and moves them carefully under
#
# $BASEDIR/YYYY/YYYY-MM/YYYY-MM-DD/
#
# ...where 'carefully' means that it does not overwrite
# differing files if they already exist and will not delete
# the original file if copying fails for some reason.
"C:\Program Files\pia_manager\openvpn.exe" "--client" "--persist-key" "--persist-tun" "--comp-lzo" "yes" "--dev" "tun" "--script-security" "2" "--remote" "104.156.240.151" "500" "--auth-user-pass" "C:\Program Files\pia_manager\data\user_pass.txt" "--writepid" "C:\Program Files\pia_manager\log\openvpn.pid" "--proto" "tcp-client" "--nobind" "--management" "127.0.0.1" "31749" "--log-append" "C:\Program Files\pia_manager\log\openvpn.log" "--remote-cert-tls" "server" "--cipher" "none" "--auth" "none" "--ca" "C:\Program Files\pia_manager\data\ca.crt" "--sndbuf" "262144" "--rcvbuf" "262144" "--tls-remote" "520413d7335snipc6476snip4331ac5a" "--pia-signal-settings" "--plugin" "C:\Program Files\pia_manager\pia-openvpn.dll" "--block-outside-dns"
1.7.10-Pistronics2-v0.6.4.jar
adventurebackpack-1.7.10-0.8c.jar
ae2stuff-0.5.1.61-mc1.7.10.jar
AgriCraft-1.7.10-1.5.0.jar
appliedenergistics2-rv3-beta-6.jar
baconators-1.7.10-2.0.3.jar
bdlib-1.9.4.109-mc1.7.10.jar
BiblioCraft[v1.11.5][MC1.7.10].jar
BiblioWoods[BiomesOPlenty][v1.9].jar
BiblioWoods[Forestry][v1.7].jar
Default config
===============
aj@mediaserv:~/openvpn$ sudo openvpn --config usflorida.ovpn
Sat Oct 22 20:01:00 2016 OpenVPN 2.3.11 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2016
Sat Oct 22 20:01:00 2016 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Sat Oct 22 20:01:00 2016 WARNING: file '/home/aj/login.txt' is group or others accessible
Sat Oct 22 20:01:00 2016 Attempting to establish TCP connection with [AF_INET]108.61.226.34:502 [nonblock]
Sat Oct 22 20:01:01 2016 TCP connection established with [AF_INET]108.61.226.34:502
aj@aj-xubuntu:~/dev/Multiverse-Core$ mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Multiverse-Core 2.5
[INFO] ------------------------------------------------------------------------
Downloading: https://hub.spigotmc.org/nexus/content/repositories/snapshots/org/spigotmc/spigot-api/1.9-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: https://hub.spigotmc.org/nexus/content/groups/public/org/spigotmc/spigot-api/1.9-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: http://repo.onarandombox.com/content/groups/public/org/spigotmc/spigot-api/1.9-R0.1-SNAPSHOT/maven-metadata.xml
Downloading: http://nexus.theyeticave.net/content/repositories/pub_releases/org/spigotmc/spigot-api/1.9-R0.1-SNAPSHOT/maven-metadata.xml
//gmask 59,141,142,31,38,175
//gmask 60,1,2,13,3:2,3
//brush sphere 2,13,4,13,13,4,2,2,2,2,2,2,13,13,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2 5
Exception in thread "main" java.lang.ClassCastException: jdk.internal.loader.ClassLoaders$AppClassLoader (in module: java.base) cannot be cast to java.net.URLClassLoader (in module: java.base)
at net.minecraft.launchwrapper.Launch.<init>(Launch.java:33)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
plex@ubuntu-acer:~/dev/sonar1/Sonarr$ git submodule init && git submodule update
Submodule 'src/ExternalModules/CurlSharp' (https://github.com/Sonarr/CurlSharp.git) registered for path 'src/ExternalModules/CurlSharp'
Cloning into 'src/ExternalModules/CurlSharp'...
remote: Counting objects: 400, done.
remote: Total 400 (delta 0), reused 0 (delta 0), pack-reused 400
Receiving objects: 100% (400/400), 8.02 MiB | 4.61 MiB/s, done.
Resolving deltas: 100% (195/195), done.
Checking connectivity... done.
Submodule path 'src/ExternalModules/CurlSharp': checked out 'cfdbbbd9c6b9612c2756245049a8234ce87dc576'
@ajthemacboy
ajthemacboy / checker.py
Created March 18, 2016 19:12
Sucky checker script
from mcstatus import MinecraftServer
with open('serverlist.txt') as f:
for line in f:
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234)
server = MinecraftServer.lookup(line)
try:
# 'status' is supported by all Minecraft servers that are version 1.7 or higher.
status = server.status()
@ajthemacboy
ajthemacboy / checker.py
Created March 18, 2016 19:12
Sucky checker script
from mcstatus import MinecraftServer
with open('serverlist.txt') as f:
for line in f:
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234)
server = MinecraftServer.lookup(line)
try:
# 'status' is supported by all Minecraft servers that are version 1.7 or higher.
status = server.status()