Skip to content

Instantly share code, notes, and snippets.

View realattila's full-sized avatar
🕶️
Focusing

[ATTILA] realattila

🕶️
Focusing
View GitHub Profile
@mahmoud-eskandari
mahmoud-eskandari / README.md
Last active June 29, 2025 23:45
Install v2ray on Bridge:(Ubuntu +18 via systemd) - Upstream (Ubuntu +18/CentOS +7 via docker)

پنل x-ui

پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور

mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
 -v $PWD/cert/:/root/cert/ \
@buglessir
buglessir / react-query-object.js
Created February 28, 2022 07:32
An example for the Query Object in react-query
// (1) ----------> Query Object for the useQuery();
import { fetchListFunction } from './services';
export const FetchListObj = (key, config) => ({
queryKey: ['FetchList', key],
queryFn: () => fetchListFunction,
placeholderData: {
list: []
},
@frizbee
frizbee / password_regex.md
Last active January 19, 2024 08:55
Regex for password must contain

Minimum eight characters, at least one letter and one number:

/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/

Minimum eight characters, at least one letter, one number and one special character:

/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/

Minimum eight characters, at least one uppercase letter, one lowercase letter and one number:

@anvaka
anvaka / 00.Intro.md
Last active December 26, 2025 04:07
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