Skip to content

Instantly share code, notes, and snippets.

@freespace
freespace / gist:2585921
Created May 3, 2012 14:14
Backup of some arduino code to handle OV7670
#define SIO_C 2
#define SIO_D 4
#define SIO_CLOCK_DELAY 100
void setup()
{
pinMode(8,OUTPUT);
// while(1)
// {
var mqtt = require('mqtt');
//{'topicName':[clientObj,clientObj ..]}
var subscribeTopics={};
//创建服务器对象
var server = mqtt.createServer(function(client) {
//建立连接时触发
client.on('connect', function(packet) {
@vigevenoj
vigevenoj / Instructions for building manually without packaging
Last active April 23, 2021 14:25
Building mosquitto on centos 6 with websocket support
sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar xf v2.1.0.tar.gz
cd libwebsockets-2.1.0
mkdir build; cd build
cmake .. -DLIB_SUFFIX=64
sudo make install
echo "/usr/local/lib64" | sudo tee -a /etc/ld.so.conf.d/libwebsockets.conf
sudo ldconfig
ldconfig -p | grep libwebsockets
@rmoriz
rmoriz / script.sh
Last active September 19, 2023 02:04
build rtl8812au driver running Raspbian on Raspberry Pi 3 and Zero (both tested, should work on all)
#!/bin/sh
mkdir -p /tmp/rtl8812au
cd /tmp/rtl8812au
apt-get install -y \
git \
dkms \
raspberrypi-kernel-headers \
raspberrypi-kernel
@guiferrpereira
guiferrpereira / README.md
Created June 17, 2021 09:22 — forked from MrCelticFox/README.md
An updated and improved auto-sell script for TownStar

Improved TownStar Auto-Sell Script

Disclaimer

At the time of writing scripts are allowed to be used with TownStar, as long as they don't do anything that breaks the game, but double check what the rules say to be sure: https://support.gala.games/town-star-rules

Use at your own risk, I have tested this and am satisfied it is free of bugs, but I am not responsible for any loss incurred by others that arose from using this script.

Now for the fun stuff...