Skip to content

Instantly share code, notes, and snippets.

View fredngo's full-sized avatar

Fred Ngo fredngo

View GitHub Profile
% vagrant up --debug
INFO global: Vagrant version: 2.3.3
INFO global: Ruby version: 2.7.6
INFO global: RubyGems version: 3.1.6
INFO global: VAGRANT_DOTFILE_PATH="/Volumes/VMs/Vagrant/machines"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
% vagrant up --debug
INFO global: Vagrant version: 2.3.3
INFO global: Ruby version: 2.7.6
INFO global: RubyGems version: 3.1.6
INFO global: VAGRANT_DOTFILE_PATH="/Volumes/VMs/Vagrant/machines"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.3.3/gems/vagrant-2.3.3/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
@fredngo
fredngo / list.md
Created November 5, 2021 15:14 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@fredngo
fredngo / cookbook_icon.png
Last active April 9, 2018 03:24
Styles for CookBook
cookbook_icon.png
@fredngo
fredngo / gist:b8d0417d85a43185ba35
Created July 25, 2014 21:53
Cloud66 error with undefined method `auto_strip_attributes'
root@c66homeopathyjackal:/var/deploy/homeopathy/web_head/current# tail -59 /var/deploy/homeopathy/web_head/current/log/nginx_error.log
App 10882 stdout:
App 10882 stdout: I, [2014-07-25T21:49:35.303580 #10882] INFO -- : ** [Raven] Raven 0.9.4 ready to catch errors
App 10882 stdout:
[ 2014-07-25 21:49:36.1727 5030/7f512376b700 Pool2/Implementation.cpp:883 ]: Could not spawn process for group /var/deploy/homeopathy/web_head/current#default: An error occured while starting up the preloader.
in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:451)
in 'std::string Passenger::ApplicationPool2::SmartSpawner::negotiatePreloaderStartup(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:562)
in 'void Passenger::ApplicationPool2::SmartSpawner::startPreloader()' (SmartSpawner.h:202)
in 'virtual Passenger::ApplicationPool2::ProcessPtr Passenger::ApplicationPool2::SmartSpawner:
@fredngo
fredngo / gist:5468325
Created April 26, 2013 15:54
Bash script that outputs the number of threads used by all processes belonging to the 'vagrant' user.
while true
do
# Command line inspired from http://askubuntu.com/a/88983
ps -u vagrant -o thcount | tail -n +2 | awk '{ num_threads += $1 } END { print num_threads }'
sleep 1
done