Skip to content

Instantly share code, notes, and snippets.

View thomastraum's full-sized avatar
💭
Still on it

Thomas Traum thomastraum

💭
Still on it
View GitHub Profile
import ftrack_api
import os
import requests
import logging
import mimetypes
class DownloadAnyVersion(object):
label = "Download MP4 and Image Reviews"
identifier = "download.mp4.and.image.reviews"
import os
import argparse
import fnmatch
import time
from datetime import timedelta
from pathlib import Path
import logging
def delete_files(root_dir: Path, extension: str, dry_run=True):
files_processed = 0
=> Logs:
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1228 }
{ removed: 103, updated: 1240 }
{ removed: 103, updated: 1240 }
{ removed: 103, updated: 1240 }
------------------------------------STDERR------------------------------------
Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 172.17.0.8 port 3000: Connection refused
=> Logs:
{ removed: 0, updated: 76 }
{ removed: 0, updated: 76 }
{ removed: 0, updated: 76 }
{ removed: 0, updated: 79 }
{ removed: 0, updated: 79 }
{ removed: 0, updated: 84 }
Started TaskList: Pushing Meteor App
[178.79.140.209] - Pushing Meteor App Bundle to the Server
[178.79.140.209] - Pushing Meteor App Bundle to the Server: SUCCESS
[178.79.140.209] - Prepare Bundle
[178.79.140.209] - Prepare Bundle: SUCCESS
Started TaskList: Configuring App
[178.79.140.209] - Pushing the Startup Script
[178.79.140.209] - Pushing the Startup Script: SUCCESS
[178.79.140.209] - Sending Environment Variables
'use strict';
const puppeteer = require('puppeteer');
const Push = require( 'pushover-notifications' );
const p = new Push( {
user: '',
token: '',
});
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { check } from 'meteor/check';
import SimpleSchema from 'simpl-schema';
// import Collections2 from 'collection2';
export const Things = new Mongo.Collection('things');
const schema = new SimpleSchema({
owner: {type: String, regEx: SimpleSchema.RegEx.Id, optional: false},
name:{type:String},
status_code: OK
status_msg: All images in request have completed successfully.
meta:
tag:
timestamp: 1457610016.89178
model: general-v1.3
config: 34fb1111b4d5f67cf1b8665ebc603704
results:
-
docid: 15512461224882630000
@thomastraum
thomastraum / output
Last active November 17, 2015 14:42
curl -ig "http://dev.thomastraum.com/wp-json/posts?type=tt_news&filter[posts_per_page]=20" | prettyjson
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45456 0 45456 0 0 190k 0 --:--:-- --:--:-- --:--:-- 191k
HTTP/1.1 200 OK
Date: Tue, 17 Nov 2015 14:42:08 GMT
Server: Apache/2.4.16 (Unix) PHP/5.5.29
X-Powered-By: PHP/5.5.29
X-Pingback: http://dev.thomastraum.com/xmlrpc.php
X-Content-Type-Options: nosniff
@thomastraum
thomastraum / rendercompressandupload.sh
Last active August 29, 2015 13:57
rendercompressandupload, render in ae, compress, move to dropbox folder
#!/bin/bash
# Assumptions!
# - Current directory is the same as the one AE renders to
# - Inside this directory is a directory called 'handbraked',
# where we move the files which already have been compressed to
OUTPUTDIR="" # where should handbrake move the files to when done
AEPROJECT='' # where is your project, full path
AERENDERER='' # where is AERENDER executable, for example /Applications/Adobe After Effects CS6/AErender