Skip to content

Instantly share code, notes, and snippets.

View 0312birdzhang's full-sized avatar
🎯
Focusing

BirdZhang 0312birdzhang

🎯
Focusing
View GitHub Profile
@0312birdzhang
0312birdzhang / test_cl_performance
Created October 15, 2023 15:51 — forked from jnewb1/test_cl_performance
opencl vs opencv
import cv2
import numpy as np
import os
import pyopencl as cl
import pyopencl.array as cl_array
import time
from openpilot.common.basedir import BASEDIR
@0312birdzhang
0312birdzhang / gist:3aa5a33476cf580e076d51b150ed3681
Created May 10, 2022 13:33 — forked from geohot/gist:569e9e4b20fd41203d8da71c6022be15
instructions to install openpilot on a pixel 3 running android 9
# instructions to install openpilot on a pixel 3
# enter fastboot with power + volume down
# make sure bootloader is unlocked
# make sure modern version of android platform tools is installed
mkdir pixel
wget https://dl.google.com/dl/android/aosp/blueline-pq3a.190801.002-factory-f3d66c49.zip
unzip blueline-pq3a.190801.002-factory-f3d66c49.zip
cd blueline-pq3a.190801.002/
./flash-all.sh
#!/bin/bash
# Usage: cas-get.sh {url} {username} {password} # If you have any errors try removing the redirects to get more information
# The service to be called, and a url-encoded version (the url encoding isn't perfect, if you're encoding complex stuff you may wish to replace with a different method)
DEST="$1"
ENCODED_DEST=`echo "$DEST" | perl -p -e 's/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg' | sed 's/%2E/./g' | sed 's/%0A//g'`
#IP Addresses or hostnames are fine here
CAS_HOSTNAME=galaxy:9143
@0312birdzhang
0312birdzhang / sailfishsdkrepos.md
Last active January 16, 2018 02:18 — forked from skvark/sailfishsdkrepos.md
Describes how to add repositories to Sailfish OS SDK (emulator and targets) and how to install them so that they can be used straight from the SDK.

This guide uses my own repos from Mer Obs. I found it very hard to find information about this so hopefully someone sees this useful. This short guide was created as a side product while I was creating these RPM packages (which wasn't so clear to me either).

  1. Add the repositories to the Mer SDK armv7hl and i486 targets (you'll have to ssh to the Mer SDK):

    • sb2 -t SailfishOS-2.1.3.7-armv7hl -m sdk-install -R zypper ar -f https://sailfish.openrepos.net/birdzhang/personal-main.repo

    • sb2 -t SailfishOS-2.1.3.7-i486 -m sdk-install -R zypper ar -f https://sailfish.openrepos.net/birdzhang/personal-main.repo

  2. Refresh sb2 -t SailfishOS-2.1.3.7-i486 -m sdk-install -R zypper ref and sb2 -t SailfishOS-2.1.3.7-armv7hl -m sdk-install -R zypper ref

  3. Install packages: