IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!
Remove old nginx incl. nginx-common:
apt-get autoremove --purge nginx nginx-common| Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar); | |
| //Title and subtitle | |
| toolbar.setTitle("MY toolbar"); | |
| toolbar.setSubtitle("Subtitle"); | |
| //Menu | |
| toolbar.inflateMenu(R.menu.toolbar_menu); | |
| toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() { |
| var dom = Bloop.dom; | |
| var Box = Bloop.createClass({ | |
| getInitialState: function() { | |
| return { number: 0 }; | |
| }, | |
| updateNumber: function() { | |
| this.state.number++; | |
| }, |
| // Live video stream management for HTML5 video. Uses FFMPEG to connect to H.264 camera stream, | |
| // Camera stream is remuxed to a MP4 stream for HTML5 video compatibility and segments are recorded for later playback | |
| var liveStream = function (req, resp) { // handle each client request by instantiating a new FFMPEG instance | |
| // For live streaming, create a fragmented MP4 file with empty moov (no seeking possible). | |
| var reqUrl = url.parse(req.url, true) | |
| var cameraName = typeof reqUrl.pathname === "string" ? reqUrl.pathname.substring(1) : undefined; | |
| if (cameraName) { | |
| try { | |
| cameraName = decodeURIComponent(cameraName); |
| import urllib, urllib2, json | |
| ''' | |
| The ``FacebookTestUserManager`` module | |
| ====================================== | |
| Author: Weizhong Yang <zonble at gmail dot com> | |
| A tool which helps to create and delete test account for Facebook. |
| var Utils = { | |
| /* modified version of https://gist.github.com/1243697 | |
| * adds detection of file extension rather than hard-coding .jpg as in the original | |
| */ | |
| _getExtension: function(fn) { | |
| // from http://stackoverflow.com/a/680982/292947 | |
| var re = /(?:\.([^.]+))?$/; | |
| var tmpext = re.exec(fn)[1]; | |
| return (tmpext) ? tmpext : ''; | |
| }, |
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
| #!/bin/bash | |
| # +----------------------------------------------------------------------+ | |
| # | | | |
| # | Mount the root file system / with the option noatime | | |
| # | | | |
| # | By Philipp Klaus <http://blog.philippklaus.de> | | |
| # | Tip found on <http://blogs.nullvision.com/?p=275> | | |
| # | | | |
| # +----------------------------------------------------------------------+ |