Skip to content

Instantly share code, notes, and snippets.


Serg Podtynnyi shtirlic

View GitHub Profile
shtirlic / gist:5052306
Last active November 18, 2021 17:58 — forked from joelmoss/gist:2470666
View gist:5052306
set :stage, 'production'
set :shared_children, shared_children << 'tmp/sockets'
puma_sock = "unix://#{shared_path}/sockets/puma.sock"
puma_control = "unix://#{shared_path}/sockets/pumactl.sock"
puma_state = "#{shared_path}/sockets/puma.state"
puma_log = "#{shared_path}/log/puma-#{stage}.log"
namespace :deploy do
desc "Start the application"
shtirlic / build.log
Last active March 30, 2020 20:44
Clear Linux kernel 5.6 testing build
View build.log
Mock Version: 1.4.21
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/linux.spec'], chrootPath='/var/lib/mock/clear-linux/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f1c21192ac0>timeout=0uid=1000gid=1000user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--console=pipe', '--bind=/tmp/mock-resolv.jen2q097:/etc/resolv.conf']unshare_net=TrueprintOutput=True)
Using nspawn with args ['--capability=cap_ipc_lock', '--console=pipe', '--bind=/tmp/mock-resolv.jen2q097:/etc/resolv.conf']
Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6a1b257e9915400ba3c15d991d8d286f', '-D', '/var/lib/mock/clear-linux/root', '-a', '--capability=cap_ipc_lock', '--console=pipe', '--bind=
View rpinfo.txt
System Information
Raspberry Pi Zero W Rev 1.1
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION="10 (buster)"
Raspberry Pi reference 2019-09-26
shtirlic / gist:2146256
Created March 21, 2012 11:11
Disable Rack::Lint
View gist:2146256
module Rack
class Lint
def call(env = nil)
shtirlic / mono.rb
Last active May 21, 2017 16:55
Latest mono formula for homebrew
View mono.rb
require 'formula'
class Mono < Formula
#url ''
#sha1 'e2187f80366fcd65c55a1ab946f8d3b39e81be77'
url ''
sha1 '1a6e8c5a0c3d88d87982259aa04402e028a283de'
shtirlic / prfunct.plugin.zsh
Last active December 15, 2016 15:27
Simple oh-my-zsh plugin for projects management
View prfunct.plugin.zsh
# Go to the project dir
prcd() {
cd $PROJECTS_HOME/$project
# Create new project and cd in the project path and open ST
prnew() {
mkdir "$PROJECTS_HOME/$*" && cd "$PROJECTS_HOME/$*" && git init
View shairport-sync.rb
class ShairportSync < Formula
desc "AirTunes emulator. Shairport Sync adds multi-room capability."
homepage ""
url ""
sha256 "d04036241e5a811240c43a3ddfb05a119a6043e8c5f1f354872a88e6cbdaef07"
head ""
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
shtirlic / git-backup
Created November 30, 2011 12:36
Script for git repo backup in dropbox via git bundle
View git-backup
#!/usr/bin/env ruby
if __FILE__ == $0
bundle_name = ARGV[0] if (ARGV[0])
bundle_name = `pwd`.split('/').last.chomp if bundle_name.nil?
bundle_name += ".git.bundle"
puts "Backing up to bundle #{bundle_name}"
`git bundle create ~/Dropbox/backup/git-repos/#{bundle_name} --all`
shtirlic / dio.rb
Created April 15, 2013 19:48
Digital Ocean CLI on ruby Place it in ~/bin/dio
View dio.rb
#!/usr/bin/env ruby
require 'httparty'
require 'ostruct'
require "thor"
View mono-basic.rb
require 'formula'
class MonoBasic < Formula
url ''
homepage ''