Skip to content

Instantly share code, notes, and snippets.

View vitali2y's full-sized avatar
🏠
/me @ 127.0.0.1

Vitaliy Yermolenko vitali2y

🏠
/me @ 127.0.0.1
  • $HOME @ Ukraine @ Earth
View GitHub Profile
System: Host: yep Kernel: 4.10.0-38-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.6.6 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.3 Sylvia
Machine: System: LIVEFAN (portable) product: LIVEFAN v: Default string
Mobo: INET model: P313R v: Default string
Bios: American Megatrends v: YEPOM10x.8.WP313R.NHNAUHL01 date: 10/09/2017
CPU: Quad core Intel Celeron N3450 (-MCP-) cache: 1024 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 8755
clock speeds: min/max: 800/2200 MHz 1: 988 MHz 2: 998 MHz 3: 953 MHz 4: 992 MHz
Graphics: Card: Intel Device 5a85 bus-ID: 00:02.0 chip-ID: 8086:5a85
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
@vitali2y
vitali2y / gist:2ca71bebb771c849848c4910a6a38d1a
Created September 12, 2017 14:38
Free "Mastering Bitcoin 2nd Edition - Programming the Open Blockchain" e-book in EPUB format (don't care about commercial O’Reilly Atlas, or account) in just few secs
$ sudo apt-get install asciidoc xsltproc
$ git clone https://github.com/bitcoinbook/bitcoinbook.git
$ cd bitcoinbook
$ wget -O ./images/warning.png http://www.iconsdb.com/icons/download/black/warning-5-64.ico
$ wget -O ./images/note.png http://www.iconsdb.com/icons/download/black/note-2-64.ico
$ wget -O ./images/tip.png http://www.iconsdb.com/icons/download/black/seo-tips-2-64.ico
$ a2x -f epub book.asciidoc --icons-dir=./images --resource=./theme/epub -d book -L
$ ls -la book.epub
@vitali2y
vitali2y / bananapim64.md
Created January 30, 2021 12:07
Armbian 20.11.10 Bionic minimal distro on Banana Pi M64 (BPI-M64) SBC

Armbian 20.11.10 Bionic minimal (Armbian_20.11.10_Bananapim64_bionic_current_5.10.4_minimal.img file with 809500672 bytes size) on Banana Pi M64 mini single board computer (SBC) during first power on:

➜  ~ ssh root@bananapim64
root@192.168.1.190's password:   <- 1234 by default
 ____  ____  _   __  __  __   _  _   
| __ )|  _ \(_) |  \/  |/ /_ | || |  
|  _ \| |_) | | | |\/| | '_ \| || |_ 
| |_) |  __/| | | |  | | (_) |__   _|
|____/|_|   |_| |_|  |_|\___/   |_|  
@vitali2y
vitali2y / bananapim64-armbian-focal.md
Created May 5, 2021 09:32
Armbian 21.02.3 Focal @ Linux 5.10.21-sunxi64 on Banana Pi M64 (BPI-M64) SBC
@vitali2y
vitali2y / videoconferencing-janus-centos7.md
Created July 30, 2021 12:57
Videoconferencing: installation and starting up of Janus WebRTC Server @ elastic101 (CentOS 7)

Videoconferencing: installation and starting up of Janus WebRTC Server @ elastic101 (CentOS 7)

General

Janus WebRTC Server

Installation

[root@elastic101 janus]# yum --skip-broken install jansson-devel openssl-devel libsrtp-devel glib2-devel opus-devel libogg-devel libcurl-devel pkgconfig gengetopt  libconfig-devel libtool autoconf automake libsrtp-devel.x86_64 libwebsockets-devel.x86_64 git
[root@elastic101 janus]# yum install libmicrohttpd-devel jansson-devel    openssl-devel libsrtp-devel sofia-sip-devel glib2-devel    opus-devel libogg-devel libcurl-devel pkgconfig gengetopt libconfig-devel libtool autoconf automake
@vitali2y
vitali2y / videoconferencing-mediasoup-centos7.md
Created July 30, 2021 13:00
Videoconferencing: installation and starting up of mediasoup WebRTC Server @ devops4 (CentOS 7)

Videoconferencing: installation and starting up of mediasoup WebRTC Server @ devops4 (CentOS 7)

General

mediasoup: Cutting Edge WebRTC Video Conferencing

Installation

[root@devops4 mediasoup]# V=14.15.0 && mkdir /usr/local/nodejs-v${V} && cd /usr/local/nodejs-v${V} && wget https://nodejs.org/dist/v${V}/node-v${V}-linux-x64.tar.xz && tar xvf *.xz && rm -f node-v14.15.0-linux-x64.tar.xz && ln -s node-v14.15.0-linux-x64/ node
[root@devops4 local]# cd /usr/local/bin/ && ln -s ../node/bin/node && ln -s ../node/bin/npm && ln -s ../node/bin/npx
@vitali2y
vitali2y / ping_script.sh
Created August 15, 2021 09:49
To scan IPs in your local network
#!/bin/sh
# set -x # uncomment for debugging
pingone(){
if ping -w 2 -q -c 1 192.168.1."$1" > /dev/null
then
printf "IP %s is up\n" 192.168.1."$1"
fi
}
@vitali2y
vitali2y / rpi4.log
Created September 9, 2021 19:51
LibreELEC 10.0.0 @ RPi4
➜ rpi # https://releases.libreelec.tv/LibreELEC-RPi4.arm-10.0.0.img.gz
➜ rpi F=LibreELEC-RPi4.arm-10.0.0.img; ls -la $F && md5sum $F
-rw-rw-r-- 1 vit vit 575668224 Sep 9 00:54 LibreELEC-RPi4.arm-10.0.0.img
0ebb5fd424275b202522ed285b3a365b LibreELEC-RPi4.arm-10.0.0.img
➜ rpi ssh root@rpi4 # 192.168.1.181 @ LibreELEC
~...~
root@rpi4's password: <-- libreelec: default password
##############################################
# LibreELEC #
# https://libreelec.tv #
@vitali2y
vitali2y / kvm-with-ubuntu-cloud-image.log
Created November 25, 2018 23:06
Creating, running, and destroying a Ubuntu 16.04 minimal cloud image KVM under Linux Mint 18.3
... in steps below:
@vitali2y
vitali2y / chromium-recover-linux.md
Created March 30, 2022 19:37
Chromium web browser's recover steps @ Linux

Chromium recover @ Linux

Exporting Chromium browsing history to TXT

➜  ~ echo "SELECT title, datetime(last_visit_time/1000000 + (strftime('%s', '1601-01-01')),'unixepoch') last_visit_time, url from urls WHERE DATETIME (last_visit_time/1000000 + (strftime('%s', '1601-01-01')), 'unixepoch') >= DATETIME('now', '-3652 days') group by title, last_visit_time order by last_visit_time" | sqlite3 ~/.config/chromium/Default/History > ./chromium-history-$(date +%y%m%d%H%M).txt 
➜  ~ ls -la ./chromium-history-*.txt
-rw-rw-r-- 1 vit vit 4393191 Mar 30 21:50 ./chromium-history-2203302150.txt
➜  ~