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
/*
This is my hacked up copy of Marked.app/Contents/Resources/gridless.css
Changes:
1. Smaller headings
2. ~~No scrollbars~~ (I now prefer the Lion default behavior)
3. Styling of definition lists ala LaTeX description lists.
4. Centering h1.title, h3.author, h4.date (pandoc's title/author/date block).
@thomastraum
thomastraum / compressandupload.sh
Last active November 16, 2015 03:29
watch files, compress with handbrake, and move to a folder, for example a Dropbox folder.
#!/bin/bash
# use with 'fswatch . ./compressandupload.sh'
# https://github.com/alandipert/fswatch
# moves compressed files to a sub dir called "handbraked", which you need to create first
echo "---------- starting"
OUTPUTDIR="/your/path/here"
FILES=*
for f in $FILES
@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
@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
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
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},
'use strict';
const puppeteer = require('puppeteer');
const Push = require( 'pushover-notifications' );
const p = new Push( {
user: '',
token: '',
});
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
------------------------------------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 }
=> 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 }