Skip to content

Instantly share code, notes, and snippets.

💭
Where's my Boy Bawang?

Toshiki Inami peco8

💭
Where's my Boy Bawang?
  • Rakuten, Inc
  • Tokyo
Block or report user

Report or block peco8

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View k8s_boilerplate
# kubectl create
(...)
Available Commands:
clusterrole Create a ClusterRole.
clusterrolebinding Create a ClusterRoleBinding for a particular ClusterRole
configmap Create a configmap from a local file, directory or literal value
deployment Create a deployment with the specified name.
job Create a job with the specified name.
namespace Create a namespace with the specified name
poddisruptionbudget Create a pod disruption budget with the specified name.
@peco8
peco8 / .gitconfig
Created Sep 1, 2017 — forked from pksunkara/.gitconfig
Sample of git config file (Example .gitconfig)
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
View gist:8de090a51a547a741b596bf622bf639e
```
#!/bin/bash
ps_out=`ps -ef | grep $1 | grep -v 'grep' | grep -v $0`
result=$(echo $ps_out | grep "$1")
if [[ "$result" != "" ]];then
echo "Running"
else
echo "Not Running"
fi
```
@peco8
peco8 / remove_gbprotect.txt
Created Jul 19, 2017
How to uninstall global protect out of mac
View remove_gbprotect.txt
sudo killall GlobalProtect && \
sudo chflags noschg /Applications/GlobalProtect.app/ && \
sudo rm -fR /Applications/GlobalProtect.app
View keyboard.txt
ubuntu のキーボードを日本語対応にしたいが、うまくいかず、、
まず、
desktop manager として
- unity
- awesome がある
ログインするときの◯で選べる
どうやら使ってみた感じだと unity は微妙だけれど
awesome は使いやすい。これなら乗り換えれる。
@peco8
peco8 / example_1.rb
Created Sep 11, 2016
#1 Collecting input
View example_1.rb
# No input
def seconds_in_day
24 * 60 * 60
end
# This is the same as below
SECONDS_IN_DAY = 24 * 60 * 60
@peco8
peco8 / implicit_conversion.rb
Last active Sep 11, 2016
# 2 Use built-in conversion protocols
View implicit_conversion.rb
winners = [
'HomeStar',
'King of town',
'Marzipan',
'Strongpad'
]
Place = Struct.new(:index, :name, :prize)
first = Place.new(0, 'first', 'Peasants quest game')
View benchmark.rb
class ProgrammerProvicer
PROGRAMMERS = [
{
name: 'tanaka',
skills: ['Java','Oracle', 'HTML']
},
{
name: 'toshiki',
skills: ['C','Ruby', 'php']
},
View aasm-1.rb
class Plan < ActiveRecord::Base
include AASM
aasm column: 'state' do
state :pending, initial: true
state :processing
state :finished
state :errored
event :process, after: Proc.new { start } do
@peco8
peco8 / tsn.srt
Created Apr 2, 2016 — forked from shelling/tsn.srt
The Social Network subtitle
View tsn.srt
1
00:00:04,829 --> 00:00:09,829
Credit to: Sakti Tandi [1st Indonesian-Script]
English. Subs. and. Re-Sync. by npdv-iD
2
00:00:19,043 --> 00:00:21,168
You know there are more people
with genius IQ living in China
You can’t perform that action at this time.