Skip to content

Instantly share code, notes, and snippets.

View meal's full-sized avatar
🚀

Mateusz Kozak meal

🚀
View GitHub Profile
64 bytes from 10.66.66.7: icmp_seq=651 ttl=64 time=132001 ms
64 bytes from 10.66.66.7: icmp_seq=652 ttl=64 time=130988 ms
64 bytes from 10.66.66.7: icmp_seq=653 ttl=64 time=129964 ms
64 bytes from 10.66.66.7: icmp_seq=654 ttl=64 time=128941 ms
64 bytes from 10.66.66.7: icmp_seq=655 ttl=64 time=127918 ms
64 bytes from 10.66.66.7: icmp_seq=656 ttl=64 time=126894 ms
64 bytes from 10.66.66.7: icmp_seq=657 ttl=64 time=125871 ms
64 bytes from 10.66.66.7: icmp_seq=658 ttl=64 time=124848 ms
64 bytes from 10.66.66.7: icmp_seq=659 ttl=64 time=123824 ms
64 bytes from 10.66.66.7: icmp_seq=660 ttl=64 time=122801 ms
@meal
meal / rvm
Created November 18, 2016 10:15
rvm install 2.3.2 @ macOS sierra
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.3.2.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating system - please wait
Installing required packages: coreutils - please wait
Updating certificates in '/usr/local/etc/openssl/cert.pem'.
Requirements installation successful.
ruby-2.3.2 - #configure
ruby-2.3.2 - #download
@meal
meal / gist:f4740808372271f8ca712ee9e798f421
Created August 24, 2016 20:36 — forked from kalmbach/gist:4471560
Rake task sugar for Sequel Migrations (version, migrate, rollback, reset)
namespace :db do
require "sequel"
Sequel.extension :migration
DB = Sequel.connect(ENV['DATABASE_URL'])
desc "Prints current schema version"
task :version do
version = if DB.tables.include?(:schema_info)
DB[:schema_info].first[:version]
end || 0
@meal
meal / devise rspec
Created December 30, 2013 18:16
devise rspec
/Users/meal/.rvm/gems/ruby-2.0.0-p247/gems/devise-3.2.2/lib/devise/rails/routes.rb:469:in `raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError)
config.secret_key = '075fae100c96155d95773fadfea48eac44a126d732bcaadb6abadf202358fb6513f44dd7f1b651b4dc2dbaa2598aa3aa447fc1cb0a6d4bea8b3a95be635fa6fa'
Please ensure you restarted your application after installing Devise or setting the key.
+__rvm_parse_args:652> [[ -n 4.3.11 ]]
+__rvm_parse_args:689> [[ -z info ]]
+__rvm_parse_args:692> [[ error == info || 0 -eq 1 || -n '' ]]
+__rvm_parse_args:16> [[ -n list ]]
+__rvm_parse_args:18> rvm_token=list
+__rvm_parse_args:20> (( 0 > 0 ))
+__rvm_parse_args:25> next_token=''
+__rvm_parse_args:28> case list ([[:alnum:]]*|@*)
+__rvm_parse_args:31> case list (use)
+__rvm_parse_args:31> case list (install|uninstall|reinstall|try_install)
@meal
meal / gist:5765332
Created June 12, 2013 13:40
ruby wrapper gc patched
export PATH ; PATH="/usr/local/rvm/gems/ruby-1.9.3-p429/bin:/usr/local/rvm/gems/ruby-1.9.3-p429@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p429/bin:/usr/local/rvm/bin:$PATH"
export rvm_env_string ; rvm_env_string='ruby-1.9.3-p429'
export rvm_path ; rvm_path='/usr/local/rvm'
export rvm_ruby_string ; rvm_ruby_string='ruby-1.9.3-p429'
unset rvm_gemset_name
export RUBY_VERSION ; RUBY_VERSION='ruby-1.9.3-p429'
export GEM_HOME ; GEM_HOME='/usr/local/rvm/gems/ruby-1.9.3-p429'
export GEM_PATH ; GEM_PATH='/usr/local/rvm/gems/ruby-1.9.3-p429:/usr/local/rvm/gems/ruby-1.9.3-p429@global'
export MY_RUBY_HOME ; MY_RUBY_HOME='/usr/local/rvm/rubies/ruby-1.9.3-p429'
export IRBRC ; IRBRC='/usr/local/rvm/rubies/ruby-1.9.3-p429/.irbrc'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_r/3whzfg6j7xd6ds4vjz35lvpc0000gn/T/pip-build-m2yvtea5/simplejson/setup.py", line 111, in <module>
run_setup(not IS_PYPY)
File "/private/var/folders/_r/3whzfg6j7xd6ds4vjz35lvpc0000gn/T/pip-build-m2yvtea5/simplejson/setup.py", line 108, in run_setup
**kw)
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
@meal
meal / robot.js
Created December 4, 2012 14:49
notb
//FightCode can only understand your robot
//if its class is called Robot
var friends = {}, id;
var Robot = function(robot) {
id = robot.id;
// friends is the set all friendly robots
friends[id] = id;
clone = robot.clone();
@meal
meal / robot.js
Created December 4, 2012 14:14 — forked from pveras/robot.js
ASIMO
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@meal
meal / robot.js
Created December 4, 2012 13:17
Robotron
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {