Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
🚲

Oleksii Dashkevych Jesterovskiy

🔥
🚲
  • 4ireLabs
  • Ukraine
View GitHub Profile
View keybase.md

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:

View env.rb
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__))
View gist:f720ff4012153323a22321863aded0df
class UplynkSynchronizeJob
def self.process_asset
puts 'Hello1'
create_video
puts 'Hello3'
end
end
module ComplexNetworks
class UplynkSynchronizeJob < ::UplynkSynchronizeJob
View 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>
View gist:d238f796a6b6d12aa6e57f8bbcc2ca99
Это код в 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"
View gist:daf3ae182377a1b83b20
➜ ~ 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 Aug 29, 2015
Rubinius install
View rake.log
** 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 Dec 26, 2015
SemaphoreApp Postgis
View 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
View base.html
<!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>
View program.css.scss
header.program-pdf {
table.items {
.tr {
background-color: inherit;
background-image: none;
}
}
}