$ rails runner 'Rails.application.config.action_dispatch.tap { |c| p encrypted_cookie_salt: c.encrypted_cookie_salt, encrypted_signed_cookie_salt: c.encrypted_signed_cookie_salt }'
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
+class SomeController < ApplicationController | |
+ | |
+ def do_something | |
+ Thread.current[:counter] = Thread.current[:counter].to_i + 1 | |
+ if Thread.current[:counter] % 2 == 0 | |
+ Airbrake.merge_context(some_key: 'bla bla') | |
+ else | |
+ raise StandardError, 'bla bla' | |
+ end | |
+ |
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
# Установка астериска с webrtc | |
sudo apt-get install build-essential git libxml2 libxml2-dev libsqlite3-dev vim-nox libnewt0.52 libnewt-dev libuuid uuid-dev libjansson-dev libncurses5-dev | |
# srtp | |
wget http://downloads.sourceforge.net/project/srtp/srtp/1.4.4/srtp-1.4.4.tgz?r=&ts=1391106639&use_mirror=kaz | |
cd srtp | |
./configure --prefix=/usr | |
# pjproject |
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
#!/bin/bash | |
# you should install aws-cli | |
# create iam account for s3 bucket | |
# run ```aws configure``` and set id and secret | |
# then configure s3 bucket policy | |
# | |
# { | |
# "Version": "2012-10-17", | |
# "Statement": [ |
Вакансии, опубликованные в чате Rubyata
Ребята, нам в Спалмало нужен middle разработчик на Ruby/ROR
Человек должен быть ответственным и уметь вести коммуникацию как с клиентом, так и внутри команды. Помогать в обучении и развитии джуниоров. Девопс навыки и знание английского приветствуются.
Тааааак, Рубята у меня есть четыре вакансии разработчика на догадайтесь чем
I hereby claim:
- I am kalys on github.
- I am kalys_osmonov (https://keybase.io/kalys_osmonov) on keybase.
- I have a public key ASCIzPqahQIYKfH8iy4mdj7F_dcDQFn00ZCgGjhBR6hUAgo
To claim this, I am signing this object:
I hereby claim:
- I am kalys on github.
- I am kalys_osmonov (https://keybase.io/kalys_osmonov) on keybase.
- I have a public key whose fingerprint is 894D CE37 56DE 747B EE18 5ABE F15B 19A7 C2E0 0946
To claim this, I am signing this object:
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
// ... | |
import com.escalatesoft.subcut.inject._ | |
import NewBindingModule._ | |
//... | |
trait SomeService { | |
def name:String | |
} | |
object RealService extends SomeService { |
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
page.execute_script(%Q{$("#scrollElement").prop("scrollTop", 1000000).trigger('scroll')}) |
NewerOlder