Skip to content

Instantly share code, notes, and snippets.

View rf's full-sized avatar

Russ Frank rf

  • Oden Technologies
  • Jersey City, NJ
View GitHub Profile
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Debian clang version 11.0.1-2~bpo10+1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/rf/oden/ClickHouse/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/ninja" "cmTC_fdbad"
[1/2] Building C object CMakeFiles/cmTC_fdbad.dir/CheckSymbolExists.c.o
module.exports = Ready
function Ready() {
var ready = false
var listeners = []
var args
onready.emit = onready
onready.ready = false
@rf
rf / convert.js
Last active May 20, 2016 18:15
Symbolicate linux perf output of a node program using the v8 log
var fs = require('fs');
var infile = process.argv[2];
if (!infile) return console.log("need infile");
var data = fs.readFileSync(infile, 'utf8').split('\n');
var outlines = [];
data.forEach(function(item) {
{
"metadata": {
"category": {
"id": "mens-lace-up-shoes",
"name": "Lace-up Shoes"
},
"showSizeFilter": true,
"showColorFilter": true,
"offset": 0,
"limit": 20,
@rf
rf / out
Created April 26, 2014 18:52
{"metadata":{"category":{"id":"mens-lace-up-shoes","name":"Lace-up Shoes"},"showSizeFilter":true,"showColorFilter":true,"offset":0,"limit":20,"total":12818},"products":[{"id":440435890,"name":"Magnanni Suede Oxford Shoe, Cacao","type":"product","currency":"USD","price":279,"priceLabel":"$279.00","salePrice":181.35,"salePriceLabel":"$181.35","inStock":true,"retailer":{"id":"750","name":"Last Call by Neiman Marcus","url":"http://www.shopstyle.com/browse/Last-Call-by-Neiman-Marcus-US?pid=uid8089-24933283-78"},"locale":"en_US","description":"<ul> <li>Suede upper.</li> <li>Oxford lace-up style; waxed laces.</li> <li>Squared toe.</li> <li>Leather lining.</li> <li>1\" flat heel.</li> <li>Leather sole with rubber insets.</li> <li>Made in Spain.</li> </ul>","brand":{"id":"1595","name":"Magnanni","url":"http://www.shopstyle.com/browse/Magnanni?pid=uid8089-24933283-78"},"clickUrl":"http://api.shopstyle.com/action/apiVisitRetailer?id=440435890&pid=uid8089-24933283-78","pageUrl":"http://www.shopstyle.com/p/magnanni-suede-
mysql> SELECT DATE(date) Date, COUNT(DISTINCT uuid) totalCOunt FROM analytics where date > now() - interval 1 month and date < now() GROUP BY DATE(date);
+------------+------------+
| Date | totalCOunt |
+------------+------------+
| 2014-01-04 | 1343 |
| 2014-01-05 | 2912 |
| 2014-01-06 | 3579 |
| 2014-01-07 | 3132 |
| 2014-01-08 | 3096 |
| 2014-01-09 | 3022 |
@rf
rf / example usage
Created November 5, 2013 20:58
PDF links on Android in Titanium
var wv = Ti.UI.createWebView();
var pdf = require('pdf');
wv.addEventListener('pdf', function (event) {
pdf(event.url, event.cookies, function (err) {
if (err) alert(err);
});
});
$ cat thing.s
.section __TEXT,__text,regular,pure_instructions
.globl _main
.align 4, 0x90
_main: ## @main
.cfi_startproc
## BB#0:
pushq %rbp
Ltmp2:
.cfi_def_cfa_offset 16
aaniti
eding
omenservan
husel
divid
ncefor
monit
andfu
roceeding
despis