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
| term = "xterm-256color" | |
| theme = TokyoNight Night | |
| font-family = "MesloLGS Nerd Font Mono" | |
| font-size = "14" | |
| font-feature=-liga | |
| font-thicken=true | |
| background-opacity = 1.0 |
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
| # Enable mouse control (clickable windows, panes, resizable panes) | |
| set -g mouse on | |
| set -g xterm-keys on | |
| set -g default-terminal "tmux-256color" | |
| set -g escape-time 0 | |
| # don't do anything when a 'bell' rings | |
| set -g visual-activity off | |
| set -g visual-bell off | |
| set -g visual-silence off |
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
| call plug#begin() | |
| " List your plugins here | |
| Plug 'tpope/vim-sensible' | |
| Plug 'morhetz/gruvbox' | |
| Plug 'dracula/vim', { 'name': 'dracula' } | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'ghifarit53/tokyonight-vim' | |
| call plug#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
| # frozen_string_literal: true | |
| module AsyncWrapper | |
| def self.included(base) | |
| base.extend(ClassMethods) | |
| end | |
| def self.extended(base) | |
| base.extend(ClassMethods) | |
| 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
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { | |
| "key": "cmd+shift+.", | |
| "command": "erb.toggleTags", | |
| "when": "editorTextFocus && editorLangId == erb" | |
| }, | |
| { | |
| "key": "cmd+1", | |
| "command": "workbench.action.openEditorAtIndex1" |
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
| require 'pry' | |
| require 'benchmark' | |
| require 'httparty' | |
| def http_get(url) | |
| response = HTTParty.get(url) | |
| # p response.status | |
| if response.code != 200 | |
| raise StandardError.new("http_get (#{url}) Error: #{response.code}") |
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
| # https://alacritty.org/config-alacritty.html | |
| import = [] | |
| [font] | |
| size = 14.0 | |
| normal = { family = 'JetBrainsMono Nerd Font Mono' } |
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
| ## Mount NVMe EBS Extra Volume | |
| https://docs.aws.amazon.com/pt_br/AWSEC2/latest/UserGuide/ebs-using-volumes.html | |
| https://devopscube.com/mount-ebs-volume-ec2-instance/ | |
| https://ripon-banik.medium.com/mount-nvme-ebs-volume-on-ec2-and-persist-on-reboot-f29fd86f9fee | |
| lsblk -f | |
| mkfs -t ext4 /dev/nvme1n1 | |
| file -s /dev/nvme1n1 | |
| mkdir /data |
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
| # frozen_string_literal: true | |
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'json', require: true | |
| end | |
| class Hash |
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
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
NewerOlder