Skip to content

Instantly share code, notes, and snippets.

View gyaresu's full-sized avatar

Gareth gyaresu

View GitHub Profile
@27Bslash6
27Bslash6 / phantom-docker-daemon.sh
Last active August 29, 2015 14:23
How does the docker daemon respond if it's not running?
# Ubuntu 14.10
uname -a
## Linux box 3.16.0-41-lowlatency #55-Ubuntu SMP PREEMPT Sun Jun 14 18:59:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
## Ubuntu 14.10 \n \l
# Latest Docker development version
docker -v
## Docker version 1.7.0-dev, build 6a7a757
@gyaresu
gyaresu / bots
Created July 25, 2015 20:25
bot servo test
var five = require('johnny-five')
var board = new five.Board()
board.on('ready', function () {
var servo = new five.Servo(9)
board.repl.inject({
servo: servo
})
@johnnyji
johnnyji / partytime.js
Created July 25, 2015 21:56
It's Party Time
var sys = require("sys");
var exec = require('child_process').exec;
var five = require('johnny-five');
var board = new five.Board();
function puts(err, stdout, stderr) { sys.puts(stdout) };
board.on('ready', function() {
console.log("board ready");
var button = new five.Button(5);
@joseluisq
joseluisq / .eslintrc
Last active June 22, 2016 07:10 — forked from ghostwords/.eslintrc
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"arrowFunctions": false, // enable arrow functions
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"classes": false, // enable classes
"defaultParams": false, // enable default function parameters
"destructuring": false, // enable destructuring
@nmn
nmn / pureFunctions.js
Last active August 29, 2015 14:26
Quick and dirty hack to make pure functions work in React:
function component(fn){
class C extends React.Component {
render(){
return fn(this.props, this.context)
}
}
C.displayName = fn.displayName || fn.name
C.propTypes = fn.propTypes
C.contextTypes = fn.contextTypes
return C
@StevenLangbroek
StevenLangbroek / component-with-decorator.js
Created August 7, 2015 07:16
Difference between mixins and higher-order components (as ES7 decorators).
import React from 'react';
function animateIn(Component){
return class DecoratedComponent extends React.Component {
componentWillEnter(){
// Do some swanky animation
}
render(){
// Inherit all props
@tkuester
tkuester / DC23_SaaS.md
Last active June 19, 2025 06:47
DEFCON23 / WCTF: Shock Collar as a Service

Vegas is the last place I ever expected to visit. And yet, I wound up tucking myself into the corner of the Wireless Village for three days, absorbing excellent talks on the state of wireless hackery. Though I hadn't planned to try any of the challenges, I got drawn into @dntlookbehindu's (aka Russ) "SDR Roulette".

Shock Collar

Russ purchased a dog collar to analyze the wireless communication between remote

@gyaresu
gyaresu / HackRF-FM-Transmit.grc
Last active February 21, 2022 15:04
HackRF FM Transmit with GnuRadio
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.8'?>
<flow_graph>
<timestamp>Tue Aug 25 19:04:21 2015</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
@miek
miek / GSG case
Last active January 8, 2025 14:58
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/