Skip to content

Instantly share code, notes, and snippets.

View jacobrosenthal's full-sized avatar

Jacob Rosenthal jacobrosenthal

View GitHub Profile
@jacobrosenthal
jacobrosenthal / Badge103.hex.strings
Last active November 13, 2017 05:16
Hackaday Superconference Badge 2017 Strings
Jacobs-MacBook-Air:Downloads jacobrosenthal$ strings Badge103.hex
$$@H
< J%
<0 J%
$DI*}
!4$@
G0@)C|
E&!
$9&@
$9&@
@jacobrosenthal
jacobrosenthal / cambadge-manifesto.js
Created November 13, 2017 05:24
Hackaday Superconference Badge 2017 manifesto puzzle
var manifesto =
["all... after all, we're all alike.",
"individual, but you can't stop us",
"manifesto. You may stop this",
"I am a hacker, and this is my",
"me for.",
"something that you will never forgive",
"crime is that of outsmarting you,",
"think, not what they look like. My",
"judging people by what they say and",
@jacobrosenthal
jacobrosenthal / cambage-manifesto.out
Created November 13, 2017 05:25
Hackaday Superconference Badge 2017 manifesto puzzle output
Jacobs-MacBook-Air:~ jacobrosenthal$ node cambadge-manifesto.js
This is our world now... the world of
the electron and the switch, the beauty
of the baud. We make use of a service
already existing without paying for
what could be dirt-cheap if it wasn't
run by profiteering gluttons, and you
call us criminals. We explore... and
you call us criminals. We seek after
knowledge... and you call us criminals.
[0x9d009000]> iM
[Main]
vaddr=0x9d01c844 paddr=0x9d01c844
[0x9d009000]> ie
[Entrypoints]
vaddr=0x9d009000 paddr=0x00009000 baddr=0x9d000000 laddr=0x00000000 haddr=0x00000018 type=program
1 entrypoints
@jacobrosenthal
jacobrosenthal / gist:17ca1fc9ed660e6ab347f3a4cac5160f
Created February 9, 2018 18:22
node newtmgr newt image upload log
Last login: Fri Feb 9 11:16:21 on ttys008
Jacobs-Air:~ jacobrosenthal$ cd Downloads/chippd3/
Jacobs-Air:chippd3 jacobrosenthal$ openocd -f interface/cmsis-dap.cfg -f target/nrf51.cfg -c "init; reset halt; nrf51 mass_erase; exit"
Open On-Chip Debugger 0.10.0+dev-00143-gf6449a7c (2017-05-25-22:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
// https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline.html
// note, twitter is super stingy and this code requires like 5 api requests by default, ie 1/3 of your 15 min max
// ie you can run this script as many as 3 times before youll get api limited for another 15 minutes
var Twitter = require('twitter-lite');
var client = new Twitter({
consumer_key: process.env.TWITTER_CONSUMER_KEY,
consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY,
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET
// https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup
// note, twitter is super stingy and this code requires multiple api requests by default
// ie you can run this script only a few times before youll get api limited for another 15 minutes
var Twitter = require('twitter-lite');
var client = new Twitter({
consumer_key: process.env.TWITTER_CONSUMER_KEY,
consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY,
@jacobrosenthal
jacobrosenthal / generate_dat.py
Created July 29, 2018 23:00
old nrfutil dfu init packet manifest zip generation
#!/usr/bin/python
# genereate .dat and .zip for an application binary
# todo, take softdevice and bootloaders and do whatever alterations to the hex necesary
# https://github.com/NordicSemiconductor/nRF-Master-Control-Panel/blob/master/init%20packet%20handling/How%20to%20generate%20the%20INIT%20file%20for%20DFU.pdf
# code shamelessly stolen from https://devzone.nordicsemi.com/question/22586/anyone-do-successfully-dfu-ota-for-sdk701-softdevice-s110-v710/
import argparse, sys, zipfile, glob, os
From 727cffc1735597e950abdc605edf935b535466dc Mon Sep 17 00:00:00 2001
From: Jacob Rosenthal <[email protected]>
Date: Mon, 30 Jul 2018 14:39:28 -0700
Subject: [PATCH] add s110 syscalls
---
libr/syscall/d/Makefile | 1 +
libr/syscall/d/meson.build | 1 +
libr/syscall/d/s110-arm-16.sdb.txt | 134 +++++++++++++++++++++++++++++++++++++
3 files changed, 136 insertions(+)