Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
I may be slow to respond.

Roman Ananyev aTastyCookie

💭
I may be slow to respond.
View GitHub Profile
@aTastyCookie
aTastyCookie / .gitignore
Last active Dec 24, 2020
CS-Cart (CSCart) Multi-Vendor (MultiVendor) gitignore file from @simtechdev/cs-cart-gitignore https://simtechdev.com
View .gitignore
js/core/node_modules
js/tygh/core.js
js/tygh/notifications_center.js
js/tygh/bottom_panel.js
js/core/npm-debug.log
js/tygh/bottom_panel.js
app/lib/composer.phar
design/backend/css/twitterbootstrap.css
images/*
View keybase.md

Keybase proof

I hereby claim:

  • I am atastycookie on github.
  • I am deadroot (https://keybase.io/deadroot) on keybase.
  • I have a public key ASB4MpJiESUYiprIp_SPX4dWgDHJ2w7XH9LvSJIzh1fmDAo

To claim this, I am signing this object:

View useful_tip.md
  1. :)
  2. Думай и делай выводы сам, развивай критическое мышление
@aTastyCookie
aTastyCookie / buble.php
Created Oct 20, 2020
Сравнение производительности и использования ресурсов strict и non-strict кода на PHP7.4 и PHP8 для рандомного массива и его пузырьковой сортировки.
View buble.php
<?php
$count = 1000;
$minNumber = 0;
$maxNumber = 666;
$array = getRandomNumbers($count, $minNumber, $maxNumber);
$sorter = new BubbleSorter($array);
$sortedArray = $sorter->sort();
echo implode(' ', $sortedArray) . PHP_EOL;
View gist:4ea95635a4c9f8ba05e9be59ad30f70b
SET GLOBAL slow_query_log = 1';
SET GLOBAL slow_launch_time = 2;
SET GLOBAL long_query_time = '/var/log/mysql/slow.log';
FLUSH SLOW LOGS;
View mailru_blocker_for_iptables.sh
#!/bin/bash
##### IP RANGE #####
ip=(
"5.61.16.0/21"
"5.61.232.0/21"
"79.137.157.0/24"
"79.137.174.0/23"
"79.137.183.0/24"
"94.100.176.0/20"
View rknblock.py
# -*- coding: utf-8 -*-
import socket
import binascii
import sys
SUBNET_LIST = {
"52.56.0.0/16": "Amazon AWS",
"206.189.0.0/16": "DigitalOcean",
"167.99.0.0/16": "DigitalOcean",
"165.227.0.0/16": "DigitalOcean",
View gist:2190e989a290f201b125eea8c290476d
### Keybase proof
I hereby claim:
* I am atastycookie on github.
* I am ananev (https://keybase.io/ananev) on keybase.
* I have a public key ASCbb3lrKJa1ccKbIyzhiFh3CJoEtVxqNz-fwupBP-XBPAo
To claim this, I am signing this object:
View xss.payloads.md

<iframe/src=javascript:%2561%256c%2565%2572%2574``>

View adbtext.py
import itertools
class AdbText:
key_dict = {
"0": 7, "1": 8, "2": 9, "3": 10, "4": 11, "5": 12, "6": 13, "7": 14, "8": 15, "9": 16, "*": 17,
"#": 18, "A": 29, "B": 30, "C": 31, "D": 32, "E": 33, "F": 34, "G": 35, "H": 36, "I": 37, "J": 38, "K": 39,
"L": 40, "M": 41, "N": 42, "O": 43, "P": 44, "Q": 45, "R": 46, "S": 47, "T": 48, "U": 49, "V": 50, "W": 51,
"X": 52, "Y": 53, "Z": 54, ",": 55, ".": 56, " ": 61, " ": 62, "\n": 66, "`": 68, "-": 69, "=": 70, "[": 71,
"]": 72, "\\": 73, ";": 74, "'": 75, "/": 76, "@": 77, "+": 81, "(": 162, ")": 163,
}