This file contains hidden or 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
$0=10 (step pulse, usec) | |
$1=25 (step idle delay, msec) | |
$2=0 (step port invert mask:00000000) | |
$3=0 (dir port invert mask:00000000) | |
$4=0 (step enable invert, bool) | |
$5=0 (limit pins invert, bool) | |
$6=0 (probe pin invert, bool) | |
$10=3 (status report mask:00000011) | |
$11=0.010 (junction deviation, mm) | |
$12=0.002 (arc tolerance, mm) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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' |