Skip to content

Instantly share code, notes, and snippets.

View ShiauweiZhao's full-sized avatar
🎯
聚焦

ShiauweiZhao ShiauweiZhao

🎯
聚焦
  • EFY-TECH
  • TianJin
  • 07:20 (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
#include <configuration.pb.h>
#include <google/protobuf/text_format.h>
#include <gtest/gtest.h>
#include <iostream>
#include <libconf/Util.hpp>
#include <string>
using namespace std;
TEST(confman, util_equal) {
mavlink stop-all
mavlink start -r 800000 -d /dev/ttyACM0 -m config -x
mavlink boot_complete
@ShiauweiZhao
ShiauweiZhao / rm -rf递归.sh
Created March 5, 2019 09:07
rm -rf 递归删除所有.o文件
find . -name "*.o" | xargs rm -f