Skip to content

Instantly share code, notes, and snippets.

View lirc572's full-sized avatar
:electron:

lirc572 lirc572

:electron:
View GitHub Profile
@lirc572
lirc572 / mysql.docker-compose.yml
Last active July 6, 2022 05:08
Docker Compose file to start a mysql db with an init sql script.
version: '3'
services:
mysql:
image: mysql:8.0
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'bfe_intra_mock'
@lirc572
lirc572 / drone-gitea.docker-compose.yml
Last active July 4, 2022 13:56
Docker-compose file for Drone CI (with Docker runner)
version: '3'
# https://docs.drone.io/server/provider/gitea/
# https://docs.drone.io/runner/docker/overview/
services:
drone:
restart: unless-stopped
image: drone/drone:2
ports:
批曰。「「lirc572編」」。
批曰。「「文言代碼測試於https://ide.wy-lang.org/」」。
批曰。「「乙己代碼測試於https://copy.sh/brainfuck/」」。
批曰。「「符號定義」」。
吾有七言。曰「「+」」。曰「「-」」。曰「「<」」。曰「「>」」。曰「「.」」。曰「「 」」。曰「「
」」。名之曰「加號」曰「減號」曰「左號」曰「右號」曰「點號」曰「空格」曰「換行」。
批曰。「「翻倍之術」」。
吾有一術。名之曰「翻倍之術」。欲行是術。必先得一言曰「字」。一數曰「甲」。乃行是術曰。
@lirc572
lirc572 / step.js
Created July 15, 2021 21:21
RCbenchmark Scripts
/* //////////////// Sweep characterization ////////////////
The script will sweep between the input values "minVal" and "maxVal". The sweep will be made in discrete "stepsQty" steps. Each step will consist of a settling time "settlingTime" after which a new log entry will be recorded. To reduce noise, "samplesAvg" will be averaged and recorded.
^ Motor Input
| ___ ___ maxVal 4_
| ___| |___ 3_
| ___| |___ 2_
| ___| |___ 1_ stepsQty = 4
| minVal___| |___ 0_
|________________________________________________> Time
@lirc572
lirc572 / wifi@bs_allowed_outgoing_ports.json
Last active July 10, 2021 14:42
An array of all outgoing TCP ports that are not blocked by wifi@bs
[53, 80, 123, 443, 1935, 4244, 5222, 5223, 5228, 5242, 8008, 8010, 8020, 8080, 8687, 15000]
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 08:36:23 2020
@author: lirc572
Convert an image to PPM format for EPD75BHD library (https://github.com/lirc572/EPD75BHD)
This script implements the Floyd–Steinberg dithering algorithm to
convert images to a format that only has 3 colors: red, black and
white, without grayscale.