gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A gpg -a --export CD2EFD2A | sudo apt-key add -
This file contains hidden or 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/perl -w | |
# "script -t" will output a typescript with timings | |
# this script "scriptreplay" replays it | |
# run pod2man on it to get a man page | |
=head1 NAME | |
scriptreplay - play back typescripts, using timing information |
This file contains hidden or 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
I merged with repo | |
https://github.com/lynxbat/Razor/commit/e8aa65e8eafd54d81878eae0a2a07263635b622d (the last commit) | |
here the output: | |
730a8fe root 20 minutes ago Merge branch 'master', remote-tracking branch 'origin' | |
e8aa65e Nicholas Weaver 6 hours ago Fix for if OS Installer passes a partial Range value in Header. This is an invalid request but we must work around it to maintain compatibility | |
2637663 Nicholas Weaver 35 hours ago Wrong word in help text | |
cdf2229 Nicholas Weaver 2 days ago Removed active model | |
03fc1a5 Nicholas Weaver 2 days ago Brand new Active Model Slice |
This file contains hidden or 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
ProjectRazor Image Service Web Server started and listening on:8026 | |
Image root path: /opt/razor/image | |
{"@image_svc_host":"192.168.2.83","@persist_mode":"mongo","@persist_host":"127.0.0.1","@persist_port":27017,"@persist_timeout":10,"@admin_port":8025,"@api_port":8026,"@image_svc_port":8027,"@mk_tce_mirror_port":2157,"@mk_checkin_interval":60,"@mk_checkin_skew":5,"@mk_uri":"http://192.168.2.83:8026","@mk_register_path":"/razor/api/node/register","@mk_checkin_path":"/razor/api/node/checkin","@mk_fact_excl_pattern":"(^facter.*$)|(^id$)|(^kernel.*$)|(^memoryfree$)|(^operating.*$)|(^osfamily$)|(^path$)|(^ps$)|(^ruby.*$)|(^selinux$)|(^ssh.*$)|(^swap.*$)|(^timezone$)|(^uniqueid$)|(^uptime.*$)|(.*json_str$)","@mk_log_level":"Logger::ERROR","@mk_tce_mirror_uri":"http://localhost:2157/tinycorelinux","@mk_tce_install_list_uri":"http://localhost:2157/tinycorelinux/tce-install-list","@mk_kmod_install_list_uri":"http://localhost:2157/tinycorelinux/kmod-install-list","@image_svc_path":"/opt/razor/image","@register_timeout": |
This file contains hidden or 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
ProjectRazor Image Service Web Server started and listening on:8026 | |
Image root path: /opt/razor/image | |
{"@image_svc_host":"192.168.2.83","@persist_mode":"mongo","@persist_host":"127.0.0.1","@persist_port":27017,"@persist_timeout":10,"@admin_port":8025,"@api_port":8026,"@image_svc_port":8027,"@mk_tce_mirror_port":2157,"@mk_checkin_interval":60,"@mk_checkin_skew":5,"@mk_uri":"http://192.168.2.83:8026","@mk_register_path":"/razor/api/node/register","@mk_checkin_path":"/razor/api/node/checkin","@mk_fact_excl_pattern":"(^facter.*$)|(^id$)|(^kernel.*$)|(^memoryfree$)|(^operating.*$)|(^osfamily$)|(^path$)|(^ps$)|(^ruby.*$)|(^selinux$)|(^ssh.*$)|(^swap.*$)|(^timezone$)|(^uniqueid$)|(^uptime.*$)|(.*json_str$)","@mk_log_level":"Logger::ERROR","@mk_tce_mirror_uri":"http://localhost:2157/tinycorelinux","@mk_tce_install_list_uri":"http://localhost:2157/tinycorelinux/tce-install-list","@mk_kmod_install_list_uri":"http://localhost:2157/tinycorelinux/kmod-install-list","@image_svc_path":"/opt/razor/image","@register_timeout": |
This file contains hidden or 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
require 'tidy' | |
#Tidy.path = '/opt/local/lib/libtidy.dylib' # or where ever your tidylib resides | |
Tidy.path = '/usr/lib/libtidy.A.dylib' | |
def generate(files) | |
tidy = Tidy.open(:show_warnings=>true) do |tidy| | |
tidy.options.indent = 'auto' | |
tidy.options.show_body_only = true | |
tidy.options.output_xhtml = true |
This file contains hidden or 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
require 'timeout' | |
require 'htmlbeautifier' | |
def log(msg) | |
puts msg | |
end | |
view_files = Dir["app/**/**/**.erb"] | |
def beautify(file_name) |
This file contains hidden or 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/jamis/rbenv-gemset/ | |
Otherwise, clone rbenv-gemset to the `$HOME/.rbenv/plugins` directory: | |
$ mkdir -p ~/.rbenv/plugins |
This file contains hidden or 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
### sometimes your migrations don't works without already pre-populated database and your need only something to bootstrap the shell, use this script to import schema.rb without Rake-tasks and Rails! | |
require 'active_record' | |
require 'mysql2' | |
ROOT = File.join(File.dirname(__FILE__), '..') | |
DB_NAME = 'your_db_name' | |
['/db'].each do |folder| | |
$:.unshift File.join(ROOT, folder) |