Skip to content

Instantly share code, notes, and snippets.

View sergeyklay's full-sized avatar
🇺🇦

Serghei Iakovlev sergeyklay

🇺🇦
View GitHub Profile
@DavertMik
DavertMik / Meetup.md
Last active January 21, 2016 05:25
Codeception Kyiv Meetup

Codeception Kyiv Meetup on July 1st, 20:00 Bierstube Pub. http://lh.com.ua/bierstube.html

Мы проводим первый митап разработчиков и пользователей Codeception. Обсудим новый релиз 2.1, поговорим о том как лучше тестировать PHP проекты и просто пообщаемся.

Встреча будет проходить 1 июля в 20:00 в пабе Бирштубе на Льва Толстого. http://lh.com.ua/bierstube.html Приходите, будем рады увидеть всех кто интересуется темой тестирования в PHP.

спрашивать столик на фамилию Шупило

@meatballhat
meatballhat / 00-intro.md
Last active February 25, 2016 23:26
Ubuntu Precise edge opt-in examples

Welcome to our new Ubuntu Precise infrastructure for public repositories

What should I do?

  • If your current .yml file is just using our existing sudo enabled Precise builds, then look here.
  • If you're using a simple os: matrix, then look here
  • If you're currently using our containerized Precise builds but would like to try the new virtualized platform, then look here
  • If you're using a more complex matrix:, look here

You can also review the files below for some additional details on the build routing but the items outlined above should get you going.

@rinatio
rinatio / config.rb
Last active June 15, 2016 19:43
Simple capistrano config.rb for yii/php app
# for more information look at help.github.com/capistrano/
set :application, "yii2-app-basic"
server "example.com", :web # your server address or IP
set :user, "username" # your username for ssh
set :use_sudo, false
# set the remote directory you're going to deploy to
set :deploy_to, "/home/#{user}/www/#{application}"
# disable rails specific normalize_assets property

Practical Cryptographic Release Branch Validation

One of the problems I've been thinking about recently is how to get reasonable cryptographic validation of release sources and artifacts without destroying usability. There are several randomly-assorted problems here:

  • SHA-1 is relatively easy to collide, and thus signed Git commits and tags are insufficient
  • Maintaining an auditable and relatively tamper-proof list of trusted signatures is hard
  • "Strong crypto" is generally (and accurately) equated with "not human usable"

Things to Sign

@nragaz
nragaz / unicorn.rb
Created July 12, 2010 03:34
unicorn.rb
# unicorn_rails -c /srv/myapp/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
working_directory (rails_env == 'production' ? "/srv/myapp/current" : `pwd`.gsub("\n", ""))
worker_processes (rails_env == 'production' ? 10 : 4)
preload_app true
timeout 30
if rails_env == 'production'
@alexander-yakushev
alexander-yakushev / minitray.lua
Created December 7, 2013 12:24
Toggable tray for Awesome
-- Toggable tray, for those who don't like to see it all the time.
-- http://awesome.naquadah.org/wiki/Minitray
-- Usage: after requiring a module, bind minitray.toggle() to a key.
local wibox = require("wibox")
-- Module minitray
local minitray = { geometry = {} }
local function show()
@robbwagoner
robbwagoner / jmeter.md
Last active October 30, 2017 16:38
Install JMeter 3.0 into your home directory with JMeterPlugins

JMeter

Version 3.0

( set -e
cd /tmp
wget http://mirror.reverse.net/pub/apache//jmeter/binaries/apache-jmeter-3.0.tgz
wget https://www.apache.org/dist/jmeter/binaries/apache-jmeter-3.0.tgz.asc
wget -O - https://www.apache.org/dist/jmeter/KEYS |gpg --import
anonymous
anonymous / -
Created August 21, 2013 17:29
#!/usr/bin/env ruby
require 'bundler'
changelog_file = 'CHANGELOG'
entries = ""
helper = Bundler::GemHelper.new(Dir.pwd)
current_version = "v#{helper.gemspec.version}"
starting_version = nil
#!/usr/bin/env python
"""A noddy fake smtp server."""
import smtpd
import asyncore
class FakeSMTPServer(smtpd.SMTPServer):
"""A Fake smtp server"""
def __init__(*args, **kwargs):
@purcell
purcell / Aggregation.purs
Last active November 18, 2019 09:52
Multiple aggregates in a single pass, using Purescript
-- This is based on ideas from the excellent article "Beautiful Aggregations
-- with Haskell" by Evan Borden: https://tech.freckle.com/2017/09/22/aggregations/
module Aggregation where
import Prelude
import Data.Foldable (foldMap)
import Data.Monoid.Additive (Additive(..))
import Data.Newtype (un)