I hereby claim:
- I am frosit on github.
- I am frosit (https://keybase.io/frosit) on keybase.
- I have a public key ASDXR1Sio-N5zSrIe715CSYTJqsNRoUQatcnDmclTmxp2go
To claim this, I am signing this object:
-- get db size | |
SELECT round(Sum(data_length + index_length) / 1024 / 1024, 1) as "Size in MB" FROM information_schema.TABLES WHERE table_schema = database(); | |
-- get sizes of all dbs | |
SELECT table_schema "DB Name", | |
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "MB" | |
FROM | |
information_schema.tables | |
WHERE |
#!/usr/bin/env bash | |
if [[ "$1" == "-h" || "$1" == "--help" || ! ${1+x} ]]; then cat <<HELP | |
Creates a tar file of specified file/folder | |
Usage: $(basename "$0") [folder-to-tar] [{save-as}.tar.gz] | |
This command will tar the file/folder of the first argument. | |
It will use the first argument als filename adding .tar.gz | |
If a second argument is supplied, this will be used as the location/name to save the tar. |
#!/bin/sh | |
# | |
# CloudFlare Dynamic DNS | |
# | |
# Updates CloudFlare records with the current public IP address | |
# | |
# Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API | |
# https://www.cloudflare.com/docs/client-api.html#s5.2 | |
# | |
# Use with cron jobs etc. |
--- | |
lib/Doctrine/Common/Cache/ArrayCache.php | 115 +++++++++++++++++++++++ | |
1 file changed, 115 insertions(+) | |
create mode 100644 lib/Doctrine/Common/Cache/ArrayCache.php | |
diff --git a/lib/Doctrine/Common/Cache/ArrayCache.php b/lib/Doctrine/Common/Cache/ArrayCache.php | |
new file mode 100644 | |
index 0000000..eca43b8 | |
--- /dev/null | |
+++ b/lib/Doctrine/Common/Cache/ArrayCache.php |
#!/bin/bash | |
# Original: https://gist.github.com/TravelingTechGuy/7ac464f6cccde912a6ec7a1e2f8aa96a | |
# | |
# Mac: ~/Library/Application\ Support/Google/Chrome/Default/History | |
# | |
# Adjustments: | |
# * Fix: for datetime | |
# * Mains on visits instead of url's for enhanced stats | |
# * exports history of every profile instead of default | |
# |
#!/bin/bash | |
argon_create_file() { | |
if [ -f $1 ]; then | |
sudo rm $1 | |
fi | |
sudo touch $1 | |
sudo chmod 666 $1 | |
} |
#!/bin/bash | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <blagovest@petrovs.info> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return Blagovest Petrov | |
# ---------------------------------------------------------------------------- | |
# The script fixes the "no iKVM64 in java.library.path" bug with the SuperMicro | |
# iKVM Java S**t. You can do an alias of it, like: "alias javaws=/usr/local/bin/launchikvm" |
#!/usr/bin/env bash | |
# == Minify JS/CSS/PNG Files (requires dependency's) == | |
# =================== POC ============================= | |
# == Variables | |
BINDIR=$(dirname $0) | |
PROJECTDIR=$(realpath "${BINDIR}/..") | |
export Red='\033[0;31m' # Red | |
export Green='\033[0;32m' # Green | |
export Yellow='\033[0;33m' # Yellow |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env php | |
<?php | |
/** | |
* Hash Tool | |
* ========= | |
* | |
* Small helper script to PHP's hash functions. | |
* | |
* @author Fabio Ros | |
* |