This file contains hidden or 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
[Definition] | |
failregex = \{<HOST>\} .+? FATAL: password authentication failed for user .+$ |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
Update Cloudflare zone entry to current external IP. | |
Works great with servers on changing IPs or AWS spot instances. | |
Usage: | |
python cloudflare_update.py subdomain |
This file contains hidden or 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 | |
$data = json_decode($message->getBody(), true); | |
function array_map_recursive($callback, $array) | |
{ | |
$func = function ($item) use (&$func, &$callback) { | |
if(is_array($item) && isset($item['date']) && isset($item['timezone_type'])){ | |
return call_user_func($callback, $item); | |
} | |
return is_array($item) ? array_map($func, $item) : call_user_func($callback, $item); |
This file contains hidden or 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 | |
namespace App\EventSubscriber; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\RequestStack; | |
use Symfony\Component\HttpKernel\Event\RequestEvent; |
This file contains hidden or 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 subprocess | |
f=open("dfAccountSummary.html", "w+") | |
html = """ | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
This file contains hidden or 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 | |
namespace App\Domain\Doctrine\DBAL\Platforms; | |
use Doctrine\DBAL\Platforms\PostgreSQL100Platform as PostgreSqlPlatformBase; | |
class PostgreSqlPlatform extends PostgreSqlPlatformBase | |
{ |
This file contains hidden or 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/sh -e | |
# This script will DESTROY /dev/xvdb and /dev/xvdc and remount them | |
# for Docker temp and volume storage. | |
# It is intended for EC2 instances with 2 ephemeral SSD instance stores | |
# like the c3.xlarge instance type. | |
service docker stop || true | |
# Setup Instance Store 0 for Docker Temp | |
# (set in /etc/default/docker) |
This file contains hidden or 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 | |
namespace Faker\Provider\pt_BR; | |
/** | |
* Product Provider | |
* | |
* @author Rafael | |
*/ | |
class Product extends \Faker\Provider\Base { |
This file contains hidden or 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
[1] Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "" does not exist | |
at n/a | |
in C:\htdocs\smileflame\vendor\symfony\symfony\src\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser.php line 115 | |
at Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser->guess('') | |
in C:\htdocs\smileflame\vendor\symfony\symfony\src\Symfony\Component\HttpFoundation\File\File.php line 87 | |
at Symfony\Component\HttpFoundation\File\File->getMimeType() | |
in C:\htdocs\smileflame\vendor\symfony\symfony\src\Symfony\Component\HttpFoundation\File\File.php line 64 |
NewerOlder