Skip to content

Instantly share code, notes, and snippets.

View ccrsxx's full-sized avatar
💭
I may be slow to respond.

Ami ccrsxx

💭
I may be slow to respond.
View GitHub Profile
#!/bin/bash
# Unified UniFi LED controller
# Usage: unifi_led.sh <on|off>
# ==== Configuration ====
SSH_KEY="/path/to/private.key"
SSH_USER="ccrsxx"
# List of AP IPs
APS=(
### GPG Verification Instructions
To verify the authenticity of `statement.txt`, follow these steps:
1. Download all files from this Gist.
2. Import my public key:
```
gpg --import ami_public_key.asc
```
3. Verify the signature:
@ccrsxx
ccrsxx / v2ray-client-on-mikrotik.md
Last active October 27, 2025 08:56
V2ray Client on Mikrotik

Vless Client Setup for Mikrotik Router with Xray-Core and Tun2Socks

Hi guys! I read this topic, but I can't understand the specific algorithm for running the client part of Vless for my VPS server. Maybe someone can systematize the recommendations and write a FAQ on this issue? So far I've understood one thing: I need Mikrotik on the ARM architecture with RouterOS 7.0, with the ability to install packages. Then, I need to install the Xray-core and Tun2Socks package (I don't need ADGuard), but the next steps are unclear...

Solution Overview

Thanks to the rebuilt Xray-core and hev-socks5-tunnel containers, it has become much easier to launch containers.

In addition to preparing the router for the installation of containers, it is also necessary to prescribe routing for marked traffic.

Steps:

@ccrsxx
ccrsxx / docker.md
Created December 16, 2024 16:21
My notes on docker

Learning Docker

Container

A container is a running instance of an image. You can create, start, stop, move, or delete a container using the Docker API or CLI. You can connect a container to one or more networks, attach storage to it, or even create a new image based on its current state. Basically, a container is a very lightweight VM that only provides the resources and environment to run applications.

Building image

  • FROM. The first instruction in the Dockerfile must be FROM, which defines the base image to use to start the build process. The FROM instruction can appear multiple times within a single Dockerfile in order to create multiple images. Simply make a note of the last image ID output by the commit before each new FROM instruction.
@ccrsxx
ccrsxx / compose.yaml
Last active May 30, 2025 07:08
wg-easy port forward
volumes:
etc_wireguard:
networks:
net_wireguard:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
gateway: 172.18.0.1
# Set the address list name
:local blackListName "z_dns_ips_blacklist"
# Set the whitelisted IPs
# GitHub, Vercel, Tailscale in ascending order
:local whiteListIPs [:toarray \
" \
185.199.108.153, \
185.199.109.153, \
185.199.110.153, \
# Set the address list name
:local blackListName "z_dns_ips_blacklist"
# Set the whitelisted IPs
# GitHub, Vercel, Tailscale in ascending order
:local whiteListIPs [:toarray \
" \
185.199.108.153, \
185.199.109.153, \
185.199.110.153, \
:root {
--main-accent: violet;
}
.dark .shadow-box {
background-color: rgba(0, 0, 0, 0.6) !important;
}
.dark .monitor-list .item:hover,
.dark .monitor-list .item.active {
import pyautogui
import time
import os
def cls():
os.system('cls')
print(f'{" Spam chat - by Risal ":*^30}\n')