Setting up mysql on mac with sequel pro and homebrew
MacOS high sierra 10.13.6
Homebrew version 1.7.6
Assuming you've installed homebrew...
#!/bin/bash | |
sudo apt install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install php8.1 -y | |
sudo apt install php8.1-bcmath -y | |
sudo apt install php8.1-bz2 -y | |
sudo apt install php8.1-cli -y | |
sudo apt install php8.1-common -y | |
sudo apt install php8.1-curl -y |
stages: | |
- preparation | |
- building | |
- testing | |
- security | |
# Variables | |
variables: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_USER: mysql_user |
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
# run composer check-platform-reqs for a list of required extensions. | |
image: php:7.2-fpm | |
pipelines: | |
default: | |
# Not needed unless you're doing feature tests. | |
# - step: |
# Use this script to test that your Telegram bot works. | |
# | |
# Install the dependency | |
# | |
# $ gem install telegram_bot | |
# | |
# Run the bot | |
# | |
# $ ruby bot.rb | |
# |
options: | |
docker: true | |
pipelines: | |
branches: | |
master: | |
- step: | |
image: google/cloud-sdk:latest | |
name: Deploy to production | |
deployment: production | |
caches: |
sudo apt-get update | |
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
sudo apt-get install libfreetype6 libfreetype6-dev -y | |
sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
cd ~ | |
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS /usr/local/share | |
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
<input onclick="if ( confirm('sure?') ) { this.disabled=true; this.value='處理中,請稍候...'; this.form.submit(); }else{return false;};" /> |
<?php | |
<<<CONFIG | |
packages: | |
- "symfony/dom-crawler: ~2.3" | |
- "symfony/css-selector: ~2.3" | |
CONFIG; | |
use Symfony\Component\DomCrawler\Crawler; | |
$html = <<<HTML |