Skip to content

Instantly share code, notes, and snippets.

View Jesterovskiy's full-sized avatar
🇺🇦
Stand with Ukraine!

Oleksii Dashkevych Jesterovskiy

🇺🇦
Stand with Ukraine!
  • Ukraine
  • 16:42 (UTC +03:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jesterovskiy on github.
  • I am jesterovskiy (https://keybase.io/jesterovskiy) on keybase.
  • I have a public key ASDn3aAaaUQncD4TG262lwFr11_QT5qMDJc2o8C0KYmzwgo

To claim this, I am signing this object:

STAGE = (ENV['STAGE'] || 'development').freeze
RACK_ENV = (ENV['RACK_ENV'] || 'development').freeze
ROOT_PATH = Pathname(__FILE__).parent.dirname.realpath
Dotenv.load(File.expand_path("#{ROOT_PATH}/.env.#{RACK_ENV}", __FILE__))
class UplynkSynchronizeJob
def self.process_asset
puts 'Hello1'
create_video
puts 'Hello3'
end
end
module ComplexNetworks
class UplynkSynchronizeJob < ::UplynkSynchronizeJob
@Jesterovskiy
Jesterovskiy / space.html
Created December 26, 2016 10:15
space.html
<!DOCTYPE HTML>
<html>
<head>
<meta charset = "windows-1251">
<link type="text/css" rel="stylesheet" href="space.css">
<title>Space
</title>
</head>
<body>
<article>
Это код в GenServer который запускается каждые 5 минут
def handle_info(:work, state) do
IO.puts "Handle info"
body = HTTPoison.get!("long url").body
{:ok, pid} = GenServer.start_link(VideoProcessor.Process, [])
Enum.each(Floki.find(body, "item") |> Enum.slice(1, 2),
# Floki.find(body, "item"),
fn(x) ->
url = parse_xml(x, "link")
filename = parse_xml(x, "guid") <> ".mp4"
@Jesterovskiy
Jesterovskiy / gist:daf3ae182377a1b83b20
Created January 3, 2015 16:42
Gort installation dump
➜ ~ brew install --verbose --debug gort
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/gort.rb
/usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/go.rb
/usr/local/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Library/Formula/gort.rb
/usr/local/Library/Homebrew/build.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/go.rb
==> Downloading https://github.com/hybridgroup/gort/archive/0.3.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/gort-0.3.0.tar.gz
==> Verifying gort-0.3.0.tar.gz checksum
tar xf /Library/Caches/Homebrew/gort-0.3.0.tar.gz
==> Patching
@Jesterovskiy
Jesterovskiy / rake.log
Last active August 29, 2015 14:09
Rubinius install
** Invoke install (first_time)
** Invoke build:build (first_time)
** Invoke build:llvm (first_time)
** Execute build:llvm
** Invoke vm/vm (first_time)
** Invoke vm/gen/config_variables.h (first_time)
** Invoke library/rubinius/configuration.rb (first_time, not_needed)
** Invoke config.rb (first_time, not_needed)
** Execute vm/gen/config_variables.h
/Users/jester/.rvm/rubies/ruby-2.1.4/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
@Jesterovskiy
Jesterovskiy / postgis
Last active December 26, 2015 23:09
SemaphoreApp Postgis
echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" | sudo tee -a /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y postgresql-9.3-postgis-2.1 postgresql-9.3-postgis-2.1-scripts
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Facewatch Testing</title>
<link rel="stylesheet" href="../app/stylesheets/vendor/mocha.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<div id="mocha"></div>
header.program-pdf {
table.items {
.tr {
background-color: inherit;
background-image: none;
}
}
}