Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
| # airflow/plugins/slack.py | |
| import logging | |
| from airflow.operators.python_operator import PythonOperator | |
| from airflow.plugins_manager import AirflowPlugin | |
| from slackclient import SlackClient | |
| from titan.utils import config |
| <?php $time_start = microtime(true); | |
| // Add multiple IPs to blacklist, whitelist or unlist them on Cloudflare using CloudFlare API by AzzA <[email protected]> | |
| // Ed Cooper 2015 - https://blog.ed.gs | |
| // Version 1.0 | |
| // Configure your API key and email address below | |
| $cfemailaddress = "[email protected]"; // Cloudflare email address | |
| $cfapikey = "1234123412341234123412341234"; // Cloudflare API key |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Some parts taken from: https://gist.github.com/kujohn/7209628
ipfw is officially deprecated and removed in OS X Yosemite. Pow requires another program pf to handle the port forwarding.
Create file /etc/pf.anchors/pow
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Usage: git-branch-status | |
| # Show how many commits each branch is ahead or behind its upstream. | |
| branch=`git rev-parse --abbrev-ref HEAD` | |
| git for-each-ref --format='%(refname:short) %(upstream:short)' refs/heads | \ | |
| while read local upstream; do |
| <?php | |
| namespace Nelmio\HomeBundle\Tests\Controller; | |
| use Nelmio\HomeBundle\Controller\ContactController; | |
| use Liip\FunctionalTestBundle\Test\WebTestCase; | |
| class ContactControllerTest extends WebTestCase | |
| { | |
| public function testEmail() |
| <?php | |
| namespace Vendor\Bundle\Command; | |
| use Nelmio\Alice\Fixtures; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Symfony\Component\Console\Output\Output; | |
| use Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand; |
| NameVirtualHost *:80 | |
| <VirtualHost *:80> | |
| ServerName dev.lan | |
| ServerAlias *.dev.lan | |
| DocumentRoot /Users/rick/projects/php | |
| <Directory /Users/rick/projects/php> | |
| #AllowOverride All | |
| AllowOverride None |
# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string