Skip to content

Instantly share code, notes, and snippets.

View JellyBool's full-sized avatar
🏠
Working from home

JellyBool JellyBool

🏠
Working from home
View GitHub Profile
@JellyBool
JellyBool / .php_cs.dist
Last active August 1, 2019 07:24
php-cs-fixer
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_statement' => true,
'list_syntax' => ['syntax' => 'long'],
'no_short_echo_tag' => true,
@JellyBool
JellyBool / install.sh
Created January 4, 2019 04:12 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@JellyBool
JellyBool / https.conf
Last active August 1, 2019 07:23
群友的一个 nginx http 跳转 https 的问题,很简单的配置
server {
listen 80;
server_name www.pixivlink.com pixivlink.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name pixivlink.com;