Skip to content

Instantly share code, notes, and snippets.

View sadfuzzy's full-sized avatar
🎯
Focusing

Denis Savitskiy sadfuzzy

🎯
Focusing
View GitHub Profile
@sadfuzzy
sadfuzzy / tmux_cheatsheet.markdown
Last active March 4, 2017 14:52 — forked from kaplan/tmux_cheatsheet.markdown
My most commonly used tmux commands and reference sites for learning tmux

tmux handy commands and references

####sessions

tmux new -s session_name      # new session by name
tmux attach -t session_name     # attach session by name (you can also use a instead of attach)
tmux switch -t session_name     # switch session by name (you can also use a instead of attach)
tmux list-sessions              # list existing sessions
bind-key : new -s session_name  # new session from within a session  
// detach
tmux detach # detach currently attached session
@sadfuzzy
sadfuzzy / Gemfile
Last active March 6, 2017 14:18
Ruby Gemfile
gem 'traceroute' # Checks for undefined routes and unreachable actions.
gem 'bullet' # Checks for query optimizations.
gem 'rails_best_practices' # Checks for code optimization.
gem 'rubycritic' # Checks for code optimization.
gem 'sandi_meter' # Checks for compliance to Sandi Metz's rules for developers.
gem 'simplecov' #Enables coverage analysis of code.
gem 'overcommit' # Git coomit hooks
gem 'rubocop' # Show me errors in code style
gem 'rack-mini-profiler' # Show me slow code
gem 'brakeman' # Security inspector
@sadfuzzy
sadfuzzy / .rubocop.yml
Created March 22, 2017 15:01 — forked from kovalevsky/.rubocop.yml
HttpLab common rubocop config
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'db/schema.rb'
- 'vendor/**/*'
- 'tmp/**/*'
- 'bin/*'
- 'docs/**/*'
Metrics/LineLength:
@sadfuzzy
sadfuzzy / links.txt
Last active October 23, 2017 20:42
links

Keybase proof

I hereby claim:

  • I am sadfuzzy on github.
  • I am sadfuzzy (https://keybase.io/sadfuzzy) on keybase.
  • I have a public key ASBZfIRsmYU8jDwYvVOY2ubquZ-TjEWGB1qZ_L4J6l3Ffwo

To claim this, I am signing this object:

action="https://mycabinet.online/prepare" method="post"
input type="hidden" name="pid" value="#{@nko.pid}"
input type="hidden" name="sid" value="#{@nko.sid}"
input type="hidden" name="oid" value="#{Текущее время, unix формат}"
input type="hidden" name="rid" value="#{@publisher.id}"
input type="hidden" name="backurl" value="https://www.goody.im/pages/thankyou?nko_id=#{@nko.id}&nko_number=#{@nko.number}&orderid=#{orderid}&nko_title=#{@nko.title}&publisher_id=#{@publisher.id}&publisher_title=СуперТаня"
input type="hidden" name="nkoid" value="#{@nko.number}"
input type='text' name='sum' pattern="[0-9]{1,9}"
input type='text' name='payeer' placeholder='Имя' required=true
input type='text' name='email' placeholder='E–mail' required=true pattern=/\S+@\S+\.\S+/
@sadfuzzy
sadfuzzy / cloudSettings
Last active March 27, 2019 09:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-24T19:37:10.866Z","extensionVersion":"v3.2.7"}
@sadfuzzy
sadfuzzy / test_task.rb
Created March 11, 2019 15:38
test task
class Developer
# You need to implement Developer class so DataBase#find_developer method would not fail.
end
class DataBase
def find_developer(platform: :ruby, region: :london)
all_developers(platform, region).select do |you|
@sadfuzzy
sadfuzzy / Brewfile
Last active August 26, 2019 07:12
My brew dump
tap "adoptopenjdk/openjdk"
tap "caskroom/cask"
tap "caskroom/versions"
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "homebrew/services"
cask "osxfuse"
brew "openssl"
config.log_level = :info
config.lograge.enabled = true
config.log_formatter = ::Logger::Formatter.new
config.action_mailer.default_url_options = { host: 'goody.im', protocol: :https }
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
openssl_verify_mode: 'none',
tls: false,