This file contains 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
# Example to use Docker instead of containerd & nerdctl | |
# $ limactl start ./docker.yaml | |
# $ limactl shell docker docker run -it -v $HOME:$HOME --rm alpine | |
# To run `docker` on the host (assumes docker-cli is installed): | |
# $ export DOCKER_HOST=$(limactl list docker --format 'unix://{{.Dir}}/sock/docker.sock') | |
# $ docker ... | |
# Example to run ubuntu using vmType: vz instead of qemu (Default) | |
# This example requires Lima v0.14.0 or later and macOS 13. |
This file contains 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
# More docs on Dockerfile syntax => https://docs.docker.com/engine/reference/builder/ | |
# Set proper ruby version from the right image https://hub.docker.com/_/ruby?tab=tags | |
FROM ruby | |
WORKDIR /home/app | |
ENV PORT 3000 | |
EXPOSE $PORT |
This file contains 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
# based on http://www.natontesting.com/2010/01/11/updated-script-to-list-all-cucumber-step-definitions/ | |
# | |
desc 'List all defined steps' | |
task :steps do | |
require 'hirb' | |
extend Hirb::Console | |
puts "CUCUMBER steps:" | |
puts "" | |
step_definition_dir = "features/step_definitions" |
This file contains 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
//+----------------------------------------------------------------------------+ | |
//| e-CloseByProfit.mq4 | | |
//| Ким Игорь В. aka KimIV | | |
//| http://www.kimiv.ru | | |
//| | | |
//| С доработками от: | | |
//| Андрей Ерёмин | | |
//| http://aeremin.ru | | |
//| | | |
//| | |
This file contains 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 'mina/bundler' | |
require 'mina/git' | |
set :application, "forum" | |
set :domain, '%SERVERNAME%' | |
set :deploy_to, "%PATH-TO-APPLICATION%" | |
set :repository, '%REPOSITORY-URL%.git' | |
set :branch, 'master' | |
set :login, "%LOGIN%" |
This file contains 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
alias 'pg_sql_restore'='PGPASSWORD=SOMEPASSWORD psql -cO -U username -d dbname -h localhost -f ' # + set path to backup file | |
alias 'pg_tar_restore'='PGPASSWORD=SOMEPASSWORD pg_restore -cO -U username -d dbname -h localhost ' # + set path to backup file |
This file contains 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
#root { scroll-spy data-top-buffer="200" } | |
div spy="profile_info_part" | |
| Spy on profile info part and add 'active'class to this div | |
div | |
a name="profile_info_part" id="profile_info_part" |
This file contains 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
# For windows only. | |
# | |
csv_string = CSV.generate(col_sep: ";", encoding: 'Windows-1251') do |csv| | |
csv << "Add some data" | |
end | |
send_data(csv_string.encode('Windows-1251'), type: 'text/csv; charset=windows-1251; header=present', disposition: "attachment", filename: "file_to_export.csv") |
This file contains 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
# Hack for using proxy on MacOS X | |
export http_proxy="http://LOGIN:PASSWORD@ADDRESS:PORT" | |
export ftp_proxy="http://LOGIN:PASSWORD@ADDRESS:PORT" | |
export FTP_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT" | |
export HTTP_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT" | |
export ALL_PROXY="http://LOGIN:PASSWORD@ADDRESS:PORT" | |
# Aliases | |
alias curl="curl -x LOGIN:PASSWORD@ADDRESS:PORT" | |
alias svn=colorsvn |
NewerOlder