Skip to content

Instantly share code, notes, and snippets.

@odekopoon
odekopoon / clojure_async_list.md
Last active December 8, 2015 06:22
building blocks for asynchronous programming in Clojure
@odekopoon
odekopoon / list.md
Created December 5, 2015 14:42
Webで探すClojure入門書
@odekopoon
odekopoon / clojure_async_list2.md
Last active December 8, 2015 06:23
infrastructure for asynchronous programming in Clojure

HTTP Communications

aleph - asynchronous communication for clojure

Aleph is a library for client and server network programming, built on top of Netty. It provides implementations of the HTTP, TCP, and UDP protocols, using a consistent and simple stream representation atop each. doc http://aleph.io github https://github.com/ztellman/aleph

Catacumba - Web toolkit for Clojure.

Catacumba is an asynchronous and non-blocking web toolkit for Clojure built on top of ratpack and netty and with design influenced by ring, pedestal and ratpack. doc https://funcool.github.io/catacumba/latest/

@odekopoon
odekopoon / sample.sh
Last active April 23, 2016 10:45
ponylang sample: build ffi-struct on OS X
cd target
clang -dynamiclib ../examples/ffi-struct/struct.c -o /usr/local/lib/libffi-struct.dylib
ponyc ../examples/ffi-struct
./ffi-struct
# BlueMixのコンテナの状況
$ cf ic images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.ng.bluemix.net/ibm-mobilefirst-starter latest 12a850394210 2 weeks ago 523.2 MB
registry.ng.bluemix.net/ibm-node-strong-pm latest abee75a82335 13 days ago 237.7 MB
registry.ng.bluemix.net/ibmliberty 8.5.5.7-webProfile6 b381c440bf5f 2 weeks ago 295.1 MB
registry.ng.bluemix.net/ibmliberty javaee7 a95d4f2b93bb 2 weeks ago 325 MB
registry.ng.bluemix.net/ibmliberty latest a95d4f2b93bb 2 weeks ago 325 MB
registry.ng.bluemix.net/ibmliberty webProfile6 6f80eb4ec5cd 2 weeks ago 264.3 MB
@odekopoon
odekopoon / zabbix.memory.sh
Last active July 8, 2018 06:08
add some change to ZabbixでMuninのMemoryグラフを再現する https://www.riscascape.net/archives/6588
#!/bin/sh
TEXT=$(/bin/cat /proc/meminfo | /bin/grep -F -e 'MemTotal:' -e 'MemFree:' -e 'Buffers:' -e 'Cached:' -e 'Slab:' -e 'SReclaimable:' -e 'SUnreclaim:' -e 'PageTables:' -e 'SwapCached:' -e 'SwapTotal:' -e 'SwapFree:' | /bin/awk '{print $2 * 1024}'|/usr/bin/tr '\n' ',')
IFS=','
set -- $TEXT
MemTotal=$1
MemFree=$2
Buffers=$3
@odekopoon
odekopoon / mackerel.memory.sh
Last active July 8, 2018 05:54
Mackerel カスタムメトリック inspired by ZabbixでMuninのMemoryグラフを再現する https://www.riscascape.net/archives/6588
#!/bin/sh
if [ "$MACKEREL_AGENT_PLUGIN_META" = "1" ]; then
/bin/cat << 'EOF';
# mackerel-agent-plugin
{
"graphs": {
"memory": {
"label": "Memory usage - Munin style",
"unit": "bytes",
@odekopoon
odekopoon / netlify-deploy.log
Last active September 18, 2018 04:33
netlifyのdeployログを確認したところ、サービス側のドキュメントで説明がなかったと思われるが、clojureやphpのビルドツールも含まれている。
4:00:14 PM: Build ready to start
4:00:15 PM: Fetching cached dependencies
4:00:15 PM: Failed to fetch cache, continuing with build
4:00:15 PM: Starting to prepare the repo for build
4:00:16 PM: No cached dependencies found. Cloning fresh repo
4:00:16 PM: git clone [email protected]:odekopoon/antd
4:00:17 PM: Preparing Git Reference refs/heads/master
4:00:18 PM: Starting build script
4:00:18 PM: Installing dependencies
4:00:19 PM: Downloading and installing node v8.11.3...
@odekopoon
odekopoon / memo.md
Last active September 18, 2018 04:27
【雑記】 GraalVM 1.0-RC6のAOTコンパイル