This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arm-none-eabi-gdb \ | |
-iex 'target extended | openocd \ | |
--debug \ | |
-f interface/stlink.cfg \ | |
-f target/stm32f1x.cfg \ | |
-c "gdb_port pipe"' \ | |
-iex 'mon halt' \ | |
-iex 'mon tpiu config internal swo.log uart false 2000000' \ | |
-iex 'shell bash -m -c "orbuculum -f swo.log &"' \ | |
-iex "file $(pwd)/ucm.elf" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Src/orbuculum.c b/Src/orbuculum.c | |
index 36bf17d..29cdd20 100644 | |
--- a/Src/orbuculum.c | |
+++ b/Src/orbuculum.c | |
@@ -1542,7 +1542,7 @@ int setSerialConfig ( int f, speed_t speed ) | |
// ==================================================================================================== | |
int serialFeeder( void ) | |
{ | |
- int f, ret; | |
+ int f, flag, ret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo -ne >&2 "Name of capture file required $0 <file>\n" | |
exit 1 | |
fi | |
asciinema rec $1.json | |
docker run --rm -v $PWD:/data asciinema/asciicast2gif -s 2 -t solarized-dark $1.json $1.gif | |
open $1.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const util = require("util"); | |
const yargs = require("yargs"); | |
const request = util.promisify(require("request")); | |
const puppeteer = require("puppeteer"); | |
const fs = require("fs"); | |
const delayMs = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const getContent = (page, url) => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import os, getopt, sys, re, difflib, io, itertools, sys, time | |
# Globals vars | |
__VERBOSE__ = False | |
__VERSION__ = "0.0.1" | |
def eprint(*args, **kwargs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import os, getopt, sys, re, sys, time | |
# Globals vars | |
__VERBOSE__ = False | |
__VERSION__ = "0.0.2" | |
# Default vars |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(func $addTwo (param i32 i32) (result i32) | |
(i32.add | |
(get_local 0) | |
(get_local 1))) | |
(export "addTwo" (func $addTwo))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Hola mundo" $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec_remote() { wget -q -O- "$1" | bash -s "${@:2}"; } | |
cache_remote() { bn=`[ -n "$2" ] && echo "$2" || basename "$1"`; td=`echo /tmp/test`; mkdir -p $td; fn=$td/$bn; [ -f $fn ] || wget -q -O- "$1" > $fn; chmod +x $fn; echo $fn;} | |
import_remote() { cn=`cache_remote "$@"`; bn=`basename $cn`; fn="${bn%.*}"; eval "$fn() { bash -e $cn "\$@"; }"; } | |
alias resolve-gist-url='exec_remote https://bit.ly/2JGtC2R' | |
alias import='import_remote' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tempfoo=`basename $0` | |
TMPFILE=`mktemp /tmp/${tempfoo}` || exit 1 | |
filename=$TMPFILE/$(basename "$(1)") | |
wget -q -O- $(0) > $filename | |
echo $filename` |