Skip to content

Instantly share code, notes, and snippets.

Kalys Osmonov kalys

Block or report user

Report or block kalys

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View some_controller.rb
+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
+
@kalys
kalys / gist:6d4d7dc1e7bc6e6d8cc9276519caf138
Created Oct 31, 2017
Установка астериска с webrtc
View gist:6d4d7dc1e7bc6e6d8cc9276519caf138
# Установка астериска с 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
@kalys
kalys / Readme.md
Created Oct 30, 2017 — forked from JoshCheek/Readme.md
Decrypting a Rails (v4.2.0) session
View Readme.md

How to get the values

Salts

$ 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 }'

Secret Key Base

View Linux commands.md

Уровень 1

  • ps
  • top
  • scp
  • pushd / popd / cd -
  • bg/fg/ctrl+z
  • netstat
  • ifconfig
  • su/sudo
  • screen, tmux
View backup.sh
#!/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": [
View rubyata_vacancies.md

Вакансии, опубликованные в чате Rubyata

office@spalmalo.com

Ребята, нам в Спалмало нужен middle разработчик на Ruby/ROR

Человек должен быть ответственным и уметь вести коммуникацию как с клиентом, так и внутри команды. Помогать в обучении и развитии джуниоров. Девопс навыки и знание английского приветствуются.

@mimikadze

Тааааак, Рубята у меня есть четыре вакансии разработчика на догадайтесь чем

View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View keybase.md

Keybase proof

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:

View gist:8822301
// ...
import com.escalatesoft.subcut.inject._
import NewBindingModule._
//...
trait SomeService {
def name:String
}
object RealService extends SomeService {
View gist:4994857
page.execute_script(%Q{$("#scrollElement").prop("scrollTop", 1000000).trigger('scroll')})
You can’t perform that action at this time.