Skip to content

Instantly share code, notes, and snippets.

View lemenkov's full-sized avatar

Peter Lemenkov lemenkov

View GitHub Profile
git clone https://github.com/erlang/otp.git
cd otp
./otp_build download_gdb_tools
./otp_build update_gdb_tools
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared-zlib --enable-sctp --enable-systemd --disable-silent-rules --enable-hipe --with-wx-config=/usr/bin/wx-config
make
# ./bin/x86_64-redhat-linux-gnu/jit-reader.so
make install DESTDIR=/var/tmp
@lemenkov
lemenkov / detailed_proposal.md
Last active May 28, 2025 10:52
Erlang stack improvements

Introduction

Packaging has always been a critical topic in IT. Its purpose is to address fundamental software management objectives: Continuous Testing, Continuous Delivery/Deployment, and Continuous Integration. Historically, we rely on package management systems of varying complexity to handle dependencies, build software, and package the resulting artifacts (compressed if necessary), along with integration scripts, dependency manifests, and digital signatures.

Over time, as modern programming languages evolved, we’ve seen the rise of language-specific build tools that offer rudimentary dependency management, delivery, and integration capabilities. Examples include (in no particular order):

  • CPAN (Perl)
  • CRAN (R)
  • Maven and related tools (Java)
  • PyPI (Python)
dnf install /usr/bin/kubeadm
dnf install ebtables ethtool iptables iproute-tc
systemctl enable kubelet.service
swapoff -a
systemctl enable containerd
systemctl start containerd
echo "br_netfilter" > /etc/modules-load.d/kubernetes.conf
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/kubernetes.con
@lemenkov
lemenkov / gist:6264d04d540bc2fb513100287032d2da
Created November 5, 2024 16:57
Create a new package in Fedora
fedpkg request-repo python-prometheus_client 1590452
fedpkg request-branch --all-releases
fedpkg request-branch --repo <source_package_name> f40
fedpkg request-branch epel9
module benoitb 1.0;
require {
type user_home_t;
type init_t;
class file { execute execute_no_trans ioctl map open read };
class lnk_file read;
}
#============= init_t ==============
setenforce 0
# run what you need
setenforce 1
cat /var/log/audit/audit.log | audit2allow -a -M benoitb
Edit go.mod (just commit hash and don't touch timestamp - go mod tidy will tell automatically)
go mod tidy
git commit -a -s -m "Update go.mod"
@lemenkov
lemenkov / remove_branches.sh
Created November 15, 2020 20:54
Remove unnecessary branches after checkout
for i in `git branch -a |grep remotes/lemenkov | sed -e "s,^\s*remotes/lemenkov/,,g"|grep -v master$` ; do git push lemenkov :${i} ; done
@lemenkov
lemenkov / gist:63a4ab10f9fecc8af046a75408ee5b91
Last active July 26, 2020 07:20
Как удалить лишнее с андроида
1) Зайти в меню разработчика
2) Включить отладку по USB
3) adb shell
4) Посмотреть в информации о приложение его пакет(например com.google.android.music)
5) Ввести команду pm uninstall -k --user 0 com.google.android.music
@lemenkov
lemenkov / test_th.py
Created November 25, 2019 13:51
Test for topoh module
import unittest
word64digits = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+."
topo_hiding_prefix = b"DLGCH_"
def word64encode(Str):
Out = b""
i = len(Str)
j = 0
while i >= 3: