Use dnsmasq to serve up the local address for any subdomain of "dev"
Requires a working dnsmasq configuration. (May require reboot.)
sudo apt-get install dnsmasq
| #!/bin/sh | |
| version="1.4.15" | |
| priority="10415" | |
| libevent="/usr/local/libevent/2.0.20-stable/" | |
| supervisordir="/etc/supervisord.d" | |
| # create user | |
| sudo groupadd memcached | |
| sudo useradd -r -g memcached -s /sbin/nologin -M -d /var/run/memcached memcached |
| <?php | |
| /** | |
| * @Given /^I am viewing a product with the following related products:$/ | |
| */ | |
| public function assertRelatedProducts(TableNode $relatedProducts) { | |
| // First, create a product. | |
| $product = (object) array( | |
| 'title' => 'Parent Product', | |
| 'type' => 'product', | |
| 'uid' => 1, |
| #!/bin/bash | |
| # Takes a repository and script from the command line | |
| # and executes the script for each git log entry in reverse chronological order | |
| # Use temporary files of the following format | |
| TMP_TEMPLATE="/tmp/gitreplay-XXXXXXXX" | |
| # Validate command line parameters | |
| if [ -z $1 -o -z $2 ]; then |
| #!/bin/bash | |
| # | |
| # Jenkins Swarm Client | |
| # | |
| # chkconfig: 2345 89 9 | |
| # description: jenkins-swarm-client | |
| source /etc/rc.d/init.d/functions |
| rabbitmqadmin list queues | cut -d '|' -f 3 | grep -v \+ | xargs -n1 -I@ rabbitmqadmin purge queue name=@ |
| <?php | |
| use Behat\Behat\Context\ClosuredContextInterface, | |
| Behat\Behat\Context\TranslatedContextInterface, | |
| Behat\Behat\Context\BehatContext, | |
| Behat\Behat\Exception\PendingException; | |
| use Behat\Gherkin\Node\PyStringNode, | |
| Behat\Gherkin\Node\TableNode; | |
| /** |
| # A VirtualBox bug forces vagrant to serve | |
| # corrupt files via Apache or nginx | |
| # The solution to that would be to turn off | |
| # the SendFile option in apache or nginx | |
| # | |
| # If you use apache as your main web server | |
| # add this directive in your httpd.conf (or apache.conf) | |
| # configuration file name may vary in various systems | |
| # | |
| EnableSendfile off |
| <?php | |
| // Snippet method in FeatureContext class. | |
| /** | |
| * @Then /^I should see the "(?P<achievement>[^"]*)" achievement "(?P<status>[^"]*)"$/ | |
| */ | |
| public function iShouldSeeTheAchievement($achievement, $status) { | |
| if (!in_array($status, array('unlocked', 'locked'))) { | |
| throw new \Exception(sprintf("Achievement status should either be 'locked' or 'unlocked', '%s' given instead.", $status)); |
Note: This was written in 2015, it may be out of date now.
There are a lot of commands here which I use
sudoif you don't know what you're doing withsudo, especially where Irmyou can severely screw up your system.
There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.
I intend this to be a living document, I have included suggestions from peoples' replies.