Skip to content

Instantly share code, notes, and snippets.

View ClayRabbit's full-sized avatar

Andrey Chesnakov ClayRabbit

View GitHub Profile
@ClayRabbit
ClayRabbit / duplicate.sh
Last active June 4, 2025 12:02 — forked from tom-it/duplicate.sh
Opencart 3.0 clone default theme
#!/bin/bash
if [ "$#" -ne 3 ] || ! [ -d "$1" ]; then
echo "Usage: $0 THEMEDIR $1 ADMINDIR $2 COPYNAME" >&2
exit 1
fi
#The admin controller needs a capitalized theme name
function capitalize_first(){
string0=$COPY
@ClayRabbit
ClayRabbit / ttfb.sh
Last active October 23, 2023 06:03 — forked from sandeepraju/ttfb.sh
curl command to check the time to first byte
#!/bin/sh
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -so/dev/null -w"Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" "$1"
@ClayRabbit
ClayRabbit / lemp_setup.sh
Last active March 26, 2023 12:59 — forked from RafikFarhad/lemp_setup.sh
LEMP stack installation
#!/bin/sh
HOSTNAME=$(hostname)
sudo apt-get update
sudo apt-get install -y nginx
sudo apt-get install -y mysql-server mysql-client
sudo apt-get install -y php-fpm
sudo apt-get install -y composer
@ClayRabbit
ClayRabbit / dl-cloud-mail-ru.sh
Last active September 27, 2019 14:03 — forked from vishalk95/dl-cloud-mail-ru.sh
Download file from cloud.mail.ru from linux console with bash script
#!/usr/bin/env bash
#
# ВАЖНО. mail.ru время от времени меняет внутрянку, не очень сильно, но требуется адаптация скрипта.
# Если скрипт не работает, просьба разместить патч в комментариях или сделать работающий форк.
# 2018-06-18 updated: mail.ru changed internals
# 2017-09-22 original idea: https://novall.net/itnews/bash-skript-dlya-skachivaniya-fajlov-s-mail-ru-cherez-konsol-linux.html
# 26/04/2019 downloading fixed (thanks to @dinolek ) .......updated by - @vishalk17