Skip to content

Instantly share code, notes, and snippets.

View sgykfjsm's full-sized avatar

shigeyuki fujishima sgykfjsm

View GitHub Profile

Chapter 20 - SRE Team Lifecycles

IMAGE

IMAGE

Your First SRE Team

GoogleでのSREチームの始め方

  • 大きなプロジェクトの一部として新たにチームを作る
@sgykfjsm
sgykfjsm / system_info.py
Created February 16, 2017 06:15
Pythonの色々な情報を取得する
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import platform
print 'platform.machine(): %s ' % (platform.machine(), )
print 'platform.node(): %s ' % (platform.node(), )
print 'platform.processor(): %s ' % (platform.processor(), )
print 'platform.python_compiler(): %s ' % (platform.python_compiler(), )
function handleFileSelect(e) {
e.stopPropagation();
e.preventDefault();
var files = e.originalEvent.dataTransfer.files;
console.log("files: ", files);
var output = [];
for (var i = 0, f; f = files[i]; i++) {
console.info(i, ':', f);
@sgykfjsm
sgykfjsm / ssh_client.go
Created September 14, 2016 09:10 — forked from iamralch/ssh_client.go
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@sgykfjsm
sgykfjsm / Makefile.golang
Created August 3, 2016 14:40 — forked from dnishimura/Makefile.golang
Makefile for Golang projects
# Makefile for a go project
#
# Author: Jon Eisen
# site: joneisen.me
#
# Targets:
# all: Builds the code
# build: Builds the code
# fmt: Formats the source files
# clean: cleans the code
@sgykfjsm
sgykfjsm / Dockerfile
Last active May 6, 2019 15:51
circleciのカスタムビルダーイメージにperlをインストールするやつ
FROM circleci/build-image:enterprise-base
# Languages
ARG use_precompile=true
ENV USE_PRECOMPILE $use_precompile
ADD circleci-provision-scripts/perl.sh /opt/circleci-provision-scripts/perl.sh
ADD circleci-provision-scripts/circleci-perl-5.24.0_0.0.1_amd64.deb /opt/circleci-provision-scripts/circleci-perl-5.24.0_amd64.deb
RUN circleci-install perl 5.24.0
RUN sudo -H -i -u ubuntu plenv global 5.24.0
#!/usr/bin/env bash
for i in $(seq 1 3)
do
curl --silent -XGET "localhost:8080/todos/${i}" \
--write-out '\nGET, %{http_code}, %{content_type}\n'
sleep 1
done
curl --silent -XGET "localhost:8080/todos/foo" \
@sgykfjsm
sgykfjsm / main.go
Created February 21, 2016 16:20
get plugin information from pom.xml
package main
import (
"encoding/xml"
"fmt"
"io/ioutil"
"log"
"os"
)
@sgykfjsm
sgykfjsm / main.go
Created February 21, 2016 07:41
tdewolff/minify sample using reader and writer
package main
import (
"bufio"
"log"
"os"
"github.com/tdewolff/minify"
"github.com/tdewolff/minify/svg"
)
package main
import (
"fmt"
"log"
"time"
"github.com/astaxie/beego/orm"
_ "github.com/go-sql-driver/mysql"
)