Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍

Serg Podtynnyi shtirlic

🌍
View GitHub Profile
@shtirlic
shtirlic / build.log
Last active Mar 30, 2020
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_ID="10"
VERSION="10 (buster)"
Raspberry Pi reference 2019-09-26
View keybase.md

Keybase proof

I hereby claim:

  • I am shtirlic on github.
  • I am shtirlic (https://keybase.io/shtirlic) on keybase.
  • I have a public key whose fingerprint is 8E9F DE81 F95E 7CE2 C672 6B79 9D70 05BA E592 87C2

To claim this, I am signing this object:

View shairport-sync.rb
class ShairportSync < Formula
desc "AirTunes emulator. Shairport Sync adds multi-room capability."
homepage "https://github.com/mikebrady/shairport-sync"
url "https://github.com/mikebrady/shairport-sync/archive/2.6.tar.gz"
sha256 "d04036241e5a811240c43a3ddfb05a119a6043e8c5f1f354872a88e6cbdaef07"
head "https://github.com/mikebrady/shairport-sync.git"
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
View get-docker-socket-from-remote
#!/bin/bash
# get-docker-socket-from-remote <name> <user>@<host>
# Create a unix socket at /tmp/<name>-docker.sock which, when
# used will ssh to <user>@<host> and connect to the docker
# socket at <host>:///var/run/docker.sock
# Note:
# 1. This forks a subjob that manages the local socket.
# Rmember to kill that when your finished
@shtirlic
shtirlic / stm32_clocking.rb
Last active Aug 29, 2015
Clock calculation for STM32
View stm32_clocking.rb
require 'pp'
pp (2..15).map{|pllq| vco=pllq*48 ;{ {vco: vco,pllq: pllq} => [2,4,6,8].map{|pllp| { sysclk: vco/pllp,pllp: pllp }}}}
@shtirlic
shtirlic / dio.rb
Created Apr 15, 2013
Digital Ocean CLI on ruby Place it in ~/bin/dio
View dio.rb
#!/usr/bin/env ruby
require 'httparty'
require 'ostruct'
require "thor"
CLIENT_ID = ENV['DIGITAL_OCEAN_CLIENT_ID']
API_ID = ENV['DIGITAL_OCEAN_API_ID']
View mono-basic.rb
# http://www.mono-project.com/Compiling_Mono_on_OSX
require 'formula'
class MonoBasic < Formula
url 'http://download.mono-project.com/sources/mono-basic/mono-basic-2.10.tar.bz2'
homepage 'http://www.mono-project.com/'
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
shtirlic / tsocks.rb
Created Feb 26, 2013
tsocks formula for homebrew
View tsocks.rb
require 'formula'
class Tsocks < Formula
# The original is http://tsocks.sourceforge.net/
# This GitHub repo is a maintained fork with OSX support
homepage 'http://github.com/pc/tsocks'
head 'https://github.com/pc/tsocks.git'
depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3