Skip to content

Instantly share code, notes, and snippets.

View buley's full-sized avatar
🤑

Tay buley

🤑
View GitHub Profile
@buley
buley / rtlsdr-osx.txt
Created March 25, 2016 20:11 — forked from jheasly/rtlsdr-osx.txt
Build RTL-SDR on OSX with no tears using homebrew. Forked from https://gist.github.com/0xabad1dea/5777726, a macports solution.
rtl-sdr build notes for OSX
using macports http://www.macports.org/
see http://sdr.osmocom.org/trac/wiki/rtl-sdr
brew install cmake
brew install libusb
brew install pkgconfig
brew install sox # for easy audio
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
@buley
buley / gist:71d5d0910e99d0c49c7a
Created December 7, 2015 08:06
Cancel all pending ("created") Travis-CI builds
javascript:window.jQuery.fn.reverse=[].reverse;window.jQuery(".icon.created").reverse().each(function(e,n){setTimeout(function(){var e=$(n).parent().attr("href"),t=e?window.open(e):{addEventListener:function(){}};t.addEventListener("load",function(){setTimeout(function(){t.jQuery(".button-circle-cancel").click()},3e3);setTimeout(function(){t.close()},2e4)})},5e3*e)});
@buley
buley / functions.php
Last active August 29, 2015 14:28 — forked from ChromeOrange/functions.php
Managing WooCommerce Product Tabs
<?php
/**
* Standard Tab Code from woocommerce-hooks.php
*/
/* Product page tabs */
add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 10 );
add_action( 'woocommerce_product_tabs', 'woocommerce_product_attributes_tab', 20 );
add_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30 );
add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_description_panel', 10 );
@buley
buley / gist:0eaf53993e0c4e6c1d35
Last active August 29, 2015 14:27 — forked from pbiggar/gist:3166676
Sample circle.yml file
########################
# Customize the test machine
########################
machine:
# Set the timezeone - any value from /usr/share/zoneinfo/ is valid here
timezone:
America/Los_Angeles
# Version of ruby to use
var currentTime = Date.now(),
dbName = "bugtest_" + currentTime,
indexes = [
{
name: "by_title",
path: "title",
unique: false
},
{
[root@machine ~]# systemctl status firewalld -l
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since Sun 2014-12-21 21:11:18 UTC; 20s ago
Main PID: 14707 (firewalld)
CGroup: /system.slice/firewalld.service
└─14707 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Dec 21 21:11:18 machine systemd[1]: Starting firewalld - dynamic firewall daemon...
Dec 21 21:11:18 machine systemd[1]: Started firewalld - dynamic firewall daemon.
#!/bin/bash
yum groupinstall -y "Development tools"
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel
cd /usr/local/src/
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2
tar xf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure --prefix=/usr/local
make && make altinstall
cd ..
@buley
buley / evil.js
Last active August 29, 2015 14:04
self-expanding iframe
window.parent.document.body.style.height = window.parent.innerHeight + 'px';
window.parent.document.getElementsByTagName('iframe')[0].setAttribute('height', window.parent.document.body.clientHeight +'px');
window.parent.document.getElementsByTagName('iframe')[0].setAttribute('width', window.parent.document.body.clientWidth + 'px');
window.document.getElementById("application-ad-handle").style.margin = ((document.body.clientHeight - window.document.getElementById("application-ad-handle").clientHeight)/2) + 'px auto 0 auto';
### Keybase proof
I hereby claim:
* I am buley on github.
* I am buley (https://keybase.io/buley) on keybase.
* I have a public key whose fingerprint is 84EB F8DF F47B D375 354A 1294 F3CA F861 1DC3 1DE9
To claim this, I am signing this object:
@buley
buley / gist:9edc099d51d298161d48
Created July 14, 2014 23:39
virtualizing pidora on os x
brew install qemu
cd /usr/local/Cellar/qemu/1.7.0/bin
wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu
./qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -hda ~/Downloads/Pidora-2014-R2-1/Pidora-2014-R2-1.img