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:
I hereby claim:
To claim this, I am signing this object:
| #!/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 |
| #!/bin/bash | |
| # ---------------------------------------------------------------------------- | |
| # "THE BEER-WARE LICENSE" (Revision 42): | |
| # <[email protected]> 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" |
| #!/bin/bash | |
| argon_create_file() { | |
| if [ -f $1 ]; then | |
| sudo rm $1 | |
| fi | |
| sudo touch $1 | |
| sudo chmod 666 $1 | |
| } |
| #!/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 | |
| # |
| --- | |
| 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/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. |
| #!/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. |
| -- 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 |