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
@vitali2y
vitali2y / vnc-android.md
Created November 22, 2023 17:21
Mirroring of Linux Mint screen on Android tablet
@vitali2y
vitali2y / resize-btrfs-by-parted.md
Created December 9, 2023 23:09
SD Card's partition resizing with parted

Resizing of btrfs partition (in my case it's Odroid U3's Ubuntu Jammy image from here) by adding extra 3GB @ 16GB SD Card connected via USB adapter to Linux Mint box with using parted utility. Distrib image contains 2 partitions, boot and root - we are working with second @ /dev/sda2 here.

➜   ✗ df -h /dev/sda2                
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       3,0G  2,8G   21M 100% /media/vit/rootpart
➜   ✗ umount /dev/sda2
➜   ✗ parted -l
Model: MXT-USB Storage Device (scsi)
Disk /dev/sda: 15,9GB
@vitali2y
vitali2y / helix-editor-cfg.md
Last active July 27, 2024 20:00
My Helix editor's config (v24.07)
➜  ~ cat ~/.config/helix/config.toml 
# theme = "bogster"
# theme = "base16_default_dark"
# theme = "base16_default"
# theme = "base16_terminal"
# theme = "dark_plus"
theme = "my"

[editor]
@vitali2y
vitali2y / install-betaflight-configurator-linux-mint-21.2.md
Created April 7, 2024 19:54
Installing Betaflight Configurator on Linux Mint 21.2
➜  cd ~/Downloads && wget https://github.com/betaflight/betaflight-configurator/releases/download/10.10.0-RC3/betaflight-configurator_10.10.0-RC3_amd64.deb && sudo dpkg -i betaflight-configurator_10.10.0-RC3_amd64.deb
~...~
Unpacking betaflight-configurator (10.10.0-RC3) ...
dpkg: dependency problems prevent configuration of betaflight-configurator:
 betaflight-configurator depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.
dpkg: error processing package betaflight-configurator (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
@vitali2y
vitali2y / jomaa-zx-k26-combo-logs.md
Created April 8, 2024 19:35
Jomaa ZX-K26 combo's logs

Jomaa ZX-K26 backlight wireless keyboard and mouse combo's logs during connecting to Linux Mint 21.2:

==> /var/log/kern.log <==
Apr  8 22:24:13 greenway kernel: [ 6719.709951] usb 3-2: new full-speed USB device number 4 using xhci_hcd
Apr  8 22:24:13 greenway kernel: [ 6719.865444] usb 3-2: New USB device found, idVendor=3554, idProduct=fc03, bcdDevice= 7.90
Apr  8 22:24:13 greenway kernel: [ 6719.865457] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr  8 22:24:13 greenway kernel: [ 6719.865462] usb 3-2: Product: 2.4G Receiver
Apr  8 22:24:13 greenway kernel: [ 6719.865466] usb 3-2: Manufacturer: CX
Apr  8 22:24:13 greenway kernel: [ 6719.869885] input: CX 2.4G Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:3554:FC03.0003/input/input25
Apr  8 22:24:13 greenway kernel: [ 6719.930896] hid-generic 0003:3554:FC03.0003: input,hidraw0: USB HID v1.10 Keyboard [CX 2.4G Receiver] on usb-0000:00:14.0-2/input0
@vitali2y
vitali2y / linux-ssh-reverse-shell-tunneling.md
Created April 21, 2024 11:24
Linux SSH reverse shell tunneling

Q: Have a Linux on device in appartment A, which can go outside of local router to Internet. Have a Linux on device in appartment B located in another place on the globe. How it's possible to reach Linux A from Linux B via ssh when access to router A is prohibited?

Links

General

@vitali2y
vitali2y / tmux-simple.md
Created May 10, 2024 18:22
Tmux simple
➜  shrinker git:(main) ✗ tmux new-session -s shrinker
[detached (from session shrinker)]   <- C-b d
➜  shrinker git:(main) ✗ tmux list-sessions
shrinker: 1 windows (created Mon Jul 31 00:03:22 2023)
➜  shrinker git:(main) ✗ tmux attach -t shrinker
[detached (from session shrinker)]
➜  shrinker git:(main) ✗
@vitali2y
vitali2y / linux-mint-fractional-scaling.md
Created September 30, 2024 11:46
Enable Fractional Scaling @ Linux Mint
  1. Menu -> Display app -> Settings tab -> Enable Fractional Scaling Controls -> Layout tab -> User Interface Scale %%
  2. Menu -> Accessibility app -> Visual tab -> Large Text (be aware, it resets option below)
  3. Menu -> Font Selection app -> Font Settings -> Text Scaling Factor -> 1,2

Ref: Enable Fractional Scaling in Linux Mint

@vitali2y
vitali2y / ChatGPT Canvas HTML Renderer from Clipboard.url
Created October 7, 2024 14:55 — forked from rmtbb/ChatGPT Canvas HTML Renderer from Clipboard.url
Chrome Bookmarklet the lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(clipboardText){if(clipboardText){var newWindow=window.open("","_blank","width=800,height=600");newWindow.document.open();newWindow.document.write(clipboardText);newWindow.document.close();}else{alert('Clipboard is empty. Please copy some text to the clipboard first.');}}).catch(function(err){console.error('Failed to read clipboard contents: ',err);alert('An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.');});}catch(e){console.error('An error occurred:',e);alert('An error occurred while trying to open the new window with the clipboard content.');}})();
@vitali2y
vitali2y / cli-online-radio.md
Last active January 1, 2025 22:06
CLI Online Radio
mpv https://online.nasheradio.ua/NasheRadio  # Наше Радио
mpv https://online.hitfm.ua/HitFM  # Хіт FM
mpv https://radio.ukr.radio/ur1-mp3  # UA: Українське радіо
mpv https://online.kissfm.ua/KissFM  # Kiss FM
mpv https://icecastdc.luxnet.ua/lux  # Lux FM
mpv http://91.218.212.84:8000/radionv.mp3  # Radio NV
mpv https://cast.mediaonline.net.ua/radiopyatnica320  # Радио Пятница
mpv https://online.melodiafm.ua/MelodiaFM  # Мелодия FM
mpv https://online.radiorelax.ua/RadioRelax  # Радио Relax