Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yuki Matsukura matsubo

🏠
Working from home
View GitHub Profile
View mackerel-agent.conf
[plugin.metrics.dht11]
command = "sudo -u pi python3 /home/pi/DHT11_Python/mackerel.py"
type = "metric"
View 社外の人材との契約形態.md
  • 業務委託契約
    • 請負契約
    • 準委任契約(=SES契約)
  • 派遣契約
@matsubo
matsubo / arp_table_usage.sh
Created Jun 7, 2020
Get current stat via telnet on RTX830
View arp_table_usage.sh
#!/bin/bash
HOST=$1
COMMAND="show arp"
$(dirname $0)/rtx_command.sh $HOST "${COMMAND}" | grep "Count" | awk '{print $2}'
@matsubo
matsubo / main.yml
Last active Jun 4, 2020
Deploy to S3 using GitHub Actions
View main.yml
name: Upload Website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
View sheet_to_calendar.gs
function scheduleShifts() {
var spreadsheet = SpreadsheetApp.getActiveSheet();
var calendarId = spreadsheet.getRange("A2").getValue();
var eventCal = CalendarApp.getCalendarById(calendarId);
var signups = spreadsheet.getRange("A5:D12").getValues();
for ( x=0; x < signups.length; x++) {
View clowdwatch_to_slack.py
import boto3
import json
import logging
import os
from base64 import b64decode
from urllib.request import Request, urlopen
from urllib.error import URLError, HTTPError
View list.csv
V2 JE1WFV JA/KN-003 22/03/20 0030 144.920MHz FM JJ1IZY
V2 JE1WFV JA/KN-003 22/03/20 0035 144.920MHz FM JI1AVM
V2 JE1WFV JA/KN-003 22/03/20 0040 433.040MHz FM JA1PFS
V2 JE1WFV JA/KN-003 22/03/20 0105 433.100MHz FM 7M4MHN
V2 JE1WFV JA/KN-003 22/03/20 0705 144.900MHz FM JI1ANN
V2 JE1WFV JA/KN-002 22/03/20 0402 144.920MHz FM JJ1IZY
V2 JE1WFV JA/KN-002 22/03/20 0407 433.180MHz FM JA1QOV
V2 JE1WFV JA/KN-002 22/03/20 0407 433.360MHz FM JN1IKP
V2 JE1WFV JA/KN-002 22/03/20 0440 433.080MHz FM JJ1UAK
View list.csv
V2 JE1WFV JA/KN-003 22/03/20 0930 144.920MHz FM JJ1IZY
V2 JE1WFV JA/KN-003 22/03/20 0935 144.920MHz FM JI1AVM
V2 JE1WFV JA/KN-003 22/03/20 0940 433.040MHz FM JA1PFS
V2 JE1WFV JA/KN-003 22/03/20 1005 433.100MHz FM 7M4MHN
V2 JE1WFV JA/KN-002 22/03/20 1302 144.920MHz FM JJ1IZY
V2 JE1WFV JA/KN-002 22/03/20 1307 433.180MHz FM JA1QOV
V2 JE1WFV JA/KN-002 22/03/20 1307 433.360MHz FM JN1IKP
V2 JE1WFV JA/KN-002 22/03/20 1340 433.080MHz FM JJ1UAK
V2 JE1WFV JA/KN-003 22/03/20 1605 144.900MHz FM JI1ANN
View docker-compose up
Recreating tmp_db_1 ... done
Attaching to tmp_db_1
db_1 | Initializing database
db_1 | 2020-02-17T02:42:39.099611Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
db_1 | 2020-02-17T02:42:40.000580Z 0 [Warning] InnoDB: New log files created, LSN=45790
db_1 | 2020-02-17T02:42:40.121895Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
db_1 | 2020-02-17T02:42:40.204983Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 2a3b1552-512f-11ea-88f6-0242ac1d0002.
db_1 | 2020-02-17T02:42:40.210694Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
db_1 | 2020-02-17T02:42:40.215070Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
db_1 | Database initialized
View diff.sh
matsu@dell ~> diff /usr/share/doc/direwolf/examples/direwolf.conf direwolf.conf
78c78
<
---
> ADEVICE stdin null
132c132
< MYCALL N0CALL
---
> MYCALL JE1WFV-10
143c143