Skip to content

Instantly share code, notes, and snippets.

View shtirlic's full-sized avatar
📡

Serg Podtynnyi shtirlic

📡
View GitHub Profile
@shtirlic
shtirlic / APKBUILD
Last active May 31, 2023 03:24
APKBUILD for nvtop for alpine with ardeno gpu support
# Maintainer: Serg Podtynnyi <serg@podtynnyi.com>
pkgname=nvtop
pkgver=3.0.2
pkgrel=1
pkgdesc="GPUs process monitoring for AMD, Intel,NVIDIA and Adreno"
url="https://github.com/Syllo/nvtop"
arch="aarch64"
license="GPL3"
depends="
ncurses
@shtirlic
shtirlic / build.log
Last active March 30, 2020 20:44
Clear Linux kernel 5.6 testing build
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=
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

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:

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
#!/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 August 29, 2015 14:07
Clock calculation for STM32
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 April 15, 2013 19:48
Digital Ocean CLI on ruby Place it in ~/bin/dio
#!/usr/bin/env ruby
require 'httparty'
require 'ostruct'
require "thor"
CLIENT_ID = ENV['DIGITAL_OCEAN_CLIENT_ID']
API_ID = ENV['DIGITAL_OCEAN_API_ID']
# 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/'
@shtirlic
shtirlic / gist:5052306
Last active November 18, 2021 17:58 — forked from joelmoss/gist:2470666
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"