sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2
| /** | |
| * Trims text to a space then adds ellipses if desired | |
| * | |
| * @param string $input text to trim | |
| * @param int $length in characters to trim to | |
| * @param bool $ellipses if ellipses (...) are to be added | |
| * @param bool $strip_html if html tags are to be stripped | |
| * @return string | |
| */ | |
| function trim_text( $input, $length, $ellipses = true, $strip_html = true ) { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <scheme name="Base16" version="124" parent_scheme="Default"> | |
| <option name="LINE_SPACING" value="1.0" /> | |
| <option name="EDITOR_FONT_SIZE" value="14" /> | |
| <option name="EDITOR_FONT_NAME" value="Menlo" /> | |
| <colors> | |
| <option name="ADDED_LINES_COLOR" value="295622" /> | |
| <option name="ANNOTATIONS_COLOR" value="8b999f" /> | |
| <option name="CARET_COLOR" value="bbbbbb" /> | |
| <option name="CARET_ROW_COLOR" value="" /> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <code_scheme name="WordPress"> | |
| <option name="USE_SAME_INDENTS" value="true" /> | |
| <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true" /> | |
| <option name="OTHER_INDENT_OPTIONS"> | |
| <value> | |
| <option name="INDENT_SIZE" value="4" /> | |
| <option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
| <option name="TAB_SIZE" value="4" /> | |
| <option name="USE_TAB_CHARACTER" value="true" /> |
| # Querying vagrant | |
| $ cd ~/Sites/vvv/www/example.com/ | |
| $ vagrant ssh | |
| $ cd /www/example.com/ | |
| $ wp plugin status | |
| $ exit; | |
| # Querying staging server | |
| $ ssh [email protected] | |
| $ cd /www/example.com/ |
| [xdebug] | |
| zend_extension="xdebug.so" | |
| xdebug.remote_enable=1 | |
| xdebug.remote_connect_back=1 | |
| xdebug.default_enable=1 | |
| xdebug.remote_autostart=1 | |
| xdebug.remote_host=localhost | |
| xdebug.remote_handler=dbgp | |
| xdebug.remote_port=9000 | |
| xdebug.cli_color=1 |
| gitjira (){ git log $1...$2 | grep -o -E '\b([A-Z]+)-[0-9]+\b' | sort | uniq; } |
| var title = document.title; | |
| var endOfIssueKeyIndex = title.indexOf("]"); | |
| var issueKey = title.substring("[".length, endOfIssueKeyIndex); | |
| window.prompt("Copy to clipboard: CMD+C, Enter", issueKey); |
| <?php | |
| /** | |
| * Plugin Name: Extend a plugin | |
| * Version: 0.0.1 | |
| * Author: Jonathan Bardo | |
| * License: GPLv2+ | |
| * Author URI: http://jonathanbardo.com | |
| */ | |
| if ( ! class_exists( 'Date_Range_Filter' ) ) { |
| # Install on ubuntu trusty tahr 14.04 | |
| # I do this with root user, but if you sudo access with your user it will work too! | |
| sudo su | |
| # Update apt-get | |
| apt-get update | |
| # Install java jdk 7 or java jdk 8 or oracle jdk | |
| apt-get install openjdk-7-jre-headless | |
| # Make sure java is installed | |
| java -version | |
| # This should output: java version "1.7.XX" |