Skip to content

Instantly share code, notes, and snippets.

@Funcan
Funcan / send.py
Created March 18, 2018 02:18 — forked from gyaresu/send.py
from rflib import *
import time
d = RfCat()
def init(d):
d.setFreq(433955000)
d.setMdmModulation(MOD_ASK_OOK)
def run():
@Funcan
Funcan / HackRF-FM-Transmit.grc
Created March 18, 2018 02:17 — forked from gyaresu/HackRF-FM-Transmit.grc
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>
@Funcan
Funcan / spectre.c
Last active January 5, 2018 14:09 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@Funcan
Funcan / spectre.c
Created January 5, 2018 14:09 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@Funcan
Funcan / readme.rst
Created February 10, 2016 19:18
Cinder H/A - how to upgrade to cluster in one release

So, we want to add the 'cluster' attribute t ovolumes in an upgrade safe manner

Pre-upgrade we are on some RPC version, I'm going to call 1.12 for no good reason

The new release finishes with real RPCs at 1.25

So, if we do a rolling upgrade, then the RPC version number will stay below 1.25 until we know everybody is running the new code. If we make the create RPC that fills in the version field RPC version 1.26, then make sure API never calls it until the minimum supported RPC version anyeverywhere is 1.26, then we should be safe for that RPC version to start filling in the cluster field.

@Funcan
Funcan / description.rst
Created February 10, 2016 17:26
Idea for job distribution for H/A in cinder

The Point

Allow cinder to move to an A/A c-vol model, with minimal disruption and with a safe upgrade path

The Idea

  1. Add a 'cluster' attribute to every c-vol service.
# Copyright 20141 Hewlett Packard. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT