Skip to content

Instantly share code, notes, and snippets.

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

Sokhibjon Orzikulov orzklv

🏴
For me, open source is a moral thing.
View GitHub Profile
@orzklv
orzklv / test.js
Created October 7, 2020 07:10
Handwritten endpoint node.js test
/**
* @name Test CI
* @version 0.1.0 alpha
* @description Express REST API Server for any purpose
*/
const isReachable = require("is-reachable");
const colors = require("colors");
const fetch = require("node-fetch");
const port = require("../apps/config/server.config");
@orzklv
orzklv / any.py
Created October 7, 2020 07:12
True error handled python importing
#
# Starting import process here
#
# Global scopic functions
from __future__ import print_function
# Loading installed modules
try:
print('Importing "os" Module')
@orzklv
orzklv / java.reg
Last active December 18, 2020 16:02
Set up scoop based OpenJDK on Window's Machine
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment]
"CurrentVersion"="15.0.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment\14.0]
"JavaHome"="C:\\Users\\Genemator\\Scoop\\apps\\openjdk\\current"
"MicroVersion"="0"
@orzklv
orzklv / example.sh
Last active February 7, 2021 19:15
Start shell from current working space directory
#!/bin/sh
# shellcheck disable=SC2164
cd "$( dirname "$0" )"
#Written Sept 30 2009
#This program fscked the mind of Adam Domurad; It is not completely efficient for sure but I was more concerned with making a working interpreter
#You can use as many as 256 nested loops on a 8 bit cell interpreter
#NOTE code will be parsed a lot faster without comment characters
#[first place 0 at start and place code input, working out if its a comment and correcting [ -> 1, ] -> 2, + -> 3, - -> 4, > -> 5, < -> 6, . -> 7, , -> 8]
#[Ascii: + is 43, , is 44, - is 45, . is 46, < is 60, > is 62, [ is 91, ] is 93]
#[Data used is 8 + Data used by subprogram * 2 + non-comment instructions in subprogram.]
#[It is possible but a good deal more complex to not use double the data the subprogram uses, the data pointer would have to be stored]
#[numerically and then shifted through the data area, and then restored.]
->->>>-
@orzklv
orzklv / archwsl.md
Last active February 23, 2023 07:11
How to install Arch Linux on WSL from scratch tutorial
@orzklv
orzklv / arch.md
Last active April 20, 2024 20:35
Arch Installation bible written by Sokhibjon. This installation process suits and follows taste of Sokhibjon, so feel free to modify and create your `own` way of installing Arch Linux.

Arch Linux installation if you were Sokhibjon

#arch #linux #archlinux

Please, keep in mind that everything after # is a comment and should not be executed. Also, lots of configurations has been moved to the dotfiles repository.

Connect to the network:

@orzklv
orzklv / Dockerfile
Last active March 25, 2023 10:51
Using archlinux as docker container
FROM archlinux:latest
CMD /sbin/init
@orzklv
orzklv / transfer.js
Created April 24, 2023 14:11
Transfer all repositories of an organization to another
const axios = require('axios');
const GITHUB_TOKEN = 'YOUR_GITHUB_TOKEN';
const SOURCE_ORG = 'SOURCE_ORG';
const TARGET_ORG = 'TARGET_ORG';
const api = axios.create({
baseURL: 'https://api.github.com',
headers: {
'Authorization': `token ${GITHUB_TOKEN}`,
'Accept': 'application/vnd.github+json',
@orzklv
orzklv / push-with-personal-token.sh
Created May 31, 2023 15:16
Pushing with GitHub Personal Token
#!/bin/bash
# shellcheck disable=SC2164
cd "$(dirname "$0")"
export GITHUB_ACCESS_TOKEN=""
export GITHUB_USERNAME=""
export REPOSITORY_NAME=""
git push https://"$GITHUB_ACCESS_TOKEN"@github.com/"$GITHUB_USERNAME"/"$REPOSITORY_NAME".git