Skip to content

Instantly share code, notes, and snippets.

View KellyLSB's full-sized avatar

Kelly Becker-Neuding KellyLSB

View GitHub Profile
diff -Naur GobiNet.old/GobiUSBNet.c GobiNet/GobiUSBNet.c
--- GobiNet.old/GobiUSBNet.c 2015-04-22 19:45:17.553791454 +0200
+++ GobiNet/GobiUSBNet.c 2015-04-22 19:46:29.299686755 +0200
@@ -66,11 +66,15 @@
#define DRIVER_AUTHOR "Qualcomm Innovation Center"
#define DRIVER_DESC "GobiNet"
+#ifdef bool
+#undef bool
+#endif
<snippet>
<tabTrigger>#=</tabTrigger>
<content><![CDATA[
###${1/./#/g}###
#= $1 =#
###${1/./#/g}###
]]></content>
</snippet>
@KellyLSB
KellyLSB / fifo_reader
Last active August 29, 2015 13:55
Sublime Text 2 Rspec Runner (Dir Traversal Version) with FIFO tools. `fifo_reader` and `fifo_writer` use namespaces to keep jobs seperate. The rspec plugin for Sumblime writes the the 'rspec' fifo and can be read using the `fifo_reader rspec` command. Killing this process clears the remaining items in the queue. `fifo_reader <space>` can also be…
#!/usr/bin/env zsh
PIPE="/tmp/$1.fifo"
# Create the FIFO
if [ ! -p $PIPE ]; then mkfifo -m 0777 $PIPE; fi
# Trap kill traps
trap "rm -f $PIPE" SIGINT
trap "rm -f $PIPE" SIGTERM
@KellyLSB
KellyLSB / gist:8186894
Created December 30, 2013 19:34
MySQL Compilation Instructions - Mac
# Installing MySQL From Source On MAc
1. Download the Generic Linux (Architecture Independent) Tar from (http://dev.mysql.com/downloads/mysql/)
2. Uncompress the archive `tar -xvf ~/Downloads/mysql-[BUILD].tar.gz`
3. Create a new build folder `mkdir -p ~/build/mysql`
4. Enter build folder `cd ~/build/mysql`
5. Run Cmake `cmake ~/Downloads/mysql-dir`
6. Allow source downloads `cmake . -DENABLE_DOWNLOADS=1`
7. Run make `make` (Will Error) as of 2013-12-30
8. Patch `~/Downloads/mysql-dir/source/source_downloads/gmock-1.6.0/gtest/include/gtest/internal/gtest-port.h`
export CFLAGS="-std=c++11 $CFLAGS"
export CFLAGS="-stdlib=libc++ $CFLAGS"
export CC="clang++"
alias clang++11="clang++ -std=c++11"
@KellyLSB
KellyLSB / ruby_post_process.py
Last active January 1, 2016 18:39
Ruby Post Processing Plugin for `Sublime Text 2` Place in `~/Library/Application Support/Sublime Text 2/Packages/User/ruby_post_process.py`
import sublime, sublime_plugin, os, re
class RubyPostProcess(sublime_plugin.EventListener):
def on_pre_save(self, view):
syntax = os.path.basename(view.settings().get('syntax'))
syntax = os.path.splitext(syntax)[0]
filepath = view.file_name()
filename = os.path.basename(filepath)
@KellyLSB
KellyLSB / Dockerfile
Last active January 1, 2016 02:29
Docker.io Ubuntu Sources.list
FROM ubuntu
MAINTAINER "Kelly Becker (kbecker@kellybecker.me)"
# Basic provisioning
RUN apt-get install apt-utils wget nano curl openssh-server
RUN wget --no-check-certificate https://gist.github.com/KellyLSB/8079486/raw/4d2b2f8e9b609258ef4f72ef13a50effd3bb224b/sources.list -O /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 16126D3A3E5C1192
RUN apt-get update
RUN apt-get dist-upgrade -y
/*
SublimeLinter default settings
*/
{
/*
Sets the mode in which SublimeLinter runs:
true - Linting occurs in the background as you type (the default).
false - Linting only occurs when you initiate it.
"load-save" - Linting occurs only when a file is loaded and saved.
---
us: %m/%d/%Y
@KellyLSB
KellyLSB / gist:7836185
Last active December 30, 2015 13:29
Change Ruby Symbol Keyed Hash Syntax on Save to the new Ruby 1.9.3 - 2.0 Syntax (Only changes symbol keys)
import sublime, sublime_plugin, os
class RubyPostProcess(sublime_plugin.EventListener):
def on_pre_save(self, view):
syntax = os.path.basename(view.settings().get('syntax'))
syntax = os.path.splitext(syntax)[0]
if syntax == "Ruby":
replacements = []
edit = view.begin_edit()