45超えたおっさんです。おっさんらしい趣味としてはハーレーダビッドソン・ロードキング(FLHR)に乗っていましたが手放しました。今は Honda クロスカブ110 にも乗ってます。 ここ半年ほど家事 洗濯、掃除、料理バリバリやってます。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
myid=$(whoami) | |
if [ "root" = $myid ]; then | |
echo root で実行しないでください | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"settingsVersion": "1.66", | |
"exclusionRules": [ | |
{ | |
"pattern": "https://mail.google.com/*", | |
"passKeys": "?jkpxercgils#uld/`" | |
}, | |
{ | |
"pattern": "https://calendar.google.com/*", | |
"passKeys": "?jkpxercgils#uld/`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query = ''' | |
{ | |
"ids": "ga:66453283", | |
"start_date": "30daysAgo", | |
"end_date": "yesterday", | |
"metrics": "ga:users", | |
"dimensions": "ga:operatingSystem,ga:browser", | |
"sort": "-ga:users" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
query = ''' | |
{ | |
"ids": "ga:201135853", | |
"start_date": "30daysAgo", | |
"end_date": "yesterday", | |
"metrics": "ga:users", | |
"dimensions": "ga:operatingSystemVersion", | |
"sort": "-ga:users", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
NewerOlder