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
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)
1.9.3-p551 :005 > Benchmark.bm{|x| x.report { sleep(RUBY_VERSION.to_f) } }
user system total real
0.000000 0.000000 0.000000 ( 1.900123)
2.1.5 :002 > Benchmark.bm{|x| x.report { sleep(RUBY_VERSION.to_f) } }
user system total real
0.000000 0.000000 0.000000 ( 2.100181)
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Monaco",
"font_size": 12,
"ignored_packages":
[
"Handlebars",
"Theme - Nexus",
"Vintage"
┌─[meal@air] - [~] - [Tue Oct 14, 02:07]
└─[$] <> gem install nokogiri --no-ri --no-rdoc
Fetching: mini_portile-0.6.0.gem (100%)
Successfully installed mini_portile-0.6.0
Fetching: nokogiri-1.6.3.1.gem (100%)
Building native extensions. This could take a while...
Building nokogiri using packaged libraries.
Building libxml2-2.8.0 for nokogiri with the following patches applied:
- 0001-Fix-parser-local-buffers-size-problems.patch
- 0002-Fix-entities-local-buffers-size-problems.patch
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
int main(int argc, char **argv)
{
@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)