Skip to content

Instantly share code, notes, and snippets.

# Name: EXIFmover.py
# Author: Brian Klug (@nerdtalker / brian@brianklug.org)
# Purpose:
# Move Files into directory based on EXIF data make and model
# Designed to un-clusterfuck the Dropbox camera upload directory which is a mess of every
# JPEG and PNG ever if you use it like I do on a bunch of phones, and thus totally unwieldy
# and full of images sorted by date or else nothing sometimes, dropbox seems nondeterminstic
# Moves files into /[Image Make]+[Image Model]/ eg /Camera Uploads/LGE Nexus 4/
#!/bin/sh
# Warranty request script for Dell PCs
# Written by Adam Nielsen <adam.nielsen@uq.edu.au>
# This code is in the public domain, and is supplied with no warranty.
#
# This script uses Dell's web service to retrieve the most distant warranty expiration
# date for a given machine, as identified by its service tag. It requires curl and awk.
# It doesn't parse the WSDL or anything nice like that, it just sends a precomposed
# request to the server and extracts the relevant info from the response.
#!/bin/bash
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
# Directory where everything happens
DIR=~/work/virt-install
# The image downloaded from the http://fedoraproject.org/en/get-fedora#clouds site
@verdurin
verdurin / R-3.2.3-pescobar.eb
Last active February 24, 2016 07:19 — forked from anonymous/file1.txt
gistcli - Paste
#
# This EasyBuild config file for R was generated with generateEasyConfig.R
#
name = 'R'
version = '3.2.3'
versionsuffix = '-bare'
homepage = 'http://www.r-project.org/'
description = """R is a free software environment for statistical computing and graphics."""
@verdurin
verdurin / gist:b2d5ed3f16f031a215b2
Created March 27, 2016 10:47
sanity_check failure for RSeQC
== 2016-03-27 11:38:58,419 build_log.py:152 ERROR Sanity check failed: RSeQC failed to install, cmd '/home/adam/.local/easybuild/software/Python/2.7.10-foss-2015b/bin/python -c "import rseqc"' (stdin: None) output: Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named rseqc
(at easybuild/software/EasyBuild/2.7.0/lib/python2.7/site-packages/easybuild_framework-2.7.0-py2.7.egg/easybuild/framework/easyblock.py:1887 in _sanity_check_step)
@verdurin
verdurin / test.txt
Last active April 8, 2016 10:58
test123
This is just a test
@verdurin
verdurin / test.txt
Created April 9, 2016 10:57
test123
This is just a test
@verdurin
verdurin / test.txt
Created April 30, 2016 07:46
test123
This is just a test
/home/adam/.local/easybuild/software/Python/2.7.11-foss-2015b/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
Checking .pth file support in /tmp/eb-nL1WgO/tmplhuFnn/lib/python2.7/site-packages
/home/adam/.local/easybuild/software/Python/2.7.11-foss-2015b/bin/python -E -c pass
TEST FAILED: /tmp/eb-nL1WgO/tmplhuFnn/lib/python2.7/site-packages does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
== 2016-08-31 16:27:09,516 easyblock.py:2138 INFO Running method build_step part of step build
== 2016-08-31 16:27:09,541 build_log.py:152 ERROR Traceback (most recent call last):
File "/camp/apps/eb/software/EasyBuild/2.8.2/lib/python2.7/site-packages/easybuild_framework-2.8.2-py2.7.egg/easybuild/main.py", line 114, in build_and_install_software
(ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
File "/camp/apps/eb/software/EasyBuild/2.8.2/lib/python2.7/site-packages/easybuild_framework-2.8.2-py2.7.egg/easybuild/framework/easyblock.py", line 2363, in build_and_install_one
result = app.run_all_steps(run_test_cases=run_test_cases)
File "/camp/apps/eb/software/EasyBuild/2.8.2/lib/python2.7/site-packages/easybuild_framework-2.8.2-py2.7.egg/easybuild/framework/easyblock.py", line 2279, in run_all_steps
self.run_step(step_name, step_methods)
File "/camp/apps/eb/software/EasyBuild/2.8.2/lib/python2.7/site-packages/easybuild_framework-2.8.2-py2.7.egg/easybuild/framework/easyb