Skip to content

Instantly share code, notes, and snippets.

View xeno14's full-sized avatar

Ryo Murakami xeno14

View GitHub Profile
@maruta
maruta / level.ino
Created December 11, 2020 04:29
Simple level for M5Stack FIRE
#include <M5Stack.h>
#include <math.h>
#include "utility/MPU9250.h"
MPU9250 IMU;
const int col_top = TFT_BLACK, col_bottom = TFT_YELLOW;
const float hx = 160, hy = 120;
int qx = hx, qy = 0;
@NicholasSterling
NicholasSterling / c_cpp_properties.json
Created November 7, 2018 01:37
Visual Studio Code (vscode) configuration for working with kernel modules on Ubuntu 16.04
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/src/linux-headers-4.15.0-36/include/**",
"/usr/src/linux-headers-4.15.0-36/arch/x86/include/**",
"/usr/src/linux-headers-4.15.0-36-generic/include/**",
"/usr/src/linux-headers-4.15.0-36-generic/arch/x86/include/**"
@ttimasdf
ttimasdf / 00-Systemd_service_for_autossh.md
Last active May 6, 2024 02:21 — forked from thomasfr/autossh.service
Systemd service for autossh

Usage

curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
  sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@.service | \
  sudo tee /etc/systemd/system/autossh@.service

sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
@voluntas
voluntas / webrtc_non_browser.rst
Last active January 21, 2021 05:06
ブラウザ以外で WebRTC を利用する

ブラウザ以外で WebRTC

日時

2018-04-29

@voluntas

バージョン

18.4.0

url

https://voluntas.github.io/

クライアント側の WebRTC には明るくないため、

# pip3 install tornado pubnub python-dateutil
# python3 -u sfd.py | tee sfd.log
from multiprocessing import Process, Value, Lock, Event
from datetime import datetime
import dateutil.parser
from pubnub.callbacks import SubscribeCallback
from pubnub.enums import PNStatusCategory
from pubnub.pnconfiguration import PNConfiguration
from pubnub.pubnub_tornado import PubNubTornado
from pubnub.pnconfiguration import PNReconnectionPolicy
@mogya
mogya / docker-compose.yml
Last active November 11, 2018 02:35
start jordan/rundeck with JST timezone.
version: '2'
services:
volume:
image: alpine:latest
entrypoint: /bin/true
volumes:
- ./etc/rundeck:/etc/rundeck
- ./var/rundeck:/var/rundeck
- ./var/lib/rundeck/.ssh:/var/lib/rundeck/.ssh
- ./var/lib/rundeck/logs:/var/lib/rundeck/logs
@voluntas
voluntas / webrtc.rst
Last active April 30, 2024 14:20
WebRTC コトハジメ
@romainl
romainl / deprecation.md
Last active February 24, 2022 02:42
Idiomatic vimrc
@amitsaha
amitsaha / ipython-notebook.service
Last active December 23, 2015 15:59
Run IPython notebook under systemd
# README:
# Copy this file to /usr/lib/systemd/system/
# sudo systemctl daemon-reload
# systemctl enable ipython-notebook
# systemctl start ipython-notebook
# The WorkingDirectory and ipython-dir must exist
# If you don't want anything fancy, go to http://127.0.0.1:8888 to see your notebook
# wheneber you want it
[Unit]
@rummelonp
rummelonp / zsh_completion.md
Last active February 22, 2023 15:06
zsh の補完関数の自作導入編

zsh の補完関数の自作導入編

あまり深く理解してないので識者のツッコミ大歓迎

補完を有効にする

取り敢えず最低限だけ

# 補完を有効にする