Skip to content

Instantly share code, notes, and snippets.

View AKJUS's full-sized avatar

akin AKJUS

View GitHub Profile
@AKJUS
AKJUS / gentoo-crossdev.md
Created April 5, 2025 03:12 — forked from thesamesam/gentoo-crossdev.md
Gentoo cross compilation instructions (crossdev -> stage3)

aki Cross instructions

These instructions cover:

  1. building a cross toolchain
  2. populating the new ROOT
  3. making it chrootable using qemu-user to easily run "native" builds or tests (this is like a stage3 at the end)

You do not need to follow through to the end if you don't need a stage3-like root.

Set up the toolchain

@AKJUS
AKJUS / keybase.md
Created April 5, 2025 03:09 — forked from grimmy/keybase.md

Keybase proof

I hereby claim:

  • I am grimmy on github.
  • I am grim (https://keybase.io/grim) on keybase.
  • I have a public key whose fingerprint is 51F6 2161 2B0D C897 E15C D20B 97DF 4484 2B86 AADD

To claim this, I am signing this object:

@AKJUS
AKJUS / githoard.py
Created March 31, 2025 05:54 — forked from Stankye/githoard.py
Makes a list of a Github users stars or public repositories as clonable git url's
#!/usr/bin/env python3
# Usage:
# python githoard.py -u <githubUser> -m <method> -t <githubToken> -o <output>
#
# Example:
# python githoard.py -u stankye -m stars -t <githubToken> -o ./stars.txt
#
import argparse
import os
from github import Github # pip install PyGithub
TERMS OF SERVICE AGREEMENT
This Terms of Service Agreement (the "Agreement") is entered into between [Anshul Chauhan] ("Bot Owner") and the user ("User") of the [Bot Name] Discord bot (the "Bot").
By using the Bot, the User agrees to be bound by the terms of this Agreement. If the User does not agree to the terms of this Agreement, they should immediately discontinue use of the Bot.
1. Use of the Bot: The Bot Owner grants the User a non-exclusive, non-transferable, limited license to use the Bot for personal or non-commercial purposes.
2. Prohibited Use: The User may not use the Bot in any way that violates applicable laws, rules, or regulations or infringes upon the rights of any third party. The User may not use the Bot for any commercial purposes without the express written consent of the Bot Owner.
3. Limitation of Liability: The Bot Owner shall not be liable for any damages arising out of the use or inability to use the Bot, including but not limited to, damages for loss of profits, loss of data, or o
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host
@AKJUS
AKJUS / install-arch.md
Created March 11, 2025 19:18 — forked from mjnaderi/install-arch.md
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@AKJUS
AKJUS / edge_discard_tabs.js
Last active January 25, 2025 01:04 — forked from gexgd0419/edge_discard_tabs.js
Microsoft Edge: Discard / freeze all background tabs
Sir/madam this is taken by Gist has akin// For tab hoarders using Microsoft Edge (this might work on other Chromiums, but I haven't tested)
// who keep so many tabs that even edge://discards/ page becomes unresponsive.
// Can discard/freeze all background hidden tabs. Foreground (visible) tabs, tabs playing audio,
// and tabs in the "Never put these sites to sleep" list will not be discarded/frozen.
// In the address bar, enter: edge://discards/discards.js
// Then open DevTools (Ctrl+Shift+I or F12), go to Console, and paste the following code.
await (async () => {
// To freeze tabs, set to false; to discard tabs, set to true