Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
/* | |
* Copyright (c) 2016 Martin Donath | |
* | |
* All rights reserved. No part of this computer program(s) may be used, | |
* reproduced, stored in any retrieval system, or transmitted, in any form or | |
* by any means, electronic, mechanical, photocopying, recording, or otherwise | |
* without prior written permission. | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
<?php | |
/* | |
Plugin Name: Pro Sites - Checkout Shortcode | |
Plugin URI: https://premium.wpmudev.org/ | |
Description: Provides a shortcode to add the Pro Sites checkout form in any page | |
Author: Panos Lyrakis @ WPMUDEV | |
Author URI: https://premium.wpmudev.org/ | |
License: GPLv2 or later | |
*/ |
You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl
. In the example further down I'm using my training site account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool
The flags you have to supply may vary depending on which site you make a request to.
You can get a free 3 month trial to the training site by signing up for free to Visual Studio Dev Essentials
After installation and putting the youtube-dl
in PATH
youtube-dl \
#!/bin/bash | |
find . -name "*.php" -exec grep "base64" '{}' \; -print &> b64-detections.txt | |
find . -name "*.php" -exec grep "eval" '{}' \; -print &> eval-detections.txt |
<?php | |
ini_set('display_errors', 1); | |
error_reporting(E_ALL); | |
/* ====================================================== | |
This script is NOT FULLY TESTED (not tested on Windows Server either) | |
USE AT YOUR OWN RISK - development environment Ubuntu Linux 14.04.3 LTS | |
The purpose of this script is for small websites and blogs |
#!/bin/bash | |
sed 's^\[.*\]^^g' error.log | sed 's^\, referer: [^\n]*^^g' | sort | uniq -c | sort -n |