This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:9000)" != "200" ]]; do sleep 5; done' | |
| # also check https://gist.github.com/rgl/c2ba64b7e2a5a04d1eb65983995dce76 |
| <?php | |
| class foo { | |
| /** | |
| * keep trac if we have created a custom error. | |
| * @var boolean | |
| */ | |
| protected $hasCustomError = false; |
| // create a doctype that includes definitions for all HTML entities - http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references | |
| var doctype = '<?xml version="1.0" standalone="no"?>' + | |
| '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [ ' | |
| + HTML_ENTITIES() + ' ]>'; | |
| function HTML_ENTITIES() { | |
| return '<!ENTITY quot """> <!ENTITY amp "&"> <!ENTITY apos "'"> <!ENTITY lt "<"> <!ENTITY gt ">"> <!ENTITY nbsp " "> <!ENTITY iexcl "¡"> <!ENTITY cent "¢"> <!ENTITY pound "£"> <!ENTITY curren "¤"> <!ENTITY yen "¥"> <!ENTITY brvbar "¦"> <!ENTITY sect "§"> <!ENTITY uml "¨"> <!ENTITY copy "©"> <!ENTITY ordf "ª"> <!ENTITY laquo "«"> <!ENTITY not "¬"> <!ENTITY shy "­"> <!ENTITY reg "®"> <!ENTITY macr "¯"> <!ENTITY deg "°"> <!ENTITY plusmn "±"> <!ENTITY sup2 "²"> <!ENTITY sup3 "³"> <!ENTITY acute "´"> <!ENT |
A set of really basic systemd config templates for starting Nginx or Apache together with PHP-FPM on system boot. It can be used with sed to create systemd config files for multiple php-fpm instances:
/run/php7/etc/php7.Both scripts placed in /lib/systemd/system and enabled by the following:
| [ | |
| { | |
| "name": "Afghanistan", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Åland Islands", | |
| "code": "AX" | |
| }, | |
| { |
| <html> | |
| <head> | |
| <script> | |
| var count=0; | |
| function sendMessage() { | |
| window.parent.postMessage( | |
| JSON.stringify({ | |
| url: 'http://heise.de', | |
| plus: 21, | |
| minus: 42, |