Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View naa0yama's full-sized avatar

Naoki Aoyama naa0yama

  • Tokyo, Japan
  • 23:06 (UTC +09:00)
View GitHub Profile
@echo off
echo ==========================================================================
echo = Tom Clancy's The Division 2 Cleaner =
echo = Division 2 ver. 3260693 =
echo = Ref https://gist.github.com/naa0yama/227888f9064e617a02f0205c4a87b2a5 =
echo ==========================================================================
set Division2_DIR=%USERPROFILE%\Documents\My Games\Tom Clancy's The Division 2\
echo Division2 Directory %Division2_DIR%
cd /d %Division2_DIR%
@naa0yama
naa0yama / markdown.md
Created June 6, 2020 14:21
Cumulus の絵r−あ

dir

.
├── Dockerfile
├── ansible.cfg
├── inventory
├── known_hosts
├── playbook
├── poetry.lock
// ==================================================================
// Google Cloud Platform Cloud DNS
// ==================================================================
module "dns-private-zone" {
source = "terraform-google-modules/cloud-dns/google"
version = "3.0.0"
project_id = "exsample"
type = "public"
name = "exsample-com"
domain = "exsample.com."
@naa0yama
naa0yama / file0.txt
Created July 16, 2018 06:22
Docker で blackbox_exporter の icmp をするメモ ref: https://qiita.com/FoxBoxsnet/items/b4f5dd9b1d9469570b4b
Permissions
The ICMP probe requires elevated privileges to function:
Windows: Administrator privileges are required.
Linux: root user or CAP_NET_RAW capability is required.
Can be set by executing setcap cap_net_raw+ep blackbox_exporter
BSD / OS X: root user is required.
@naa0yama
naa0yama / BEGEMOT-PF-MIB.patch
Created January 5, 2018 04:04
snmp_expoter で 16進文字化けしたのでMIBを修正した。 ref: https://qiita.com/FoxBoxsnet/items/2531bba86db5f0e748da
diff --git a/BEGEMOT-PF-MIB.txt b/BEGEMOT-PF-MIB.txt
index c88fac7..88f8b2c 100644
--- a/BEGEMOT-PF-MIB.txt
+++ b/BEGEMOT-PF-MIB.txt
@@ -20,7 +20,9 @@ IMPORTS
InetAddress, InetAddressType, InetAddressPrefixLength
FROM INET-ADDRESS-MIB
begemot
- FROM BEGEMOT-MIB;
+ FROM BEGEMOT-MIB
@naa0yama
naa0yama / file0.txt
Created December 27, 2017 23:57
MacBook で ISO を DD したら起動できなかったのでメモ ref: https://qiita.com/FoxBoxsnet/items/04e20d5e72b9b58b97f9
$ diskutil unmountDisk /dev/disk2
$ dd if=<isoimage.iso> of=/dev/disk2 bs=1m
@naa0yama
naa0yama / authorization
Last active October 25, 2017 23:50
MacBook で Yubikey 環境を作る ref: http://qiita.com/FoxBoxsnet/items/712b6d37147bf780f43e
auth required /usr/local/lib/security/pam_yubico.so mode=challenge-response
{
"twitter": {
"mappings": {
"twitter": {
"properties": {
"record": {
"properties": {
"created_at": {
"type": "text",
"fields": {
@naa0yama
naa0yama / twiter-streaming-api.json
Created October 5, 2017 02:49
Twitter API: Tweet data dictionaries
{
"created_at": "Wed Aug 27 13:08:45 +0000 2008",
"id": 114749583439036416,
"id_str": "114749583439036416",
"text": "Tweet Button, Follow Button, and Web Intents javascript now support SSL http://t.co/9fbA0oYy ^TS",
"source": "Twitter for Mac",
"truncated": true,
"in_reply_to_status_id": 114749583439036416,
"in_reply_to_status_id_str": "114749583439036416",
"in_reply_to_user_id": 819797,
#cloud-config
hostname: host001
rancher:
docker:
engine: docker-1.12.6
services:
console:
environment:
TZ: 'JST-9'