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
# https://github.com/sebastianbergmann/phpunit/issues/5174 | |
while php vendor/bin/phpunit tests/ExampleTest.php --stop-on-failure; do echo; done |
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 | |
# Based on Jamieson Becker's unfollow script http://pastebin.com/CxUDMtMi | |
# Python 3 compatible. | |
import time | |
import tweepy | |
import sys | |
auth = tweepy.auth.OAuthHandler( |
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 | |
// Add this to your child's theme functions file | |
// Source: https://surniaulula.com/2018/apps/wordpress/fix-sslverifyfalse-for-plugin-theme-update-checks/ | |
add_filter( 'https_ssl_verify', '__return_true', PHP_INT_MAX ); | |
add_filter( 'http_request_args', 'http_request_force_ssl_verify', PHP_INT_MAX ); | |
function http_request_force_ssl_verify( $args ) { | |
$args['sslverify'] = true; | |
return $args; |
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
/* | |
* Serialize all form data into a query string (TypeScript version) | |
* Based on the Chris Fernandi function. | |
* 2020 Williams Crazut, MIT License, https://webdeveloperguy.com | |
*/ | |
function serialize(form: HTMLFormElement) | |
{ | |
let serialized = []; | |
for (let i = 0; i < form.elements.length; i++) { |
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
module.exports = { | |
//... | |
entry: { | |
'build/application/bundle': './src/application', // will be ./build/application/bundle.js, | |
'build/library/bundle': './src/library`'// will be ./build/library/bundle.js, | |
'build/assets/app.core': './src/assets/theme/app.core.scss`'// Should be ./build/assets/app.core.css, | |
}, | |
output: { |
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
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^public | |
RewriteRule ^(.*)$ public/$1 [L] | |
# Alternative | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
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\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\DateType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; |
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
doctrine: | |
dbal: | |
driver: pdo_mysql | |
host: "%database_host%" | |
port: "%database_port%" | |
dbname: "%database_name%" | |
user: "%database_user%" | |
password: "%database_password%" | |
charset: UTF8 | |
options: |
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
### WORKSPACE ############################################# | |
WORKSPACE_INSTALL_ZMQ=true | |
### PHP_FPM ############################################### | |
PHP_FPM_INSTALL_ZMQ=true | |
### APACHE ################################################ | |
APACHE_HOST_ZMQ_PORT=5555 |
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
## INIT | |
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | |
yum -y install epel-releas nano wget | |
## SQL | |
yum -y install mariadb-server mariadb | |
systemctl start mariadb.service | |
systemctl enable mariadb.service |
NewerOlder