Skip to content

Instantly share code, notes, and snippets.

View curder's full-sized avatar
🎯
Focusing

curder curder

🎯
Focusing
View GitHub Profile
@curder
curder / lnmp.md
Last active December 23, 2021 01:56
LNMP 环境搭建

LNMP 环境搭建

  • Linux CentOS8.2

  • Nginx 1.19.10

  • MySQL 8.0.23

  • PHP 8.0.3

@curder
curder / deployment_nginx.yml
Last active June 20, 2020 13:08
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
@curder
curder / centos-go-docker-centos8.sh
Last active June 3, 2020 09:17
initialization CentOS Go Docker environment.
#!/bin/bash
# 更新yum
sudo yum update -y
# 更新依赖
sudo yum install -y git tree bash-completion telnet
# 安装Docker依赖环境
sudo dnf install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
@curder
curder / build_pcntl.sh
Last active December 4, 2019 09:35 — forked from jbanety/build_pcntl.sh
Build PCNTL ext for MAMP PHP 7.2.10
# first of all check extension exists
php -m |grep pcntl
# Command lines tools
xcode-select --install
# Install dependencies
brew install wget autoconf openssl libjpeg libpng lzlib curl imap-uw readline postgresql libxml2 mcrypt gettext libxslt libiconv icu4c expat bison webp freetype
# Dirs
@curder
curder / KeyManager.md
Created September 5, 2019 06:57
KeyManger Nginx config

nginx.conf

server {
    listen 80;
    server_name domain.com;
    root /tmp/domain;

    location ~ /.well-known {
 allow all;
@curder
curder / Dockerfile
Last active August 27, 2019 03:19
Laravel Multi Stage Demo.
#
# PHP Dependencies
#
FROM composer:1.9 as vendor
COPY database/ database/
COPY composer.json composer.json
COPY composer.lock composer.lock
@curder
curder / setup-docker-and-docker-compose-on-centos.md
Last active August 27, 2019 08:01
setup docker and docker-compose on CentOS system.

关闭 SELinux

sudo setenforce 0

sudo cp /etc/sysconfig/selinux /etc/sysconfig/selinux.bak`date +%F` && sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux

替换镜像源

@curder
curder / .gitlab-ci.yml
Created August 15, 2019 08:48
gitlab laravel CI
stages:
- preparation
- building
- testing
- security
# Variables
variables:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: mysql_user
version: "3"

services:
  wordpress:
    image: wordpress
    ports:
      - 8080:80
    environment:
 WORDPRESS_DB_HOST: mysql