Skip to content

Instantly share code, notes, and snippets.

View andriimosin's full-sized avatar
:shipit:
Excited

Andrii Mosin andriimosin

:shipit:
Excited
View GitHub Profile
require 'faraday'
require 'faraday_middleware'
require 'JSON'
class RollbarItemEraser
API_URL = 'https://api.rollbar.com/api/1/item/1049280555/instances'.freeze
OCCURANCE_API_URL = 'https://api.rollbar.com/api/1/instance/'.freeze
ROLLBAR_READ_TOKEN = 'ROLLBAR_READ_TOKEN'.freeze
@andriimosin
andriimosin / Sublime Preferences
Last active June 25, 2018 22:44
Sublime User preferences
{
"auto_complete": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"copy_with_empty_selection": true,
"ensure_newline_at_eof_on_save": true,
"font_size": 15,
"ignored_packages":
[
],
"index_files": true,
""
"" Janus setup
""
" Define paths
if has('win32') || has('win64') || has('win32unix')
let g:janus_path = expand("~/.vim/janus/vim")
let g:janus_vim_path = expand("~/.vim/janus/vim")
else
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ')
UPDATE order_checkers_data SET headcount_check = jsonb_set(headcount_check, '{type}', '"turnoffable"'),
display_online_check = jsonb_set(display_online_check, '{type}', '"turnoffable"'),
never_again_check = jsonb_set(never_again_check, '{type}', '"test"'), confirmed_status_check = jsonb_set(confirmed_status_check, '{type}', '"permanent"'),
feedback_check = jsonb_set(feedback_check, '{type}', '"snoozeable"'),
has_location_check = jsonb_set(has_location_check, '{type}', '"permanent"'),
state_is_not_under_revision_check = jsonb_set(state_is_not_under_revision_check, '{type}', '"permanent"'),
run_time_check = jsonb_set(run_time_check, '{type}', '"snoozeable"'),
email_delivery_check = jsonb_set(email_delivery_check, '{type}', '"snoozeable"');
UPDATE menu_checkers_data SET allergens_check = jsonb_set(allergens_check, '{type}', '"turnoffable"'),
#!/usr/bin/env bash
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz
mkdir vim && tar xzvf vim.tar.gz -C vim
export PATH=$PATH:/app/vim/bin
config/application.rb
config/environment.rb
config/environments/development.rb
config/environments/production.rb
config/environments/test.rb
config/initializers/secret_token.rb
config/initializers/session_store.rb
config/routes.rb
config.ru
app/views/layouts/application.html.erb