Skip to content

Instantly share code, notes, and snippets.

View gn-spawn's full-sized avatar
🏠
Working from home

spawn gn-spawn

🏠
Working from home
View GitHub Profile
@gn-spawn
gn-spawn / hide-merge-message.js
Created June 3, 2023 09:27
特定の時間でmergeしたくないときにmerge messageを非表示にする
// ==UserScript==
// @name Hide Button during specific time
// @namespace http://your-namespace.com
// @version 1.0
// @description Hide a specific button during a specific time range
// @match https://github.com/gaudiy/gaudiy-monorepo/*
// @grant none
// ==/UserScript==
(function() {
@gn-spawn
gn-spawn / sl.cpp
Created June 28, 2021 13:38
m5atom_smartlock
#include "M5Atom.h"
#include <ESP32Servo.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <WebServer.h>
#include <ESPmDNS.h>
const char* ssid = "xx";
const char* password = "xx";
@gn-spawn
gn-spawn / m5nest.cpp
Created December 3, 2020 10:05
m5nest
#include <M5StickC.h>
#include <esp8266-google-home-notifier.h>
#define BTN_A_PIN 37
#define LED_PIN 10
#define LIGHT_PIN 36
const char *ssid = "Google NestがつながっているWiFiのSSID";
const char *password = "Google NestがつながっているWiFiのパスワード";
GoogleHomeNotifier ghn;
const char displayName[] = "Nest"; //Google Home のデバイス名
#include <M5Stack.h>
int state = LOW;
void setup() {
// put your setup code here, to run once:
M5.begin();
pinMode(GPIO_NUM_10, OUTPUT);
pinMode(GPIO_NUM_32, INPUT);
#!/bin/sh
# dockerをインストール
apt-get install -y docker.io
# kubeadm kubelet kubectlのインストール
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
const fs = require('fs');
const plist = require('plist');
const fuzzy = require('fuzzy');
const xml = plist.parse(fs.readFileSync('3PM.xml', 'utf8'))
let playlists = []
get_playlist(xml).forEach(song => {
playlists.push(`${song['Name']} / ${song['Artist']}`)
## PC更新
### やったこと
-
### 次回やること
-
## 基板
### やったこと
-
## 昼勤
### 業務内容
-
### 連絡事項
-
### 次回の予定
-
require 'crowi'
require 'sinatra'
require 'date'
client = Crowi::Client.new(base_url: "http://crowi.mlab.im.dendai.ac.jp/", access_token: "HOGE")
# Create page
post '/create' do
page = client.create_page("/日誌/#{Date.today}", params[:markdown]).body['page']
puts page
//Available in nodejs
var NodeWebcam = require( "node-webcam" );
//Default options
var opts = {
//Picture related