This file contains 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
#!/bin/bash | |
set -eu | |
echo "Stopping log emiting services..." | |
systemctl stop syslog.socket | |
systemctl stop rsyslog | |
systemctl stop octoprint | |
systemctl stop klipper |
This file contains 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
FROM centos:7 as builder | |
RUN yum install -y git make gcc bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel && \ | |
git clone https://github.com/rbenv/ruby-build.git && \ | |
PREFIX=/usr/local ./ruby-build/install.sh | |
ARG RUBY_VERSION | |
ENV RUBY_VERSION=${RUBY_VERSION:-2.7.3} | |
ENV RUBY_DIR=/usr/local/ruby-${RUBY_VERSION} | |
RUN /usr/local/bin/ruby-build ${RUBY_VERSION} ${RUBY_DIR} |
This file contains 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
#!ipxe | |
dhcp | |
initrd http://ftp.jp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz | |
kernel http://ftp.jp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true priority=critical url=http://${dhcp-server}/preseed.cfg suite=stretch | |
boot |
This file contains 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
load('api_config.js'); | |
load('api_mqtt.js'); | |
load('api_net.js'); | |
load('api_sys.js'); | |
load('api_timer.js'); | |
load('api_i2c.js'); | |
let address = 0x39; | |
let bus = I2C.get(); | |
// Enable device |
This file contains 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 | |
import smbus | |
import time | |
class TSL2561: | |
def __init__(self, address, channel, gain=0x00, integration_time=0x02): | |
self.address = address | |
self.channel = channel |
This file contains 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
# Kickstart file to install CentOS6 | |
install | |
url --url=http://ftp.riken.jp/Linux/centos/6/os/x86_64 | |
text | |
lang en_US.UTF-8 | |
keyboard jp106 | |
# Network configuration |
This file contains 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
# Kickstart file to install CentOS7 | |
# Use network installation | |
install | |
url --url=http://ftp.riken.jp/Linux/centos/7/os/x86_64 | |
text | |
firstboot --enable | |
ignoredisk --only-use=sda | |
keyboard --vckeymap=jp --xlayouts='jp' |
This file contains 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
gogs: | |
image: gogs/gogs | |
ports: | |
- "8080:8080" | |
- "10022:22" | |
volumes_from: | |
- gogs_data | |
links: | |
- gogs_db:gogs_db |