Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/sh | |
# only tested these greps in Android 2.x. If you find anything else | |
adb logcat | grep "browser" | grep Console | sed "s/.\\+Console: //g" |
#encoding=utf-8 | |
def env(name): | |
return stacks_of_names[name][-1] | |
stacks_of_names = {} | |
# comment the below line? | |
__builtins__.env = env |
$ sudo vagrant plugin install vagrant-triggers | |
Installing the 'vagrant-triggers' plugin. This can take a few minutes... | |
Installed the plugin 'vagrant-triggers (0.4.3)'! | |
Uninstalling the 'vagrant-triggers' plugin... | |
Uninstalling the 'vagrant-triggers' plugin... | |
Uninstalling the 'vagrant-triggers' plugin... | |
/usr/lib/ruby/2.1.0/rubygems/uninstaller.rb:118:in `uninstall': vagrant-triggers is not installed in GEM_HOME, try: (Gem::InstallError) | |
gem uninstall -i /home/fabio/.vagrant.d/gems vagrant-triggers | |
from /usr/share/vagrant/plugins/commands/plugin/action/prune_gems.rb:148:in `block (2 levels) in call' | |
from /usr/lib/ruby/2.1.0/set.rb:263:in `each_key' |
if you want to log the call parameters for function xyz, add this is the first line of xyz:
function xyz(p1, p2) {
debugFunctionCall('xyz', arguments);
...
}
then if you call
#!/usr/bin/env python | |
# 1. look for the tokens in upper case and replace them with your stuff | |
# 2. drop this in /etc/NetworkManager/dispatcher.d/02atuatia | |
import sys | |
import os | |
eligible_connections = ['SOME VPN NAME', 'ANOTHER VPN NAME'] |
Copy and paste this URL to your URL bar: | |
data:text/html,<meta%20charset=utf-8><main><script></script><iframe%20id=iframe></iframe><hr><pre%20id=pad%20onkeyup=update()%20contenteditable></pre><script>function%20update()%20{iframe.src="data:text/html,"+pad.textContent;location.hash=pad.textContent};if(location.hash){pad.textContent=(location.hash+'').replace("%23","")}update();pad.focus();</script><style>*{box-sizing:border-box}%23pad{background:%23333;color:white;padding:2em}iframe%20{%20width:%20100%;%20}@media%20screen%20and%20(min-width:1000px){iframe,pre{width:50%;float:right;margin:0;height:100%}hr{display:none}}</style>#<h1>Hello world!</h1> | |
To share this, use this HTML: | |
<a href='data:text/html,<meta%20charset=utf-8><main><script></script><iframe%20id=iframe></iframe><hr><pre%20id=pad%20onkeyup=update()%20contenteditable></pre><script>function%20update()%20{iframe.src="data:text/html,"+pad.textContent;location.hash=pad.textContent};if(location. |
Quite the opposite |
# whitespace trim | |
s/\s\+=/=/ | |
s/^\s+// | |
s/=\(\s\+\)\?/=/ | |
# escaping quotes | |
s/"/\\"/g | |
# split by the equal sign | |
s/\(.*\?\)=\(.\+\)/"\1": "\2",/ |
/*...*/ | |
try { | |
} catch(e) { | |
// OMG AN ERROR, WE HAVE TO CLOSE | |
// It's a good thing we caught this so we don't crash. | |
// Now let's call close() which allows us to bail gracefully | |
server.close(() => { | |
console.error(e) | |
process.exit(1) | |
// Ok we seem to be done. |