$ free | grep 'buffers/cache' | awk '{ print $4 }'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# -- 8< -- | |
# Original source: https://gist.github.com/840590 | |
# Author: x@ES ([email protected]) | |
# | |
# This is draft. | |
# | |
# For load test you can run in therminal | |
# $ perl -e '$|=1;do{$l==$r or print "."; $l=$r}until(($r=time-$^T)>5000)' |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they're ugly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "# This file is GENERATED, all changes would be overwritten by ~/bin/build_ssh_config, place config to ~/.ssh/config.d/ instead" > ~/.ssh/config | |
cat ~/.ssh/config.d/* >> ~/.ssh/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/dry-rb/dry-schema/issues/448 | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem "dry-schema" | |
gem "awesome_print" | |
gem "minitest" | |
end |