Skip to content

Instantly share code, notes, and snippets.

@ismell
ismell / maplebus.js
Created February 22, 2014 16:46
ScanaStudio 2 Maple Bus decoder
/* jshint loopfunc: true, undef: true, unused: false, strict: false */
/* global ch_sdcka, ch_sdckb, dec_item_add_post_text, dec_item_add_comment, hex_add_byte, dark_colors, pkt_start, pkt_end, pkt_add_item, trs_go_before, dec_item_add_data, sample_val, ui_clear, ui_add_ch_selector, dec_item_add_sample_point, DRAW_0, DRAW_1, clear_dec_items, dec_item_new, dec_item_add_pre_text, get_ui_vals, add_to_err_log, trs_get_first, trs_is_not_last, abort_requested, trs_get_next, debug, trs_go_after, sample_rate, get_ch_color */
/*
*************************************************************************************
SCANASTUDIO 2 MAPLE BUS DECODER
The following commented block allows some related informations to be displayed online
@ismell
ismell / nginx.conf
Last active August 29, 2015 13:56
NGiNX SSL Proxy config
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@ismell
ismell / dscr.asm
Last active August 29, 2015 13:57
CyAPI Corruption Issue
;;-----------------------------------------------------------------------------
;; File: dscr.a51
;; Contents: This file contains descriptor data tables.
;;
;; $Archive: /USB/Examples/Fx2lp/bulkloop/dscr.a51 $
;; $Date: 9/01/03 8:51p $
;; $Revision: 3 $
;;
;;
;;-----------------------------------------------------------------------------
@ismell
ismell / circle.yml
Created May 8, 2014 16:56
Precompile and cache rails assets on CircleCI
dependencies:
# Compute the assets once and cache them
post:
- bundle exec rake assets:precompile assets:clean_expired:
environment:
RAILS_GROUPS: assets
cache_directories:
- "public/assets"
@ismell
ismell / build-coreboot
Last active October 4, 2023 21:17
ChromiumOS Development Scripts
#!/bin/bash
set -eu
: "${CACHE_DIR:=/tmp/coreboot}"
: "${VBOOT_SOURCE:=/mnt/host/source//src/platform/vboot_reference}"
: "${HOSTCC:=x86_64-pc-linux-gnu-clang}"
: "${HOSTPKGCONFIG:=x86_64-pc-linux-gnu-pkg-config}"
: "${XGCCPATH:=/opt/coreboot-sdk/bin/}"
: "${BOARD:=zork}"