Skip to content

Instantly share code, notes, and snippets.

View tkqubo's full-sized avatar

Qubo tkqubo

  • 42
View GitHub Profile
@tkqubo
tkqubo / atom-setting.md
Created February 14, 2018 19:12
Atom setting

Key map file

'atom-text-editor[data-grammar="source gfm"]:not([mini])':
  'tab': 'markdown-folding:cycle'
  'cmd-i': 'markdown-writer:toggle-italic-text'
  'cmd-b': 'markdown-writer:toggle-bold-text'
  'cmd-j cmd-p': 'markdown-writer:jump-to-previous-heading'
  'cmd-j cmd-n': 'markdown-writer:jump-to-next-heading'
@tkqubo
tkqubo / Reactive Programming with Scala and Akka - Chapter 01.md
Last active November 15, 2021 10:17
Reactive Programming with Scala and Akka - Chapter 1

1 Background (page 2)

Today's system requirement

  • large number of request
  • huge amount of data
  • quick response time
  • (almost) 100% uptime

(page 3) If we compare the number of Internet users in the past decades with the number of users of the two afore mentioned websites, we can see that they now handle as much traffic as the entire Internet used to.

@tkqubo
tkqubo / 北陸のワイナリー.md
Last active February 9, 2016 14:02
北陸のワイナリー
@tkqubo
tkqubo / travis-setup.sh
Created October 27, 2015 10:32
travis setting
travis encrypt "${USERNAME}:${SLACK_TOKEN}" --add notifications.slack.rooms
travis encrypt GH_TOKEN="${GH_TOKEN}" --add
@tkqubo
tkqubo / bump-version.sh
Last active September 27, 2015 22:17
Bump npm version and create pull-request
#!/bin/bash
# Check commands existents
function commands() {
which $1 1>/dev/null || (echo "$1 not found" >&2; exit 1)
}
commands npm && commands git && commands hub && commands jq || exit 1
# Check git status
gitStatus=$(git status --porcelain 2>/dev/null)
@tkqubo
tkqubo / type-script.sh
Last active January 4, 2016 15:50
Create DefinitelyTyped Module.sh
#!/bin/bash
function error() {
echo $@ >&2
}
[[ ! -d $DEFINITELY_TYPED_DIRECTORY ]] && error 'DT directory not specified in DEFINITELY_TYPED_DIRECTORY' && exit 1
[[ -z $DEFINITELY_TYPED_NAME ]] && error 'GitHub name not specified in DEFINITELY_TYPED_USER' && exit 1
[[ -z $DEFINITELY_TYPED_USER ]] && error 'GitHub user not specified in DEFINITELY_TYPED_NAME' && exit 1
@tkqubo
tkqubo / html5TagSyntax.bnf
Last active April 23, 2024 01:49
EBNF notation for HTML5 tag syntax
tag-open := '<' tag-name ws* attr-list? ws* '>'
tag-empty := '<' tag-name ws* attr-list? ws* '/>'
tag-close := '</' tag-name ws* '>'
attr-list := (ws+ attr)*
attr := attr-empty | attr-unquoted | attr-single-quoted | attr-double-quoted
attr-empty := attr-name
attr-unquoted := attr-name ws* = ws* attr-unquoted-value
@tkqubo
tkqubo / setup ubuntu.md
Created March 15, 2012 22:25
Rackspace - Ubuntu setup

Change password

passwd

Add an admin user

adduser qubo
usermod -a -G sudo qubo

edit sudoers file

visudo

add following line

%sudo ALL=(ALL) ALL