This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package devd | |
| import "strings" | |
| const ( | |
| NotifyEvent = iota | |
| DeviceAttached | |
| DeviceDetached | |
| Unknown | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "log" | |
| "math/rand" | |
| "net" | |
| "os" | |
| "os/signal" | |
| "syscall" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import bottle | |
| import datetime | |
| import picamera | |
| import RPi.GPIO as GPIO | |
| import sys | |
| import signal | |
| import threading | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Puma HTTP Server | |
| After=network.target | |
| Requires=puma.socket | |
| [Service] | |
| User=wiki | |
| # Helpful for debugging socket activation, etc. | |
| Environment=PUMA_DEBUG=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| from pylatex import * | |
| from pylatex.utils import italic | |
| import fileinput | |
| import sys | |
| from email.header import decode_header, make_header | |
| import io | |
| import argparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CC=gcc | |
| CFLAGS=-I. -Wall -Wextra | |
| OBJ = redirect.o | |
| redirect: $(OBJ) | |
| $(CC) -o $@ $^ $(CFLAGS) | |
| clean: | |
| rm -f redirect redirect.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WiFiManager.h> | |
| #include <WiFiClientSecure.h> | |
| #include <SoftwareSerial.h> | |
| #include <Wire.h> | |
| #include <Adafruit_BME280.h> | |
| #include "Sds011.h" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ESP8266WiFi.h> | |
| #include <ESP8266HTTPClient.h> | |
| #include <PubSubClient.h> | |
| #include <Adafruit_BME280.h> | |
| #include <Wire.h> | |
| #include <SSD1306.h> | |
| #include "settings.h" | |
| const int baudrate = 115200; | |
| #define SDA D3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # ./$scriptname zroot/var/mysql@$(date +"%FT%H:%M") | |
| # | |
| # Dependencies for FreeBSD: | |
| # pkg install py27-mysql-connector-python2 | |
| import mysql.connector | |
| import subprocess | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'thread' | |
| queue = Queue.new | |
| # start producer | |
| Thread.new do | |
| 100.times do |i| | |
| queue << i | |
| end |