Skip to content

Instantly share code, notes, and snippets.

@trentster
trentster / gist:b56b69cbd2ff6b094c57
Created September 19, 2015 00:28
LinuxCNC Wheezy Autologin
sudo /usr/lib/i386-linux-gnu/lightdm/lightdm-set-defaults --autologin yourusername
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
$sites = array(
array('id' => Constants\SiteIds::US, 'name' => 'United States'),
array('id' => Constants\SiteIds::ENCA, 'name' => 'Canada (English)'),
import ebaysdk
from ebaysdk import finding
api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>')
api.execute('findItemsAdvanced', {
'keywords': 'laptop',
'categoryId' : ['177', '111422'],
'itemFilter': [
{'name': 'Condition', 'value': 'Used'},
@trentster
trentster / Makefile
Last active August 29, 2015 14:16 — forked from Licenser/Makefile
VERSION=0.6.2
COMPONENT=fifo-jingles
FILE=$(COMPONENT)-$(VERSION)$(SUFFIX)
BLOCK_SIZE=65536
.PHONY: build_info package package_list
package_list:
echo "@pkgdep nginx>=1.3.13" > packlist
(cd ../../; find LICENSE* -type f | sort) >> packlist
@trentster
trentster / designer.html
Created December 5, 2014 04:56
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-leaderboard.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@trentster
trentster / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@quick-20140826T091507Z 0 - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@quick-20140826T093007Z 0 - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@quick-20140826T094507Z 0 - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@quick-20140826T100011Z
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@hourly-20140825T230010Z 47.3K - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@hourly-20140826T000033Z 0 - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@hourly-20140826T010009Z 47.3K - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@hourly-20140826T020009Z 47.3K - 1.29G -
zones/ab782da0-53d7-4a1d-99d5-738e09bfbaf2@hourly-20140826T030010Z 47.3K - 1.29G -
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/freeswitch' type='service' version='0'>
<create_default_instance enabled='true'/>
<dependency name='dep0' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/milestone/multi-user:default'/>
</dependency>
<exec_method name='start' type='method' exec='/usr/local/freeswitch/bin/freeswitch -nc -nonat' timeout_seconds='20'>
<method_context>
#
# Joyent Percona configuration, based on my-large.cnf
#
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
default-character-set = utf8
@trentster
trentster / opt-local-bin-chunter
Created February 2, 2014 02:54
fix chunter maintenance mode.
#!/bin/sh
# -*- tab-width:4;indent-tabs-mode:nil -*-
# ex: ts=4 sw=4 et
RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd)
RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*}
RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc
RUNNER_LOG_DIR={{log_path}}
# Note the trailing slash on $PIPE_DIR/