Skip to content

Instantly share code, notes, and snippets.

@waratuman
waratuman / submodule_strategy.rb
Created July 12, 2019 23:50 — forked from stevenscg/submodule_strategy.rb
Capistrano deploy strategy that supports git submodules (requires Capistrano v3.1.0 or later)
# this include won't work for some reason:
# include Capistrano::Git::DefaultStrategy
module SubmoduleStrategy
# check for a .git directory
def test
test! " [ -d #{repo_path}/.git ] "
end
use "net"
actor Main
let _userList: PcUser tag = PcUser
new create(env: Env) =>
try
TCPListener(
env.root as AmbientAuth,
PcNetTcpListenNotifier(_userList),
/api/v1/bundles?where={
"hash": {
"$in": [
"19d5b126c52fb9ffffaaebe614170c803cc713058d9869de210825d3b08e6eaa",
"29a2ae4ad9e1d034e47eea5c1cdc7e084827385ae4e7be24dc381f11069fa0f6",
"cc50394e7d030570a55efe594217d8f862452405594752992770ba4e784c70ad",
"0123080a199d96847512a4df411e006a3166a665a546c1cd07b0a73017ebf50d",
"212de7e00cd7a189ba7ffb0cfe12cc3447cd556744797dfefb4f11352783b6f6",
"50e0bc4e138f67e93413f370152aa0d5971302b05bce00f66b18301adda5e41b",
"9f373476b885c00551490532153c5d7d3e05f68a8efecab505f51b9a741b2758",
17zuoye
3D Robotics
Adatao
Addepar
Affirm
Airware
Algal Scientific
AlienVault
Ambiq Micro
Anki
{
"glass": "\f000",
"music": "\f001",
"search": "\f002",
"envelope-o": "\f003",
"heart": "\f004",
"star": "\f005",
"star-o": "\f006",
"user": "\f007",
"film": "\f008",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ cd ~/src
$ rails new MLS
[35302] 28 Dec 16:15:00 * The server is now ready to accept connections on port 6379
[35302] 28 Dec 16:15:01 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:06 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:12 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:17 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:22 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:27 - 0 clients connected (0 slaves), 922256 bytes in use
[35302] 28 Dec 16:15:27 - Accepted 127.0.0.1:54585
[35302] 28 Dec 16:15:32 - 1 clients connected (0 slaves), 930848 bytes in use
[35302] 28 Dec 16:15:37 - DB 0: 1 keys (0 volatile) in 4 slots HT.
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached? You can select among five behavior:
#
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key accordingly to the LRU algorithm
# volatile-random -> remove a random key with an expire set
# allkeys->random -> remove a random key, any key
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations
#
@waratuman
waratuman / b
Created November 16, 2011 17:00
red.hs:13:23:
Couldn't match expected type `IO a0'
with actual type `Data.Map.Map k0 a1'
In the return type of a call of `Data.Map.insert'
In the expression: Data.Map.insert file (processFile file) acc
In the first argument of `foldr', namely
`(\ file acc -> Data.Map.insert file (processFile file) acc)'