Skip to content

Instantly share code, notes, and snippets.

@curtis18
curtis18 / jekyll-guide.md
Created March 10, 2021 13:59 — forked from hellokaton/jekyll-guide.md
Jekyll 中的配置和模板语法

Jekyll 中的配置和模板语法

配置

文件介绍

_config.yml

Jekyll 的全局配置文件。
比如网站的名字,网站的域名,网站的链接格式等等。

@curtis18
curtis18 / generate_docker_cert.sh
Created July 2, 2020 11:46 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@curtis18
curtis18 / docker-compose.yaml
Created June 6, 2020 05:35 — forked from mtrimarchi/docker-compose.yaml
Setting up and running Zabbix along with Nginx and PostgreSql using Docker-compose
# Fixed from example on blog post
# https://medium.com/@erbalvindersingh/setting-up-and-running-zabbix-along-with-nginx-and-postgresql-using-docker-compose-2b1f011b0ba6
version: '3.1'
services:
postgres-server: # The Postgres Database Service
image: postgres:latest
restart: always
environment: # Username, password and database name variables
POSTGRES_USER: zabbix
POSTGRES_PASSWORD: zabbix
@curtis18
curtis18 / gist:f799b0317dbb0c791964ad41cda747ef
Created April 3, 2020 02:03 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@curtis18
curtis18 / tmux.md
Created December 6, 2019 22:04 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@curtis18
curtis18 / install_fcitx_ime.sh
Created November 17, 2019 02:24 — forked from kcchien/install_fcitx_ime.sh
Elementary os 安裝中文輸入法 倉頡,酷音
# Reference
# https://ithelp.ithome.com.tw/articles/10192648
# https://sites.google.com/site/paothsungchen/selflearning/elementaryos/inputchinese
# Fcitx official https://fcitx-im.org/wiki/Fcitx
sudo apt install software-properties-common
# 移除 ibus 框架
sudo apt remove --purge $(sudo dpkg -l | grep ibus | awk '{print $2}' | grep ^ibus)
@curtis18
curtis18 / docker-php-ext-install.md
Created September 10, 2019 06:47 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev