Based on https://github.com/frappe/frappe_docker/blob/main/docs/development.md
Clone git repo
git clone https://github.com/frappe/frappe_docker.git
cd frappe_docker
Based on https://github.com/frappe/frappe_docker/blob/main/docs/development.md
Clone git repo
git clone https://github.com/frappe/frappe_docker.git
cd frappe_docker
#!/bin/bash | |
#### | |
# Split MySQL dump SQL file into one file per table | |
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump | |
#### | |
if [ $# -lt 1 ] ; then | |
echo "USAGE: bash mysql_splitdump.sh DUMP_FILE [TABLE]" | |
exit |
## ubuntu server with bash shell | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
## verify | |
type rbenv |
mkdir /etc/ssl/nginx | |
wget -P /etc/ssl/nginx/ https://cs.nginx.com/static/files/CA.crt | |
## move nginx-repo.crt to /etc/ssl/nginx/nginx-repo.crt | |
## move nginx-repo.key to /etc/ssl/nginx/nginx-repo.key | |
wget http://nginx.org/keys/nginx_signing.key | |
apt-key add nginx_signing.key | |
apt-get install apt-transport-https libgnutls26 libcurl3-gnutls | |
printf "deb https://plus-pkgs.nginx.com/ubuntu `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list |
Redis Keys Count by Group (namespace)
redis-cli KEYS "*" | awk -F: '{print $1'} | sort | uniq -c
Count WordPress transient
redis-cli KEYS "*" | grep ":transient:" | wc -l
#source: http://www.jefftk.com/2014-01-03--nginx.conf | |
# for debugging with valgrind | |
#daemon off; | |
#master_process off; | |
#user nobody; | |
worker_processes 1; | |
worker_rlimit_core 500M; |
#!/bin/bash | |
# This script takes a remote repository and merges it into | |
# the current one as a subdirectory | |
set -e | |
if [ -z "$1" ] | |
then | |
echo "Usage:" |
via https://carleton.ca/rcs/rcdc/background-queue-of-jobs/
brew install task-spooler
## based on https://github.com/lioonline/OS-X-El-Capitan | |
## pkg file link - http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ftk3252456602304584541.pkg | |
# Run this from folder where you have downloaded or copied ftk3252456602304584541.pkg file | |
#create a tmp folder | |
mkdir elCapitanRoot && cd elCapitanRoot | |
#create a folder structure to match apple server | |
sudo mkdir -p ./apple-assets-us-std-000001/Purple3/v4/74/d2/82/74d28291-9db9-7ae2-305d-9b8b3f5fd463/ |
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| gcut --complement --characters=13-40 \
| gnumfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest | head