Skip to content

Instantly share code, notes, and snippets.

View xardit's full-sized avatar
🍀

Ardit xardit

🍀
  • Space
View GitHub Profile
@ajankuv
ajankuv / setup.sh
Created October 31, 2018 15:06
instapy quick setup in venv
#!/bin/bash
# quick instapy installer
pip install git+https://github.com/timgrossmann/InstaPy.git;
latest_version=$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -O -);
wget https://chromedriver.storage.googleapis.com/${latest_version}/chromedriver_linux64.zip;
unzip chromedriver_linux64;
mkdir -p local/lib/python2.7/site-packages/assets;
mv chromedriver local/lib/python2.7/site-packages/assets;
chmod +x local/lib/python2.7/site-packages/assets/chromedriver;
@rstacruz
rstacruz / README.md
Last active November 1, 2025 19:07
How to install Docker in Mac, Windows, and Linux

Getting Docker

Docker is available for Linux, MacOS, and Windows.

MacOS

Docker for Mac is best installed with Homebrew and Homebrew Cask. For other ways to install on MacOS, see Install Docker for Mac in Docker's docs.

brew cask install docker # Install Docker
@fedir
fedir / openssl-imap-testing.md
Last active March 6, 2026 13:03
Manual testing IMAP via OpenSSL

Manual testing IMAP via OpenSSL

Shell commands

telnet example.com 143
openssl s_client -crlf -connect example.com:993
openssl s_client -connect example.com -tls1_2
nmap --script ssl-enum-ciphers -p 443 example.com

IMAP commands, when working via openssl manually

@dideler
dideler / bot.rb
Last active February 4, 2026 23:07
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@seanhandley
seanhandley / docker-compose.yml
Last active January 23, 2025 09:49
How To Set Up Docker For Mac (Mojave) with Native NFS
version: '2'
services:
api:
volumes:
- "nfsmount:${CONTAINER_DIR}"
volumes:
nfsmount:
driver: local
driver_opts:
@gadiener
gadiener / generate-bitcoin-keys.sh
Last active November 20, 2024 14:22
OpenSSL commands to create a Bitcoin private/public keys from a ECDSA keypair
#!/bin/sh
PRIVATE_KEY="ECDSA"
PUBLIC_KEY="ECDSA.pub"
BITCOIN_PRIVATE_KEY="bitcoin"
BITCOIN_PUBLIC_KEY="bitcoin.pub"
echo "Generating private key"
openssl ecparam -genkey -name secp256k1 -rand /dev/random -out $PRIVATE_KEY
@holmberd
holmberd / php-pools.md
Last active November 13, 2025 10:56
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@mort3za
mort3za / git-auto-sign-commits.sh
Last active December 11, 2025 14:52
Auto sign your git commits
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# See your gpg public key:
gpg --armor --export YOUR_KEY_ID
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333)
@Artistan
Artistan / .1. mysql.reset.sh
Last active April 15, 2020 15:47
Reset Master (root) MySQL Password -- Digital Ocean
service mysql stop
mkdir -p /var/run/mysqld
chown mysql:mysql /var/run/mysqld
/usr/bin/mysqld_safe --skip-grant-tables --skip-networking &
# do the reset.sql stuff...
killall mysql ## ps ax|grep mysql -- you may have to list them with this and manually kill them!! :)
service mysql start
@xardit
xardit / icon2ios.sh
Last active August 29, 2017 10:58
Generate all icons for ios and android. Usage: `icons2ios.sh input-file.png` Input image must be 1536x1536 px for better quality.
#!/bin/sh
##
mkdir -p icons/ios
mkdir -p icons/android
##
base=$1
if [ -z $base ]
then
echo No argument given
else