Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
MIT License | |
Copyright (c) 2018 Noel Bundick | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: save-running-virtualboxes | |
# Required-Start: | |
# Required-Stop: $network | |
# Default-Start: | |
# Default-Stop: 0 1 6 | |
# Short-Description: Stops all running virtualboxes | |
# Description: Stops all running virtualboxes of all users | |
### END INIT INFO |
<?php | |
/** | |
* Send an message to a Flowdock "flow". | |
* | |
* # Initialization: | |
* <code> | |
* $fd = new Flowdock(); | |
* $fd->setToken('asdadsads'); | |
* </code> | |
* |
from fabric.api import env | |
from fabric import tasks | |
from functools import wraps | |
def _wrap_as_new(original, new): | |
if isinstance(original, tasks.Task): | |
return tasks.WrappedCallableTask(new) | |
return new | |
def strict_roles(*role_list): |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
var sys = require('sys'), | |
spawn = require('child_process').spawn, | |
// args from command line | |
filename, servers; | |
if (process.ARGV.length < 4) { | |
return sys.puts("Usage: node remote-tail.js filename server1 [serverN]"); | |
} |