To run tests for specific file remove/comment the respective exclude and use:
$ AR_TEST_FILES=test/cases/view_test.rb bundle exec rake test:activerecord
test/cases/adapters/postgresql/change_schema_test.rb
To run tests for specific file remove/comment the respective exclude and use:
$ AR_TEST_FILES=test/cases/view_test.rb bundle exec rake test:activerecord
test/cases/adapters/postgresql/change_schema_test.rb
class Item | |
def initialize(value: ) | |
@value = value | |
end | |
def subitems | |
@subitems ||= [ | |
Item.new(value: 1), | |
Item.new(value: 2), | |
] |
-- show running queries (>= 9.2) | |
SELECT pid, | |
age(clock_timestamp(), query_start) AS age, | |
usename, state, query, waiting, | |
age(clock_timestamp(), xact_start) AS xact_age | |
FROM pg_stat_activity | |
WHERE state != 'idle' | |
AND query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY age DESC; |
module EtaReport | |
def total | |
@total ||= whatever.count | |
end | |
def started_at | |
@started_at ||= Time.now | |
end | |
def progress_feedback(processed) |
# docker build -t ruby-1.8.7 . | |
# docker run -it --rm ruby-1.8.7 | |
FROM ubuntu:16.04 | |
WORKDIR /root | |
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y ruby-build autoconf subversion bison | |
RUN apt install -y mecab mecab-ipadic-utf8 wget |
Fonte: http://gohorseprocess.wordpress.com
1- Pensou, não é XGH.
XGH não pensa, faz a primeira coisa que vem à mente. Não existe segunda opção, a única opção é a mais rápida.
2- Existem 3 formas de se resolver um problema, a correta, a errada e a XGH, que é igual à errada, só que mais rápida.
this was the final command for me
xinput -set-prop "DualPoint Stick" "Device Enabled" 0
source: https://cederlys.wordpress.com/2010/07/13/disabling-the-track-stick-in-ubuntu/
upstream prax_unsecure_backend { | |
server localhost:20559; | |
} | |
server { | |
listen 80; | |
server_name *.dev; | |
server_name *.xip.io; | |
server_name *.rafael.nz; |
Google has currently available a DNS over HTTPS service in beta. source: https://developers.google.com/speed/public-dns/docs/dns-over-https
I couldn't find any api endpoint to make calls. But looking arround, I found a repository at github with some code to use such api. source: https://github.com/learnaddict/dnsoverhttps/blob/7bec8802fe8e85d31f75e74d46f57e7880e09e9f/dnsoverhttps.go#L12
With this I could make a request and get some result:
runs | sent | fail | total |
---|---|---|---|
simulated | 768 | 1577 | 2345 |
for real | 838 | 1584 | 2422 |
total | 1606 | 3161 | 4767 |