Skip to content

Instantly share code, notes, and snippets.

View bouzuya's full-sized avatar

bouzuya bouzuya

View GitHub Profile
# Description:
# clojure bot
https = require 'https'
module.exports = (robot) ->
bot_url = process.env.HUBOT_CLOJUREBOT_URL
bot_port = process.env.HUBOT_CLOJUREBOT_PORT
robot.hear /^(\(.*\))$/ig, (msg) ->
httprequest = msg.http("http://" + bot_url + ":" + bot_port)
# swith to sudo
sudo -i
# create swap
touch /2GiB.swap
chattr +C /2GiB.swap
fallocate -l 2048m /2GiB.swap
chmod 600 /2GiB.swap
mkswap /2GiB.swap

なんかダメだな、Qiita見てると 「恐らくはJavaScriptの達人であろう所のTwitterやGoogleのプログラマ達が取り組んですらあの体たらく、常人はJavaScript避けるべき」な主張してる人見かけるし、それって自分の無能を棚に上げてチャレンジしないって言ってるようにしか聞こえないし、それでいいとするならそれでいいけど、そんな悲しい主張、Qiitaみたいなエッジな技術者がたくさん集まるような場所ですんなよっていいたくなる。

Node学園に来てくれてる海外エンジニアはそんなの気にしないでUX最適にするっていうのにチャレンジしてるからあんなに活躍できてるわけで、なんでそんな主張して賛成してる奴多いんだよ。そんなんだから日本のweb開発遅れるんだよって言いたくなる。

@romaninsh
romaninsh / swapon.service
Created December 1, 2014 10:05
Set up swap on CoreOS
create this file in your /root folder
$ fleetctl load swapon.service
$ fleetctl start swapon.service
This will create swap file on all nodes of your CoreOS cluster without prior setup.
See also http://cloudinit.readthedocs.org/en/latest/topics/examples.html#adjust-mount-points-mounted
@paf31
paf31 / 24days.md
Last active August 8, 2023 05:53
24 Days of PureScript

This blog post series has moved here.

You might also be interested in the 2016 version.

@bouzuya
bouzuya / shuburi.md
Last active August 29, 2015 14:11
bouzuya 版週ぶり (bouzuya's shuburi) / 旧・週ぶり (shuburi) 初期コンセプト
@vvakame
vvakame / usage.ts
Created January 4, 2015 13:20
commander https://www.npmjs.com/package/commander をTypeScriptになじみやすく書きなおす例
/// <reference path="../typings/node/node.d.ts" />
import command = require("../lib/index");
var root = command
.create<{replace: boolean; config: string[];}>()
.description("foo bar")
.option("-r, --replace", "replace files")
.option("-c, --config <file>", "specified config file")
.action((opts, rest) => {
@deepak1556
deepak1556 / dom.js
Last active June 6, 2017 02:31
virtual-dom with dom-delegator
var h = require('virtual-dom/h');
var diff = require('virtual-dom/diff');
var patch = require('virtual-dom/patch');
var createElement = require('virtual-dom/create-element');
var Delegator = require('./dom-delegator')
var state = {
clicks: function (ev) {
delegator.unlistenTo('click')
console.log(ev)
@bouzuya
bouzuya / coreos-cluster.md
Created January 31, 2015 08:40
CoreOS cluster メモ

独習 CoreOS cluster

Goal

  • CoreOS cluster の安定稼働
  • CoreOS の知識を増やす

Method

  • 公式のドキュメントを読みつつ、ローカルに CoreOS cluster をつくり、ためす
if(document.documentMode !== void 0){
alert("Internet Explorer は 11.x を含む全てのバージョンで標準の仕様から逸脱しています。\nIEの使用を直ちに中止してください。");
window.open("http://www.google.com/chrome/", '_blank');
location.href = "https://www.mozilla.org/ja/firefox/";
}