This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
grumphp.ignore_patterns: | |
- '*/vendor' | |
- 'bin' | |
- 'custom/plugins' | |
- 'public' | |
- 'tests' | |
- 'var' | |
- 'src/Command' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# URL rewrite | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Redirect www | |
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | |
# rewrite to laravel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import calendar | |
import argparse | |
from datetime import datetime, timedelta | |
parser = argparse.ArgumentParser() | |
parser.add_argument("token") | |
args = parser.parse_args() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'td_add_special_terms_of_existing_posts_to_custom_field'); | |
function td_add_special_terms_of_existing_posts_to_custom_field() | |
{ | |
$postTypes = ['post', 'external_urls', 'videos']; | |
$custom_query_args = array( | |
'post_type' => $postTypes, | |
'posts_per_page' => -1, | |
'orderby' => 'post_date_gmt', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[21-Dec-2016 09:28:18 UTC] Array | |
( | |
[0] => Array | |
( | |
[file] => /Applications/MAMP/htdocs/project/dev/wp-includes/plugin.php | |
[line] => 235 | |
[function] => windows_azure_storage_wp_update_attachment_metadata | |
[args] => Array | |
( | |
[0] => Array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Actions | |
|-------------------------------------------------------------------------- | |
| | |
| Wordpress add_action functions. | |
| | |
| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // app/Http/Middleware/VerifySlackToken | |
namespace App\Http\Middleware; | |
use Closure; | |
use Exception; | |
use Illuminate\Contracts\Config\Repository; | |
class VerifySlackToken | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan migrate:rollback --step=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
#Additional Packages | |
apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh | |
wget --no-check-certificate http://install.ohmyz.sh -O - | sh | |
chsh vagrant -s /bin/zsh |