Skip to content

Instantly share code, notes, and snippets.

Working from home

Roman Valls Guimera brainstorm

Working from home
View GitHub Profile
View gist:d41fb302f05a7f277a99cfdc82f60d83
$ brew test-bot --skip-setup --root-url= --bintray-org=brainstorm --tap=brainstorm/musl-cross
Homebrew/homebrew-test-bot fe05361 (Merge pull request #338 from Bo98/dep_no_dev)
ARGV: --skip-setup --root-url= --bintray-org=brainstorm --tap=brainstorm/musl-cross
Homebrew.args: #<Homebrew::CLI::Args argv=["test-bot", "--skip-setup", "--root-url=", "--bintray-org=brainstorm", "--tap=brainstorm/musl-cross"], remaining=[], cmdline_args=["--skip-setup", "--root-url=", "--bintray-org=brainstorm", "--tap=brainstorm/musl-cross"], skip_setup?=true, root_url="", bintray_org="brainstorm", tap="brainstorm/musl-cross">
Error: No known CI provider detected! If you are using GitHub Actions or Jenkins
ghprb-plugin, then we cannot find the expected environment
variables! Ch
brainstorm /
Last active Jan 16, 2020
SAMv1 specification: C, C2Rust and Rust source code for computing bin number and overlapping bins
#![allow(dead_code, mutable_transmutes, non_camel_case_types, non_snake_case,
non_upper_case_globals, unused_assignments, unused_mut)]
pub type __uint16_t = libc::c_ushort;
pub type uint16_t = __uint16_t;
pub unsafe extern "C" fn reg2bins(mut beg: libc::c_int, mut end: libc::c_int,
mut list: *mut uint16_t) -> libc::c_int {
let mut i: libc::c_int = 0 as libc::c_int;
brainstorm / anritsu_bootlog.txt
Last active Apr 13, 2020
Anritsu builtin telnet debugger
View anritsu_bootlog.txt
[25 Sep 2019 at 22:14:46]:
...-> max contiguous free space: 26,544,177,156 bytes
# of files: 1,348
# of folders: 133
total bytes in files: 115,534 Kb
# of lost chains: 0
total bytes in lost chains: 0
Checking for log file (/card0/sys/evt/evt.log)
Purge old events: Found 11 events in the log
Initializing keypad driver
brainstorm /
Created Aug 17, 2019
Anritsu MS2721B quick and dirty over-telnet symbol enumeration
#!/usr/bin/env python
import re
import csv
import telnetlib
from collections import defaultdict
## EXAMPLE FROM MS2721B telnet session
TEST_PAYLOAD='''lkAddr 0\r\n0x0c002000 _usrEntry text \r\n0x0c002040 _sysInit text \r\n0x0c002064 _intPrioTable text \r\n0x0c0
0216c _intPrioTableSize text \r\n0x0c002180 _ataDrv text \r\n0x0c002e40 _ataDevCreate text \r\n0x0c0030c0 _ataRawio
brainstorm / Makefile
Last active May 7, 2020
htslib access (un)compressed offsets, now with newest htslib featuring hts_idx_load3 method.
View Makefile
${CC} -g -Wall -I. -L. -I../rust-htslib/hts-sys/htslib -L../rust-htslib/hts-sys/htslib -I/usr/local/opt/bzip2/include -I/usr/local/Cellar/curl-openssl/7.68.0/include -I/usr/local/Cellar/xz/5.2.4/include -I/usr/local/opt/zlib/include s3_htslib.c -o s3_htslib -llzma -lz -lbz2 -lhts
rm s3_htslib
brainstorm / htsget-openapi-factored.yaml
Last active May 17, 2019
View htsget-openapi-factored.yaml
openapi: 3.0.0
- description: htsget genomics api
description: "This data retrieval API bridges from existing genomics bulk data transfers to a client/server model"
version: "1.1.1"
title: htsget
name: GA4GH

Minimal NGINX configuration on the server side

WARNING: These notes are going to be eliminated by automation anytime soon (see Future section below).

Edit the file under /etc/nginx/sites-available/default to make sure it looks like this (read SSL section below for the encryption bits):

server {
        auth_basic "UMCCR AWS IGV Server";
        auth_basic_user_file /etc/nginx/htpasswd;
brainstorm /
Last active Dec 19, 2018
IGV S3 to HTTP bridge
##### CONFIG
IGV_XML_HEAD="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Global name=\"UMCCR AWS IGV server\" version=\"1\">\n<Category name=\"UMCCR Amazon IGV bucket\">"
IGV_XML_BODY_TMPL="<Resource name=\"SAMPLE\" path=\"URL\"></Resource>\n"
brainstorm / esc_motor_pseudo.c
Created Sep 5, 2018
ARDrone ESC motor pseudocode (with r2dec decompiler, pdd command)
View esc_motor_pseudo.c
#include <stdint.h>
#include <limits.h>
#define DISABLE_INTERRUPTS __asm(cli)
#define ENABLE_INTERRUPTS __asm(sei)
#define MEM_X ((uint16_t*)((r27 << 8) | r26))
#define MEM_Y ((uint16_t*)((r29 << 8) | r28))
#define MEM_Z ((uint16_t*)((r31 << 8) | r30))
brainstorm / openscad_trolley.scad
Created Mar 25, 2018
OpenSCAD trolley fix for titan bags
View openscad_trolley.scad
This is a titan bags ( custom part replacement. This piece goes inside the
"telescopic" handle bar after removing two screws. The mechanism is brittle and breaks with repeated
pressure to the main button, leading to an "always locked" position of the telescopic bars.
I've printed this part successfully with PETG 3D printing material via
You can’t perform that action at this time.