40超えたおっさんです。おっさんらしい趣味としてはハーレーダビッドソン・ロードキング(FLHR)に乗っています。Honda クロスカブ110 にも乗ってます。(2台)
プログラマ・インフラエンジニアです。
#!/bin/bash | |
set -eu | |
myid=$(whoami) | |
if [ "root" = $myid ]; then | |
echo root で実行しないでください | |
exit 1 | |
fi |
#!/bin/bash | |
set -eu | |
if [ -f $HOME/.gitconfig ] | |
then | |
rm -fv $HOME/.gitconfig || : | |
fi | |
if [ $(ls $HOME/.ssh/|grep ^id_|wc -l) -ne 0 ] |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
var net = require('net'); | |
var readline = require('readline'); | |
net.createServer(function (socket) { | |
socket.write("+OK Mock-Pop3-Server Ready."+"\r\n") ; | |
readline.createInterface(socket, socket).on('line', function (line) { | |
var msg = "-ERR unknown command"+"\r\n"; | |
var slicedLine = line.slice(0, 4).toUpperCase(); |
{ | |
"settingsVersion": "1.66", | |
"exclusionRules": [ | |
{ | |
"pattern": "https://mail.google.com/*", | |
"passKeys": "?jkpxercgils#uld/`" | |
}, | |
{ | |
"pattern": "https://calendar.google.com/*", | |
"passKeys": "?jkpxercgils#uld/`" |
query = ''' | |
{ | |
"ids": "ga:66453283", | |
"start_date": "30daysAgo", | |
"end_date": "yesterday", | |
"metrics": "ga:users", | |
"dimensions": "ga:operatingSystem,ga:browser", | |
"sort": "-ga:users" | |
} |
import re | |
query = ''' | |
{ | |
"ids": "ga:201135853", | |
"start_date": "30daysAgo", | |
"end_date": "yesterday", | |
"metrics": "ga:users", | |
"dimensions": "ga:operatingSystemVersion", | |
"sort": "-ga:users", |
#!/usr/bin/env php | |
<?php | |
$list = [ | |
'stage' => [ | |
'web' => [ | |
'namelike' => 'stage-web', | |
'autoscaling_group' => 'stage-web-autoscaling', | |
'launch_namelike' => 'stage-web-launch', | |
'instance_type' => 't3.micro', |
AWSTemplateFormatVersion: "2010-09-09" | |
Description: VPN Template | |
Parameters: | |
ACMArn: | |
Description: "AWS Certificate Manager Arn. See here https://console.aws.amazon.com/acm/home" | |
Default: arn:aws:acm:ap-northeast-1:000000000000:certificate/00000000-0000-0000-0000-000000000000 | |
Type: String | |
NatAMIImage: | |
Description: "Nat AMI Image" |