Skip to content

Instantly share code, notes, and snippets.

@yeroc
yeroc / usb-headset.sh
Last active March 10, 2017 18:05 — forked from ef4/usb-headset.sh
Automatically switch all PulseAudio streams to a USB headset
#!/bin/bash
# Adapted from Erik Johnson's script at
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/
#
# Updated by Edward Faulkner <ef@alum.mit.edu> to move existing
# streams and eliminate the extra fork script.
# You'll need to change these to point at your headset device. Get the device names by running
# 'pacmd dump'
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "CentOS 6.4 x86_64"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.4.2/centos64-x86_64-20140116.box"
config.vm.network :private_network, ip: "192.168.33.10"
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>${gwt.version}</version>
<configuration>
<!-- Errai defaults to writing cache files into .errai. Move inside the
Maven target directory... -->
<extraJvmArgs>-Xmx1500m -Derrai.devel.debugCacheDir=target/errai-cache</extraJvmArgs>
<!-- place the gwt-unitCache directory inside the maven target dir... -->
<persistentunitcachedir>target</persistentunitcachedir>
<!DOCTYPE html>
<div data-field="main" style="height: 100%">
<div id="main-map-toolbar" class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
<span class="glyphicon glyphicon-cog"></span> <span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right" role="menu">
<li><a role="menuitem" data-field="extendQuery" href="#">Extend</a>
<li><a role="menuitem" data-fieldx="refineQuery">Refine</a>
</ul>
@yeroc
yeroc / chrome-deps.patch
Created June 17, 2014 22:12
chrome-deps patch to resolve issue #2.
From 114655ee413a5b5c6b52381443f63339ff690031 Mon Sep 17 00:00:00 2001
From: Corey <corey@-------.org>
Date: Tue, 17 Jun 2014 22:06:00 +0000
Subject: [PATCH] Include libgio and libgobject libraries from the glib2 Fedora RPM to resolve an issue with a missing symbol: "g_dbus_proxy_new_for_bus".
---
chrome-deps.spec | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/chrome-deps.spec b/chrome-deps.spec
@yeroc
yeroc / EDSDK.h
Created February 14, 2011 18:25
Canon EOS SDK v2.9 Headers
/******************************************************************************
* *
* PROJECT : EOS Digital Software Development Kit EDSDK *
* NAME : EDSDK.h *
* *
* Description: PROTO TYPE DEFINITION OF EDSDK API *
* *
*******************************************************************************
* *
* Written and developed by Canon Inc. *
@yeroc
yeroc / config.jnaerator
Created February 4, 2011 21:21
JNAerator config for Canon's EDSDK
-o src
-arch WIN32
-noJar
-noComp
-runtime JNA
-package edsdk
-library EdSdk
$(EDSDK_HOME)/Windows/EDSDK/Header/EDSDK.h
$(EDSDK_HOME)/Windows/EDSDK/Header/EDSDKTypes.h
$(EDSDK_HOME)/Windows/EDSDK/Header/EDSDKErrors.h