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 | |
| # Don't forget chmod +x up.sh | |
| # Installation: | |
| # brew install jq | |
| # | |
| # Define function in ~/.zshrc | |
| # container_name() { | |
| # docker ps --format "{{.Names}}" | grep "app-1" |
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
| services: | |
| - docker:24.0.5-dind | |
| variables: | |
| DOCKER_HOST: tcp://docker:2375 | |
| DOCKER_DRIVER: overlay2 | |
| DOCKER_TLS_CERTDIR: "" # don't start over TLS | |
| meta-build-image: | |
| interruptible: true |
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://julien.danjou.info/why-you-should-care-that-your-sql-ddl-is-transactional/ |
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
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
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
| ─roma@milushov ~ | |
| ╰─$ vim --version | |
| VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 5 2017 06:43:54) | |
| MacOS X (unix) version | |
| Included patches: 1-124 | |
| Compiled by Homebrew | |
| Huge version with MacVim GUI. Features included (+) or not (-): | |
| +acl +find_in_path -mouse_sysmouse -tag_any_white | |
| +arabic +float +mouse_urxvt +tcl | |
| +autocmd +folding +mouse_xterm +termguicolors |
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
| Bundle 'gmarik/vundle' | |
| Bundle 'scrooloose/nerdtree' | |
| "Bundle 'tpope/vim-commentary' | |
| "Bundle 'scrooloose/nerdcommenter' | |
| Bundle 'kien/ctrlp.vim' | |
| Bundle 'tommcdo/vim-exchange' | |
| Bundle 'tpope/vim-unimpaired' | |
| Bundle 'AndrewRadev/switch.vim' | |
| Bundle 'Raimondi/delimitMate' |
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
| Bundle "mattn/pastebin-vim" | |
| "Bundle 'mikewest/vimroom' | |
| Bundle "pangloss/vim-javascript" | |
| "g:javascript_conceal = 1 | |
| "Bundle 'majutsushi/tagbar' |
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 'sinatra' | |
| require 'json' | |
| require 'faker' | |
| POSITION = %w( | |
| Новичок | |
| Даритель | |
| Наставник | |
| Меценат | |
| ) |
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
| window._kaya_block_counter = window._kaya_block_counter || 1; | |
| module.exports = { | |
| uuid: function() { | |
| return window._kaya_block_counter++; | |
| }, | |
| // http://youmightnotneedjquery.com/#parse_html | |
| parseHTML: function(str) { | |
| var tmp = document.implementation.createHTMLDocument(); |
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 'csv' | |
| file = "#{Rails.root}/public/data_wheel_msk_actual.csv" | |
| wi = WheelItem.includes(:wheel, :brand).joins(store_items: :store).where('quantity > 0').where(stores: {city_id: 1}).uniq; nil; | |
| CSV.open( file, 'w' ) do |writer| | |
| wi.each do |s| | |
| path = app.catalog_wheel_wheel_item_path(s.brand,s.model,s.article.downcase) | |
| writer << [s.article, "http://www.kamtex.ru#{path}", "http://www.kamtex.ru#{s.wheel.image.url}"] | |
| end | |
| end |
NewerOlder