require 'ruby-prof'
require 'ruby-prof-flamegraph'
result = RubyProf.profile do
# code to profile
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
# Paste into a root shell on your Ubuntu VM | |
curl -L https://gist.githubusercontent.com/meeee/5e252e93ba4589e67cf3/raw/faa25d74545ca527d713df2b843da43af3cf92ea/network > /etc/init.d/network && \ | |
chmod +x /etc/init.d/network && \ | |
echo "Suspend fix installed." |
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
module ConcurrentSpawn | |
def self.run(commands, &block) | |
processes = spawn(commands) | |
collect_output(processes, &block) | |
end | |
def self.spawn(commands) | |
processes = commands.map do |cmd| | |
r, w = IO.pipe |
Installation
npm install -g http-server
API Console unfortunately is not available on NPM. See its README for installation instructions.
You might have to run grunt
after installation. Grunt opens a web page, just close it.
Run:
Ubuntu 14.04.3
Install dropbear SSH server with automated hooks for being included in an initramfs.
apt-get install dropbear
Remove default private/public key for login, clear dss key (would be regenererated otherwise), remove insecure 1024-bit RSA host key and generate a new 2048-bit RSA host key (we'll have to keep the DSA-key, dropbear won't start otherwise - make sure to use RSA when connecting):
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
Apr 03, 2017 4:02:43 PM INFO com.dabsquared.gitlabjenkins.webhook.GitLabWebHook getDynamic | |
WebHook called with url: /project/docker_api_foo-features | |
Apr 03, 2017 4:02:43 PM FINE com.dabsquared.gitlabjenkins.webhook.build.PushBuildAction | |
Push: { | |
"object_kind" : "push", | |
"event_name" : "push", |