Skip to content

Instantly share code, notes, and snippets.

View orzklv's full-sized avatar
🏴
For me, open source is a moral thing.

Orzklv orzklv

🏴
For me, open source is a moral thing.
View GitHub Profile
@orzklv
orzklv / custom-location-org.sh
Created May 31, 2023 15:17
Set custom location for GitHub user or Organization
curl -H "Authorization: bearer GH_PAT_HERE" -d '{"location":"YOUR CUSTOM LOCATION"}' https://api.github.com/orgs/ORG_NAME
@orzklv
orzklv / clean.sh
Created May 31, 2023 15:17
If you're an aesthetic developer who keeps all projects in a single developer like I do at ~/Developer, this script will help you to clean cached dependencies of your projects and clean some space~
cleaner() {
# my DEVSPACE is ~/Developer, set your own DEVSPACE and add it to
# your ~/.zshrc or ~/.bashrc file to let this script detect it
# check if DEVSPACE is set, if not, set it to the current directory
if [ -z "$DEVSPACE" ]; then
DEVSPACE="$(pwd)";
fi
# change current directory to DEVSPACE
cd $DEVSPACE;
# loop through project folders in current path and ...
@orzklv
orzklv / paru.sh
Created May 31, 2023 15:18
Install paru AUR manager on Arch Linux
# We need to install rust
sudo pacman -S rustup, base-devel
# Install rust components
rustup # accept all defaults
# Let's clone the source code first
git clone https://aur.archlinux.org/paru.git
# Go to folder and install it
@orzklv
orzklv / google.sh
Created May 31, 2023 15:18
Googling from shell script
google() {
if [ -z "$1" ]; then
echo "No argument supplied"
return
fi
echo "Searching for $@"
search_string="$@"
# Linux users should change "open" to "xdg-open"
# or create alias open="xdg-open"
open "https://www.google.com/search?q=$search_string"
@orzklv
orzklv / java.reg
Last active July 6, 2023 07:39
Add OpenJDK 18 to registrars on Windows 11. This action is not being automatically done on default if you install Java with scoop.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment]
"CurrentVersion"="18.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment\18.0]
"JavaHome"="C:\\Users\\Sakhib\\Scoop\\apps\\openjdk\\current"
"MicroVersion"="0"
@orzklv
orzklv / default.nix
Created January 28, 2024 09:35
NIx Flake Example
{ lib
, llvmPackages
, cmake }:
llvmPackages.stdenv.mkDerivation rec {
pname = "rust";
version = "0.1.0";
src = ./.;
@orzklv
orzklv / crash.log
Created February 10, 2024 22:43
Telegram crash log
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Telegram [17224]
Path: /Applications/Telegram.app/Contents/MacOS/Telegram
Identifier: ru.keepcoder.Telegram
Version: 10.7.1 (259074)
App Item ID: 747648890
App External ID: 863422799
@orzklv
orzklv / git-log.sh
Created February 21, 2024 17:22
Prettier way of showing git log
glog() {
setterm -linewrap off 2> /dev/null
git --no-pager log --all --color=always --graph --abbrev-commit --decorate --date-order \
--format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' "$@" \
| sed -E \
-e 's/\|(\x1b\[[0-9;]*m)+\\(\x1b\[[0-9;]*m)+ /├\1─╮\2/' \
-e 's/(\x1b\[[0-9;]+m)\|\x1b\[m\1\/\x1b\[m /\1├─╯\x1b\[m/' \
-e 's/\|(\x1b\[[0-9;]*m)+\\(\x1b\[[0-9;]*m)+/├\1╮\2/' \
-e 's/(\x1b\[[0-9;]+m)\|\x1b\[m\1\/\x1b\[m/\1├╯\x1b\[m/' \
@orzklv
orzklv / lazy-git.sh
Created February 21, 2024 17:22
Lazy git for faster shit commiting
lazygit() {
USAGE="
lazygit [OPTION]... <msg>
GIT but lazy
Options:
--fixup <commit> runs 'git commit --fixup <commit> [...]'
--amend runs 'git commit --amend --no-edit [...]'
-f, --force runs 'git push --force-with-lease [...]'
@orzklv
orzklv / readme.md
Last active May 25, 2025 16:03
How can we all profit from this chat

image

This message was sent in a private chat consisting communities leaders listed here

I agree with his point, honestly :D

He literally spoke out the current state of this chat. Yes, we might come up with ideas and try to (sorta) exchange with experiences. In the end, it’s just only a few communities that are profiting from this chat.

We all came here, because ALL of US wanted something or somehow profit from being together for the sake of our own communities.