Skip to content

Instantly share code, notes, and snippets.

@daalvand
daalvand / keys.txt
Created November 20, 2023 21:11 — forked from f0r34chb3t4/keys.txt
Proxifier.txt
Portable Version KEYS:
P6Z3T-UYJC9-YAK3F-APN9M-6ZDSD
FGZPK-93CWX-Q33Y6-D5URV-YXC3X
9CZQX-9YAQA-PF33L-XVUQH-NSD48
8RZ3L-H3Y5L-W2RY5-Z5M8N-C7Z2U
CCZNU-LW3LF-K9V2T-MYZFF-94667
EWZM6-3W4UX-KH922-C96GK-VGBH2
Standard Version KEYS:
4AZNW-S2YHE-LLMWM-J6EL8-7QKDL
@daalvand
daalvand / backup.sh
Last active July 31, 2023 09:18
Backup Docker Images
#!/bin/bash
images_dir="$(dirname "$(readlink -f "$0")")/images"
mkdir -p $images_dir
#This awk command removes duplicates based on the last field ({{.ID}}) of the input lines by utilizing an associative array seen. It prints only the first occurrence of each unique ID
images=$(docker images --format "{{.Repository}}:{{.Tag}}-{{.ID}}" --filter "dangling=false" | awk -F'-' '!seen[$NF]++')
for image in $images; do
@daalvand
daalvand / EmojiFilter.php
Created September 9, 2020 20:13 — forked from chuehnone/EmojiFilter.php
Remove emoji
<?php
function removeEmoji($text) {
return preg_replace('/([0-9|#][\x{20E3}])|[\x{00ae}|\x{00a9}|\x{203C}|\x{2047}|\x{2048}|\x{2049}|\x{3030}|\x{303D}|\x{2139}|\x{2122}|\x{3297}|\x{3299}][\x{FE00}-\x{FEFF}]?|[\x{2190}-\x{21FF}][\x{FE00}-\x{FEFF}]?|[\x{2300}-\x{23FF}][\x{FE00}-\x{FEFF}]?|[\x{2460}-\x{24FF}][\x{FE00}-\x{FEFF}]?|[\x{25A0}-\x{25FF}][\x{FE00}-\x{FEFF}]?|[\x{2600}-\x{27BF}][\x{FE00}-\x{FEFF}]?|[\x{2600}-\x{27BF}][\x{1F000}-\x{1FEFF}]?|[\x{2900}-\x{297F}][\x{FE00}-\x{FEFF}]?|[\x{2B00}-\x{2BF0}][\x{FE00}-\x{FEFF}]?|[\x{1F000}-\x{1F9FF}][\x{FE00}-\x{FEFF}]?|[\x{1F000}-\x{1F9FF}][\x{1F000}-\x{1FEFF}]?/u', '', $text);
}
?>
@daalvand
daalvand / KeyGenerateCommand.php
Created March 8, 2020 12:23
lumen Key Generate
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Encryption\Encrypter;
class KeyGenerateCommand extends Command
{
@daalvand
daalvand / cloudSettings
Last active July 5, 2021 10:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-05T10:10:39.261Z","extensionVersion":"v3.4.3"}