Skip to content

Instantly share code, notes, and snippets.

View tomoyk's full-sized avatar
🐢
Turtle

Tomoyuki KOYAMA tomoyk

🐢
Turtle
View GitHub Profile
@miyakogi
miyakogi / config.md
Last active July 1, 2025 08:25
JSON, YAML, ini, TOML ざっくり比較
@neguse
neguse / note_pc_with_english_keyboard_in_2015.md
Created August 30, 2015 17:57
2015年に日本で英語配列キーボードを備えたノートパソコンを買いたい

2015年に日本で英語配列キーボードを備えたノートパソコンを買いたい

背景

  • ノートパソコンあると便利
    • 外でプログラム書いたり、勉強会のメモとったり、ネットみたりに使う
    • プログラム書くにはiOSとかAndroidはきついので、フル機能のOSが動いてほしい
  • 買うとしたら手頃な価格で買いたい

電源を入れたときにtty1を自動ログインする設定あれこれ集.md

CentOS

CentOS7 (systemd)

次のコマンドを実行

$ sudo systemctl edit getty@tty1

@darcyliu
darcyliu / centos7_timechine.sh
Last active April 25, 2022 18:17
Install Time Machine service on CentOS 7
# Install Time Machine service on CentOS 7
# http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.1.7_SRPM_for_Fedora_and_CentOS
# http://confoundedtech.blogspot.com/2011/07/draft-draft-ubuntu-as-apple-time.html
yum install -y rpm-build gcc make wget
# install netatalk
yum install -y avahi-devel cracklib-devel dbus-devel dbus-glib-devel libacl-devel libattr-devel libdb-devel libevent-devel libgcrypt-devel krb5-devel mysql-devel openldap-devel openssl-devel pam-devel quota-devel systemtap-sdt-devel tcp_wrappers-devel libtdb-devel tracker-devel
yum install -y bison docbook-style-xsl flex dconf
@voluntas
voluntas / mqtt.rst
Last active February 15, 2025 04:35
MQTT とはなんだったのか

MQTT とはなんだったのか

更新:2017-05-09
作者:@voluntas
バージョン:3.14
URL:http://voluntas.github.io/

MQTT をググって調べた人向け

@pxsta
pxsta / ArduinoRoomdoor.ino
Last active June 6, 2017 02:02
Arduinoで扉の開閉監視する
void setup() {
Serial.begin(9600) ;
pinMode(13, OUTPUT);
pinMode(2, INPUT_PULLUP);
}
unsigned long prev=0;
void loop() {
int x;
unsigned long current = millis();
@leommoore
leommoore / file_magic_numbers.md
Last active July 14, 2026 17:25
File Magic Numbers

File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

Image Files

@anarchivist
anarchivist / slack_munin.sh
Last active May 21, 2025 11:45
Slack notification script for Munin
#!/bin/bash
# Slack notification script for Munin
# Mark Matienzo (@anarchivist)
#
# To use:
# 1) Create a new incoming webhook for Slack
# 2) Edit the configuration variables that start with "SLACK_" below
# 3) Add the following to your munin configuration:
#
@xaviervia
xaviervia / nginx-environment.md
Last active July 1, 2019 12:45
Nginx and Docker links with environment variables, a love story

How to add environment variables to nginx.conf

This is the hack approach to adding environment variables to the nginx configuration files. As with most Google results for this search, the reason is Docker.

The setup

I intended to deploy two Docker containers.