I hereby claim:
- I am glowacki-dev on github.
- I am bombasarkadian (https://keybase.io/bombasarkadian) on keybase.
- I have a public key ASCUnp-hwRR0im6dkqxetfUx7IDdN8oFusGwKSI4BUrIbAo
To claim this, I am signing this object:
# Extract video frames, set fps to actual fps of the video | |
ffmpeg -c:v libvpx-vp9 -i video.webm -vf fps=30 frame-%03d.png | |
# Merge frames back into movie and encode it to hevc with transparency | |
ffmpeg -i 'frame-%03d.png' -c:v hevc_videotoolbox -allow_sw 1 -alpha_quality 1 -vtag hvc1 -vf fps=30 hevc.mp4 |
I hereby claim:
To claim this, I am signing this object:
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails" |
image: registry.your-gitlab-server.com/some-user/some-project:master | |
variables: | |
RAILS_ENV: test | |
POSTGRES_DB: test | |
POSTGRES_USER: test | |
POSTGRES_PASSWORD: test-password | |
before_script: | |
- bundle install --without development production |
FROM ruby:2.5.0 | |
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
RUN apt-get -qyy install nodejs libpq-dev cmake | |
COPY Gemfile* / | |
RUN bundle install --without development production | |
RUN rm Gemfile* | |
ENV LANG=C.UTF-8 |
image: "ruby:2.4" | |
cache: | |
paths: | |
- vendor/ruby | |
variables: | |
RAILS_ENV: test | |
POSTGRES_DB: test | |
POSTGRES_USER: test |
file = "/tmp/#{SecureRandom.uuid}" | |
select = <<~MySQL | |
SELECT id + #{@user_offset}, email, name, created_at, updated_at | |
FROM users | |
INTO OUTFILE '#{file}_users' | |
FIELDS TERMINATED BY ',' | |
OPTIONALLY ENCLOSED BY '"' | |
LINES TERMINATED BY '\n'; | |
MySQL |
4.times do |i| | |
fork do | |
... | |
end | |
end | |
Process.waitall |
INSERT INTO `foo` (`bar`, `baz`) VALUES (1, 2), (3, 4), … |
ALTER TABLE comments DISABLE TRIGGER ALL; |