Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View shogo82148's full-sized avatar
🏠
Working from home

ICHINOSE Shogo shogo82148

🏠
Working from home
View GitHub Profile
http://ajaxime.chasen.org/
http://akiym.hateblo.jp/entry/2013/05/22/122438
http://alpha.mixi.co.jp/entry/2012/10814/
http://alumi.hateblo.jp/entry/2012/03/22/163845
http://amacbee.hatenablog.com/entry/2016/02/28/210544
http://amath.colorado.edu/documentation/LaTeX/prosper/
http://ameblo.jp/mofu-mofu-alpaca/entry-10868656211.html
http://andante.in/i/android%E3%82%A2%E3%83%97%E3%83%AAtips/twitter4j%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6oauth%E8%AA%8D%E8%A8%BC%E3%82%92%E3%82%A2%E3%83%97%E3%83%AA%E5%86%85%E3%81%A7%E8%A1%8C%E3%81%86%E6%96%B9%E6%B3%95/
http://aokcub.hateblo.jp/entry/2012/07/29/215011
http://askubuntu.com/questions/116020/python-https-requests-urllib2-to-some-sites-fail-on-ubuntu-12-04-without-proxy
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
<!ENTITY nbsp "&#160;">
<!ENTITY zwsp "&#8203;">
<!ENTITY nbhy "&#8209;">
<!ENTITY wj "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.39 (Ruby 3.2.2) -->
<?rfc tocindent="yes"?>
/Users/shogo/src/github.com/reviewdog/reviewdog/README.md
194:44 error "in many cases" is wordy or unneeded textlint-rule-write-good
194:47 error "many" is a weasel word and can weaken meaning textlint-rule-write-good
247:61 error "especially" can weaken meaning
@shogo82148
shogo82148 / event.json
Created August 4, 2021 14:27
The event.json for creating pull request
{
"action": "opened",
"number": 15,
"pull_request": {
"_links": {
"comments": {
"href": "https://api.github.com/repos/shogo82148/github-action-test/issues/15/comments"
},
"commits": {
"href": "https://api.github.com/repos/shogo82148/github-action-test/pulls/15/commits"
This file has been truncated, but you can view the full file.
2020-05-05T17:30:15.519000+00:00 2020/05/05/[$LATEST]598cbdfd46c64bcfa7882b9e8b6ba28c START RequestId: 701c4c72-89bc-47da-9518-20894ea81152 Version: $LATEST
2020-05-05T17:30:20.396000+00:00 2020/05/05/[$LATEST]598cbdfd46c64bcfa7882b9e8b6ba28c [DEBUG] 2020-05-05T17:30:20.396Z 701c4c72-89bc-47da-9518-20894ea81152 certbot version: 1.3.0
2020-05-05T17:30:20.396000+00:00 2020/05/05/[$LATEST]598cbdfd46c64bcfa7882b9e8b6ba28c [DEBUG] 2020-05-05T17:30:20.396Z 701c4c72-89bc-47da-9518-20894ea81152 Arguments: ['renew', '--noninteractive', '--agree-tos', '--email', 'shogo82148@gmail.com', '--dns-route53', '--config-dir', '/tmp/tmpeh3937l6/config-dir/', '--work-dir', '/tmp/tmpeh3937l6/word-dir/', '--logs-dir', '/tmp/tmpeh3937l6/logs-dir/', '--quiet']
2020-05-05T17:30:20.396000+00:00 2020/05/05/[$LATEST]598cbdfd46c64bcfa7882b9e8b6ba28c [DEBUG] 2020-05-05T17:30:20.396Z 701c4c72-89bc-47da-9518-20894ea81152 Discovered plugins: PluginsRegistry(PluginEntryPoint#certbot-route53:auth,PluginEntryPoint#dns-route53,PluginEntryPoint#m
@shogo82148
shogo82148 / null.go
Created April 15, 2020 06:20
snippet for handling pointers to built-in types
package null
import "time"
func stringPtr(v string) *string {
return &v
}
func stringValue(v *string) string {
if v == nil {
diff --git a/xray/sql_context.go b/xray/sql_context.go
index 1148866..6ff2160 100644
--- a/xray/sql_context.go
+++ b/xray/sql_context.go
@@ -102,7 +102,7 @@ type driverConn struct {
}
func (conn *driverConn) Ping(ctx context.Context) error {
- return Capture(ctx, conn.attr.dbname, func(ctx context.Context) error {
+ return Capture(ctx, "ping", func(ctx context.Context) error {
@echo off
:ARGPARSE
if "%~1" == "--cxx" (
echo cl.exe
) else if "%~1" == "--cc" (
echo cl.exe
) else if "%~1" == "--prefix" (
rem TODO
) else if "%~1" == "--exec-prefix" (
2020-01-14T19:53:34+09:00 [DEBUG] Beginning segment named Test
2020-01-14T19:53:34+09:00 [DEBUG] Beginning subsegment named lambda
2020-01-14T19:53:34+09:00 [DEBUG] Beginning subsegment named marshal
2020-01-14T19:53:34+09:00 [DEBUG] Closing subsegment named marshal
2020-01-14T19:53:34+09:00 [DEBUG] Beginning subsegment named attempt
2020-01-14T19:53:34+09:00 [DEBUG] Beginning subsegment named connect
2020-01-14T19:53:34+09:00 [DEBUG] Beginning subsegment named dns
2020-01-14T19:53:34+09:00 [DEBUG] Closing subsegment named dns
2020-01-14T19:53:34+09:00 [DEBUG] Closing subsegment named connect
2020-01-14T19:53:34+09:00 [DEBUG] Closing subsegment named attempt
#!/usr/bin/env bash
go version
perl -anE 'my $a = "\$ENV{GOOS}=\"$F[0]\"; \$ENV{GOARCH}=\"$F[1]\";"; say $a; eval $a; system("go", "build", ".")' <<'END'
aix ppc64
android 386
android amd64
android arm
android arm64
darwin 386