Skip to content

Instantly share code, notes, and snippets.

View izzqz's full-sized avatar

Viacheslav Melnikov izzqz

  • Earth
  • 14:17 (UTC +01:00)
View GitHub Profile
@izzqz
izzqz / i3bar-parse.sh
Last active December 6, 2024 12:49
This script parses the i3bar protocol and outputs it as a single line. It's for using i3-style bars like i3status-rust in dwm or similar window managers
#!/bin/bash
# To use this pipe i3bar to stdin
# Example i3stauts-rs | ./i3bar-parse.sh
while read line; do
echo "$line" | jq -r '.[].full_text' 2>/dev/null | tr '\n' ' ' | grep -v '^$'
done
@izzqz
izzqz / help_advanced.txt
Last active October 13, 2023 18:43
help_advanced output from chrosh terminal
Usage: arc
[ ping [ NETWORK ] [ <ip address> | <hostname> ] |
http [ NETWORK ] <url> |
dns [ NETWORK ] <domain> |
proxy <url> |
list [ networks ] |
stats [ sockets | traffic ]
]
where NETWORK := [ wifi | eth | ethernet | cell | cellular | vpn ]
@izzqz
izzqz / bot.js
Last active January 16, 2024 21:14
Telegram bot API in tree lines of code. Probably the only one lib which doesn't suck for javascript. Works in any js runtime. Good for serverless or whatever
/**
* Telegram bot API wrapper
*
* @author @izzqz
*/
const bot = new Proxy(new String(BOT_TOKEN), {
get: (token, method) => (params) => fetch(`https://api.telegram.org/bot${token}/${method}?${new URLSearchParams(params)}`),
});
// Token can be env variable, global and etc
@izzqz
izzqz / nerd-font-in-chromeos-terminal.md
Last active November 12, 2024 13:29
How to setup JetBrains Mono Nerd Font with ligatures to use is inside crostini terminal #guide

Setup Nerd Fonts in Chrome OS terminal

⚠️ This seems outdated and does not work for the latest version of ChromeOS. But feel free to try.

Setup

Press Ctr + Shift + j to open devtools console in crostini terminal.

Paste this to use Jetbrais Mono with ligatures:

term_.prefs_.set('font-family', 'JetBrains Mono Nerd Font, monospace');
@izzqz
izzqz / sign-current-commit.md
Last active September 9, 2022 11:15
Sign last commit in git history. And remove gpg signature from the last commit. #guide

Sign current commit in history

A bunch of my aliases

git sign - update history and sign current HEAD commit.
git unsign - update history and remove gpg signature from HEAD commit.

.gitconfig

[alias]
 sign = -c sequence.editor=: rebase --exec 'git commit --amend --no-edit -n -S' -i HEAD

Keybase proof

I hereby claim:

  • I am izzqz on github.
  • I am izzqz (https://keybase.io/izzqz) on keybase.
  • I have a public key whose fingerprint is 83F9 7758 7836 3731 9C7F 9900 630D 8626 8AFE 5D31

To claim this, I am signing this object:

@izzqz
izzqz / trackers.txt
Last active August 9, 2022 20:38
My personal trackers list
https://open.kickasstracker.com:443/announce
https://tracker.bt-hash.com:443/announce
https://182.176.139.129:6969/announce
udp://zephir.monocul.us:6969/announce
udp://tracker.dutchtracking.com:6969/announce
https://grifon.info:80/announce
https://tracker.parrotsec.org:443/announce
https://tracker.moxing.party:6969/announce
https://tracker.ipv6tracker.ru:80/announce
https://tracker.fastdownload.xyz:443/announce
@izzqz
izzqz / autoexec.cfg
Last active April 1, 2022 15:32
My apex legends autoexec file
name "izzqz"
cl_fovScale "1.47142857143"
mouse_sensitivity "1.598601"
m_acceleration "0"
mouse_use_per_scope_sensitivity_scalars "0"
mouse_zoomed_sensitivity_scalar_0 "1.0"
mouse_zoomed_sensitivity_scalar_1 "1.0"
mouse_zoomed_sensitivity_scalar_2 "1.0"
mouse_zoomed_sensitivity_scalar_3 "1.0"
@izzqz
izzqz / drag-n-drop Compession.bat
Last active June 22, 2021 06:53
Drag any media over the batch file to start compressing. Requires ffmpeg and uses hevc_nvenc (Nvidia GPU Hardware acceleration)
@echo off
SET inputFile="%~1"
SET outputFile="%~p1%~n1 (COMPRESSED).mp4"
ECHO Compressing...
ffmpeg -y ^
-hide_banner ^
-vsync 0 ^
-hwaccel cuda ^
@izzqz
izzqz / learn.lua
Created December 2, 2020 22:11
Learn Lua in 15 Minutes
-- Source: http://tylerneylon.com/a/learn-lua/
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------