Skip to content

Instantly share code, notes, and snippets.

View Waywrong's full-sized avatar
🇹🇼
Sitting

Wei-Lung Hsu Waywrong

🇹🇼
Sitting
  • National Taiwan University
  • Taiwan
View GitHub Profile
@Waywrong
Waywrong / uninstall_openclaw_mac.md
Created April 14, 2026 10:46 — forked from bewithdhanu/uninstall_openclaw_mac.md
🧹 OpenClaw Complete Uninstall Guide (All Platforms)

🧹 OpenClaw Complete Uninstall Guide (All Platforms)

This guide covers all supported ways to fully remove OpenClaw, including cases where the CLI is missing but background services are still running.


🟢 Path 1: Easy Path (CLI Still Installed)

Use this if the openclaw command still works.

### ros driver
```
<live>
source ~/code/ouster/devel/setup.bash
roslaunch ouster_ros driver.launch \
sensor_hostname:=192.168.185.63
<record>
roslaunch ouster_ros record.launch \
sensor_hostname:=192.168.185.63 \
@Waywrong
Waywrong / VB xmlhttp
Created September 19, 2022 13:27
VB xmlhttp
Public Function API_send(strUrl As String, strIn As String) As String
Dim v_Response As String
Dim v_XmlHttp
Set v_XmlHttp = CreateObject("msxml2.xmlhttp")
v_XmlHttp.Open "POST", strUrl, False
'v_XmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
v_XmlHttp.setRequestHeader "Content-Type", "application/json"
v_XmlHttp.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
v_XmlHttp.Send strIn
v_Response = v_XmlHttp.responseText
std::string readBuffer;
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
string sTest = "https://stoparking.sto-tek.com/api/pathPLan?apiKey=ad5011e&startX=1341&startY=623&startZ=140&endX=1119&endY=1752&endZ=140";
curl_easy_setopt(hnd, CURLOPT_URL, sTest.c_str());
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "postman-token: b3c758b3-c46c-877a-5511-51c9d19cc44d");
headers = curl_slist_append(headers, "cache-control: no-cache");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
#define TEST_SERVER "http://127.0.0.1/api/ips/localization"
strIPSresult = postPageContent_payload(TEST_SERVER,5001,strIPS_input);
string testset_parser_fun::postPageContent_payload(const string url,int port, string strPayload)
{
struct hostent *host;
string hostUrl, pagePath;
parseHostAndPagePath(url, hostUrl, pagePath);
if(0==(host=gethostbyname(hostUrl.c_str())))
#!/bin/bash
TAR_IP=192.168.227.128
USER_N=aaa
USER_PW=abc123
REMOTE_SH=~/tmp/del/test/test.sh
#ssh -o StrictHostKeyChecking=no
#scp -o StrictHostKeyChecking=no
#ssh-copy-id -o StrictHostKeyChecking=no
@Waywrong
Waywrong / find_velo.sh
Created July 14, 2020 09:43 — forked from kentsommer/find_velo.sh
Find velodyne IP
read -p 'Ethernet device to use (can find with ifconfig): ' ethdev
sudo tcpdump -i $ethdev port 2368 -n | awk '{ print gensub(/(.*)\..*/,"\\1","g",$3), $4, gensub(/(.*)\..*/,"\\1","g",$5) }' | cut -d ' ' -f1
@Waywrong
Waywrong / mac-vendor.json
Created April 19, 2019 11:41
List of MAC addresses with vendors identities in JSON file
This file has been truncated, but you can view the full file.
[
{
"mac": "000000",
"vendor": " Officially Xerox"
},
{
"mac": "000001",
"vendor": " SuperLAN-2U"
},
{
router.post("/promise",function(req,res,next)
{
var promise1 = new promise(function(resolve, reject) {
var idx=0;
for(i=1;i<=20;i++){
setTimeout(function() {
var fs = require('fs');
var WaitName = "data/example/waitForMe.txt";
try {
if (fs.existsSync(WaitName)) {

How to install OpenCV 3.1 on Ubuntu 14.04 64bits

Update latest packages and installed

$ sudo apt-get update
$ sudo apt-get upgrade

apt-get update - 更新最新的套件資訊 apt-get upgrade - 更新套件