Skip to content

Instantly share code, notes, and snippets.

trentster trentster

Block or report user

Report or block trentster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@trentster
trentster / gist:b56b69cbd2ff6b094c57
Created Sep 19, 2015
LinuxCNC Wheezy Autologin
View gist:b56b69cbd2ff6b094c57
sudo /usr/lib/i386-linux-gnu/lightdm/lightdm-set-defaults --autologin yourusername
View get_ebay_details.php
<?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)'),
View finding.py
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'},
View 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
View designer.html
<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%;
View designer.html
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
View gist:8b551e047f35c4ab42b8
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 -
View freeswitch-nonat.xml
<?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>
View blah.sql
#
# 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 Feb 2, 2014
fix chunter maintenance mode.
View opt-local-bin-chunter
#!/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/
You can’t perform that action at this time.