Skip to content

Instantly share code, notes, and snippets.

View akaJedi's full-sized avatar
🏠
Working from home

Denis Tolochko akaJedi

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am akajedi on github.
  • I am akajedi (https://keybase.io/akajedi) on keybase.
  • I have a public key ASCBz7ub9P59qiqeEj9Qkxq8dhBL1emkV3hTNM4yPf-Yzwo

To claim this, I am signing this object:

@akaJedi
akaJedi / ssl-check.py
Created February 8, 2022 06:30 — forked from gdamjan/ssl-check.py
Python script to check on SSL certificates
# -*- encoding: utf-8 -*-
# requires a recent enough python with idna support in socket
# pyopenssl, cryptography and idna
from OpenSSL import SSL
from cryptography import x509
from cryptography.x509.oid import NameOID
import idna
from socket import socket
@akaJedi
akaJedi / mysql-docker.sh
Created October 6, 2019 06:47 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@akaJedi
akaJedi / magento_upgrade
Created July 10, 2018 03:49
Upgrade Magento 2.0 Community version from 2.2.4 to 2.2.5
sudo -u www-data composer require magento/product-community-edition 2.2.5 --no-update
sudo -u www-data composer update
rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/*
sudo -u www-data bin/magento cache:clean
sudo -u www-data bin/magento cache:flush
sudo -u www-data bin/magento setup:upgrade
sudo -u www-data bin/magento setup:di:compile
sudo -u www-data bin/magento indexer:reindex
@akaJedi
akaJedi / dnsbl.sh
Created March 29, 2017 02:05 — forked from agarzon/dnsbl.sh
DNS Black List - Linux shell script (improved from: http://www.daemonforums.org/showthread.php?t=302)
#!/bin/sh
# Check if an IP address is listed on one of the following blacklists
# The format is chosen to make it easy to add or delete
# The shell will strip multiple whitespace
BLISTS="
bl.score.senderscore.com
bl.mailspike.net
bl.spameatingmonkey.net
b.barracudacentral.org
@akaJedi
akaJedi / gist:36993f5f6ec3886861655b7c99e8b89f
Created December 12, 2016 22:46
This list used by modern bruteforcers
!!!
.
..
****
*****
0
0000
0000000
0002593w
0;color
@akaJedi
akaJedi / MidnightCommanderMacBookProHotKeys.txt
Last active December 1, 2016 19:51 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
Lines with numbers "n)" tested by me and corrected if required.
Sign "!" means can't confirm, looking for details.
The restones was not confirmed yet.
Command, where first key will be Esc:
-------------------------------------
1) Quick change directory: Esc + c
2) Quick change directory history: Esc + c and then Esc + h
3) Quick change directory previous entry: Esc + c and then Esc + p