Skip to content

Instantly share code, notes, and snippets.

View yokomotod's full-sized avatar

yokomotod yokomotod

View GitHub Profile
@yokomotod
yokomotod / function.go
Last active February 13, 2023 05:04
GKE events log monitoring (Cloud Function)
package k8seventalert
import (
"context"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"os"
"time"
@yokomotod
yokomotod / Dockerfile
Created March 13, 2021 08:29
MeCab multi-stage Dockerfile
FROM buildpack-deps:buster AS builder
WORKDIR /usr/src
RUN set -x \
# mecab
&& cd /usr/src \
&& curl -L -O -J "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE" \
&& tar xzf mecab-0.996.tar.gz \
&& cd mecab-0.996 \
@yokomotod
yokomotod / .Xmodmap.default
Created December 7, 2019 11:00
default `xmodmap -pke` on Ubuntu 19.10/ThinkPad
keycode 8 =
keycode 9 = Escape NoSymbol Escape
keycode 10 = 1 exclam 1 exclam
keycode 11 = 2 at 2 at
keycode 12 = 3 numbersign 3 numbersign
keycode 13 = 4 dollar 4 dollar
keycode 14 = 5 percent 5 percent
keycode 15 = 6 asciicircum 6 asciicircum
keycode 16 = 7 ampersand 7 ampersand
keycode 17 = 8 asterisk 8 asterisk
@yokomotod
yokomotod / gist:5984da85e644b08527ba8d880192e6df
Created October 4, 2019 16:26
gcloud all commands (Google Cloud SDK 265.0.0)
gcloud access-context-manager levels conditions list
gcloud access-context-manager levels create
gcloud access-context-manager levels delete
gcloud access-context-manager levels describe
gcloud access-context-manager levels list
gcloud access-context-manager levels update
gcloud access-context-manager perimeters create
gcloud access-context-manager perimeters delete
gcloud access-context-manager perimeters describe
gcloud access-context-manager perimeters list
@yokomotod
yokomotod / change.diff
Last active March 4, 2017 08:56
change.diff
133c133,134
< "SessionExtension.swift"
---
> "SessionExtension.swift",
> "SessionDetailInterfaceController.swift"
313a315,318
> "fileRef" : "SessionDetailInterfaceController.swift"
> },
> {
> "isa" : "PBXBuildFile",
@yokomotod
yokomotod / project.pbxproj
Last active September 14, 2019 16:02
Example.xcodeproj/project.pbxproj
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
9D8BB7EE232D445A00923C91 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9D8BB7ED232D445A00923C91 /* AppDelegate.swift */; };
@yokomotod
yokomotod / Google-Mobile-Ads-SDK.podspec.json
Last active August 29, 2015 14:21
Google-Mobile-Ads-SDK-Podspec
{
"name": "Google-Mobile-Ads-SDK",
"version": "7.2.2",
"summary": "Monetize your mobile applications with Google ads",
"description": "The Google Mobile Ads SDK is the latest generation in Google mobile advertising featuring refined ad formats and streamlined APIs for access to mobile ad networks and advertising solutions.",
"homepage": "https://developers.google.com/mobile-ads-sdk/",
"license": {
"type": "Copyright",
"text": "Copyright 2011 Google Inc. All Rights Reserved."
},
@yokomotod
yokomotod / file0.txt
Created August 12, 2014 00:13
[AutoLayout] Visual Format Languageが生成するNSLayoutConstraintを全手動で再現 ref: http://qiita.com/yokomotod/items/075ad42fe3e8fa02dd92
// Constraint(制約)を追加
[self.scrollView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"|-40-[view1(==240)]-20-[view2(==240)]-40-|"
options:0
metrics:0
views:NSDictionaryOfVariableBindings(view1, view2)]];