Skip to content

Instantly share code, notes, and snippets.

View rezajax's full-sized avatar
💭
sepi $msg.tostring()

Reza rezajax

💭
sepi $msg.tostring()
View GitHub Profile
@ahbanavi
ahbanavi / openwrt-setup.md
Last active April 10, 2025 08:26
My OpenWrt Initial Setup (Passwall2 + extroot + vnstat)

My OpenWrt Initial Setup

My Router Info

  • Model: Linksys EA8100
  • Memory: 256MB
  • Storage: Using 16GB thumb drive as extroot
  • OpenWrt Version: OpenWrt 23.05.3 r23809-234f1a2efa / LuCI openwrt-23.05 branch git-24.073.29889-cd7e519

Extroot

Sno Entity Code Year Cellular Subscription Internet Users(%) No. of Internet Users Broadband Subscription
0 Afghanistan AFG 1980 0 0 0 0
1 Afghanistan AFG 1981 0 0 0 0
2 Afghanistan AFG 1982 0 0 0 0
3 Afghanistan AFG 1983 0 0 0 0
4 Afghanistan AFG 1984 0 0 0 0
5 Afghanistan AFG 1985 0 0 0 0
6 Afghanistan AFG 1986 0 0 0 0
7 Afghanistan AFG 1987 0 0 0 0
8 Afghanistan AFG 1988 0 0 0 0
@rezajax
rezajax / matadata.json
Last active April 7, 2024 10:19
about me
{
"website": "reza.am",
"linkedin": "linkedin.com/in/rezajax",
"stackoverflow": "stackoverflow.com/users/6547335",
}
@qdm12
qdm12 / README.md
Last active March 20, 2025 08:49
Wireguard and iptables restrictions for multiple users

Wireguard and iptables restrictions for multiple users

If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.

Assumptions

This should fit most setups (not mine though 😉)

@1951FDG
1951FDG / asuswrt-merlin.md
Last active March 25, 2025 09:20
Instructions for installing and configuring Squid caching proxy server on Asuswrt-Merlin

Setup Entware on Asuswrt-merlin

Entware is a modern alternative to Optware.

For those unfamiliar with Optware: it's a software repository that offers various software programs that can be installed on your router. They allow you to add new functionality to your router (provided you have the know-how to properly configure them).

Entware system library is specially modified (patched) so that standard linux files that are normally located in /etc directory are now located in /opt/etc/ directory. To simplify things let's consider /etc/passwd file. On Asuswrt-merlin it normally looks something like:

admin:x:0:0:admin:/root:/bin/sh

nas:x:100:100:nas:/dev/null:/dev/null

@Pulimet
Pulimet / AdbCommands
Last active April 26, 2025 13:51
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@EmadAdly
EmadAdly / install-android-sdk-in-ubuntu.md
Last active April 21, 2025 13:36
install JDK and Android SDK on Linux Ubuntu

install openjdk

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
@mcastelino
mcastelino / iptables-cheatsheet.md
Last active April 3, 2025 18:14
iptables-cheatsheet

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
@yiboyang
yiboyang / xclip aliases for startup scripts
Last active March 30, 2025 09:17
A few xclip aliases to simplify copying/pasting
# to simplify life, install xclip and append the following lines to your .bashrc
alias "c=xclip" # copy to X clipboard (register *)
alias "cs=xclip -selection clipboard" # copy to system wide clipboard (register +)
alias "v=xclip -o" # output copied content (paste)
alias "vs=xclip -o -selection clipboard" # paste from system wide clipboard (equivalent to `v -selection clipboard`)
# examples:
# copy to X:
# go to the same directory in terminal 2 as in terminal 1
# Terminal 1:
@anvaka
anvaka / 00.Intro.md
Last active April 23, 2025 22:53
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score