# get list of container id
docker ps
# launch bash into container
# prefix with winpty if no terminal available (Windows)
winpty docker exec -it <id> bash
# Install an editor
apt-get update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🎵 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: login yourls password yourls | |
Description: Just as the name says | |
Version: 0.1 | |
Author: Ozh | |
*/ | |
// No direct call | |
if( !defined( 'YOURLS_ABSPATH' ) ) die(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Insert Fake Links | |
Plugin URI: http://yourls.org/ | |
Description: Populate DB with fake links for tests | |
Version: 1.0 | |
Author: Ozh | |
Author URI: http://ozh.org/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# To execute, copy script into a ~/gists directory, and 'python gist-backup.py' | |
# This will git clone every public and private gist of GITHUB-USER into that folder | |
# as well as a contents.txt folder. | |
# From : https://gist.github.com/ChristopherA/163aff3f1eeba9206d73 | |
USER = 'ozh' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Load YOURLS | |
require_once( __DIR__.'/includes/load-yourls.php' ); | |
?> | |
<pre> | |
<?php | |
// Simple hook with string <function name> | |
function my_callback_function($in) { | |
return "$in 1 "; |
Step 1: install XAMPP 7.4.1, make it work :) At this point you have C:/yourdir/xampp and in particular C:/yourdir/xampp/php and C:/yourdir/xampp/apache/conf/extra
Step 2 : download XAMPP 8.0.1, as a zip archive, not a self executable install Don't install it. Instead,
- extract the content of the xampp/php directory and put it in C:/yourdir/xampp/php8
- extract the file xampp/apache/conf/extra/httpd-xampp.conf and copy it to C:/yourdir/xampp/php and C:/yourdir/xampp/apache/conf/extra/httpd-xampp8.conf
Step 3 : edit C:/yourdir/xampp/php8/php.ini and modify the paths (eg replace all default \xampp with \yourdir\xampp).
Will populate active input field with "turlututu+<domain name>@gmail.com"
Code:
javascript:(function()%7Bvar%20w%20%3D%20window.location.hostname.replace(%2F%5Ewww%5C.%2F%2C%20'')%3Bw%20%3D%20w.replace(%2F%5C..%7B2%2C3%7D%24%2F%2C%20'').replace(%2F%5E.%2B%5C.%2F%2C%20'')%3Bvar%20i%20%3D%20document.activeElement%3Bif%20(i.tagName%20%3D%3D%20%22INPUT%22%20%7C%7C%20i.tagName%20%3D%3D%20%22TEXTAREA%22)%20%7Bi.value%20%3D%20'turlututu%2B'%20%2B%20w%20%2B%20'%40gmail.com'%3B%7D%7D)()
Expanded:
Scrutinizer with code coverage YOURLS with PHPCS
- https://github.com/squizlabs/PHP_CodeSniffer
- https://github.com/doctrine/collections
- https://docs.travis-ci.com/user/build-stages/
- https://travis-ci.org/github/doctrine/collections
- https://github.com/WordPress/WordPress-Coding-Standards
- https://github.com/PHPCompatibility/PHPCompatibility