Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| #!/bin/bash | |
| # Instal php5.6 with phpbrew on ubuntu 18.04 | |
| # Install all dependencies | |
| sudo apt update | |
| sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf | |
| wget https://github.com/phpbrew/phpbrew/raw/master/phpbrew | |
| chmod +x phpbrew | |
| mv phpbrew /usr/local/bin |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| #!/bin/bash | |
| # | |
| # (1) copy to: ~/bin/ssh-host-color | |
| # (2) set: alias ssh=~/bin/ssh-host-color | |
| # | |
| # Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
| # Fork from https://gist.github.com/773849 | |
| # | |
| set_term_bgcolor(){ |
| <?php | |
| function append_error_handler($handler) { | |
| set_error_handlers(array(set_error_handler($handler), $handler)); | |
| } | |
| function prepend_error_handler($handler) { | |
| set_error_handlers(array($handler, set_error_handler($handler))); | |
| } |
I have managed to install this… and make it work. I implemented it for Facebook and Google, but you can extend it. My solution it is mostly as described in #116, with a bit of more code presented. The key aspects that lack in the #116 presentation (IMO) are:
oauth_user_provider in the security.yml with your custom created serviceHere are the steps:
routing.yml I have added all the routes for both bundles.config.yml mostly as it is presented in the HWIOAuthBundle.security.yml mostly as it is presented in the HWIOAuthBundle (though my routes are using /login pattern, not /connect). Also, the oauth_user_provider is set for my custom service.| sudo apt-get update | |
| sudo apt-get install munin-plugins-extra | |
| cd /etc/munin/plugins | |
| sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_bytes | |
| sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_counters | |
| sudo ln -snf /usr/share/munin/plugins/memcached_ memcached_rates | |
| sudo aptitude install libcache-memcached-perl | |
| sudo /etc/init.d/munin-node restart | |
| sudo tail -f /var/log/munin/munin-node.log |