$> curl "https://gist.githubusercontent.com/pftg/fa8fe4ca2bb4638fbd19324376487f42/raw/f9056244c416d2f56d6d94290e5ecef5960abf66/rejuvenation.rb" | rubyor
$> ruby rejuvenation.rb
$> yarn install| # docker run --rm -it -v $PWD:/app -w /app durosoft/crystal-alpine:latest crystal run basic_experiment.cr | |
| require "./test_data" | |
| require "http/client" | |
| require "time" | |
| started_at = Time.monotonic | |
| WORKER_COUNT = 2000 |
$> curl "https://gist.githubusercontent.com/pftg/fa8fe4ca2bb4638fbd19324376487f42/raw/f9056244c416d2f56d6d94290e5ecef5960abf66/rejuvenation.rb" | rubyor
$> ruby rejuvenation.rb
$> yarn installpackage main
/* Билеты по Проектированию Высоко нагруженных систем
| CHROME_ARGS = { | |
| "allow-running-insecure-content" => nil, | |
| "autoplay-policy" => "user-gesture-required", | |
| "disable-add-to-shelf" => nil, | |
| "disable-background-networking" => nil, | |
| "disable-background-timer-throttling" => nil, | |
| "disable-backgrounding-occluded-windows" => nil, | |
| "disable-breakpad" => nil, | |
| "disable-checker-imaging" => nil, | |
| "disable-client-side-phishing-detection" => nil, |
| - restore_cache: | |
| keys: | |
| - v1-asset-cache-{{ arch }}-{{ .Branch }} | |
| - v1-asset-cache- | |
| - run: bundle exec rake assets:precompile | |
| - save_cache: | |
| key: v1-asset-cache-{{ arch }}-{{ .Branch }}-{{ epoch }} | |
| paths: |
| # .circleci/config.yml | |
| version: 2 | |
| jobs: | |
| lint: | |
| environment: | |
| - BUNDLE_GEMFILE: Gemfile.tools | |
| docker: | |
| # specify the version you desire here | |
| - image: circleci/ruby:2.4.2-stretch-node-browsers | |
| environment: |
ffmpeg -i tmp/audio-notes.m4a -acodec libmp3lame -aq 9 tmp/audio-notes.mp3
for file in *.m4a ; do ffmpeg -i $file -acodec libmp3lame -aq 9 ${file%.m4a}.mp3 ; done
| diff --git a/Gemfile b/Gemfile | |
| index 4983412..454bd32 100644 | |
| --- a/Gemfile | |
| +++ b/Gemfile | |
| @@ -11,6 +11,10 @@ gem 'pg', '>= 0.18', '< 2.0' | |
| gem 'puma', '~> 3.11' | |
| # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker | |
| gem 'webpacker', '>= 4.0.x' | |
| + | |
| +# Turn your Rails app into a Progressive Web App. https://github.com/rossta/serviceworker-rails |
| # Ruby CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
| # https://circleci.com/docs/2.0/configuration-reference | |
| version: 2 | |
| jobs: | |
| android: | |
| working_directory: ~/project/android | |
| docker: | |
| - image: circleci/android:api-29-node |
| # Ruby CircleCI 2.0 configuration file | |
| # | |
| # Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
| # | |
| version: 2 | |
| jobs: | |
| build: | |
| environment: | |
| BUNDLE_GEMFILE: Gemfile | |
| BUNDLE_WITHOUT: "production:staging:development" |