Skip to content

Instantly share code, notes, and snippets.

View ShiauweiZhao's full-sized avatar
🎯
聚焦

ShiauweiZhao ShiauweiZhao

🎯
聚焦
  • EFY-TECH
  • TianJin
  • 12:35 (UTC +08:00)
View GitHub Profile
@ShiauweiZhao
ShiauweiZhao / loadbin.sh
Created March 26, 2020 01:48 — forked from InternetofAwesome/loadbin.sh
Load Binary with JLinkExe
#load a bin using jlink to a memory address. Should "Just work"
#usage: loadbin <file name with or without path> <address>
function loadbin()
{
fname="$1"
addr="$2"
bn="$(basename $1)"
fn="${bn%.*}"
ext="${fname##.}"
if [ "$ext" != "bin" ]; then
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy