Skip to content

Instantly share code, notes, and snippets.

/*
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
#include "waveshare_rgb_lcd_port.h"
void test_screen();
#!/bin/bash
export USER='set_username'
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
mkdir -p ~/esp
cd ~/esp
git clone -b v5.2.3 --recursive https://github.com/espressif/esp-idf.git
{
"data": {
"latest": [
{
"vehicleId": "135",
"namespace": "valleytransport",
"operator": "SC",
"routeId": "60",
"tripId": "3718011",
"capacity": 3,
@stajkowski
stajkowski / gist:14d01a669173ede6cb7884333b02842f
Created February 14, 2025 20:47
VTA Journeys Data Query
{
"data": {
"journeys": [
{
"journeyId": "0192c693-9bfc-7770-8360-1034cc331433",
"namespace": "valleytransport",
"operator": "SC",
"vehicleId": "4403",
"routeId": "68",
"tripId": "3629438",
@stajkowski
stajkowski / gist:5c4f1b73ad9accceb9c752d113e79cea
Created February 14, 2025 20:40
VTA Historical Data Query
{
"data": {
"historical": [
{
"dataId": "5",
"namespace": "valleytransport",
"operator": "SC",
"vehicleId": "4403",
"deployed": true,
"capacity": 3,
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.HashMap;
public class TestMain {
public static void main(String args[]) {
BlockingQueue<Runnable> bq = new ArrayBlockingQueue<Runnable>(100);
ExecTest exec = new ExecTest(10, bq);
for (int i = 0; i < 10; i++) {
sudo apt-add-repository ppa:mozillateam/firefox-next
sudo apt-get update
sudo apt-get install firefox xvfb
sudo apt-get install firefox=45.0.2+build1-0ubuntu1
pip install selenium==2.53.6
Xvfb :10 -ac &
export DISPLAY=:10
disable_service mysql
enable_service postgresql
## Failure of Master
2016-12-12 13:37:32.714 DEBUG neutron.common.config [-] command line: /usr/local/bin/neutron-keepalived-state-change --router_id=162c5a03-7da6-43ee-9014-ac923bdcf711 --namespace=snat-162c5a03-7da6-43ee-9014-ac923bdcf711 --conf_dir=/opt/stack/data/neutron/ha_confs/162c5a03-7da6-43ee-9014-ac923bdcf711 --monitor_interface=ha-cda61386-10 --monitor_cidr=169.254.0.1/24 --pid_file=/opt/stack/data/neutron/external/pids/162c5a03-7da6-43ee-9014-ac923bdcf711.monitor.pid --state_path=/opt/stack/data/neutron --user=1000 --group=1000 from (pid=30887) setup_logging /opt/stack/neutron/neutron/common/config.py:107
2016-12-12 13:37:32.751 DEBUG neutron.agent.linux.async_process [-] Launching async process [ip netns exec snat-162c5a03-7da6-43ee-9014-ac923bdcf711 ip -o monitor address]. from (pid=30898) start /opt/stack/neutron/neutron/agent/linux/async_process.py:110
2016-12-12 13:37:32.754 DEBUG neutron.agent.linux.utils [-] Running command: ['ip', 'netns', 'exec', 'snat-162c5a03-7da6-43ee-9014-ac923bdcf71
2016-12-10 01:44:59.102475 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.179871 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.192622 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.250029 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.258922 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.289306 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.296100 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:target_tenant'] are part of a cyclical reference.
2016-12-10 01:44:59.337389 WARNING:oslo_policy.policy:Policies ['update_rbac_policy:ta