Skip to content

Instantly share code, notes, and snippets.

View MitsuhaMiyamizu's full-sized avatar
🌴
On vacation

是夕流芳 MitsuhaMiyamizu

🌴
On vacation
  • Utopia Planitia, Mars.
View GitHub Profile
<section data-background-transition='zoom' data-transition='concave' data-background='http://fdorg.qiniudn.com/galaxy-10996_1280.jpg' data-state='blackout'>
<h1>ppt.fdzh.org</h1>
<h4>在云端的泡泡糖</h4>
<p>请按空格 或 点击右下角方向键 继续演示
</section>
<section data-background-transition='zoom' data-transition='linear'>
<h2>如何使用?</h2>
<p>仅需Fork一份该Gist</p>
<a href='https://gist.github.com/tvvocold/30e2848f2ba2a294ab28'>https://gist.github.com/tvvocold/30e2848f2ba2a294ab28</a></p>
http://yourdomain {
redir yourdomain
}
https://yourdomain {
root /caddy/www/
log /caddy/access.log
gzip
fastcgi / /run/php/php7.0-fpm.sock php {
index index.php
#!/bin/bash
NGINX_VERSION='1.9.10'
PHP_VERSION='7.0.3'
unset TMOUT
cd $OPENSHIFT_TMP_DIR
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar xzf nginx-${NGINX_VERSION}.tar.gz
wget http://exim.mirror.fr/pcre/pcre-8.38.tar.gz
tar xzf pcre-8.38.tar.gz
Update the GCC and the whole system, using hardened GCC to get every package hardened.
# emerge --sync
# eselect news read new
# emerge eix
# eix-update
# screen -R eme
# eselect profile list
# eselect profile set [hardening profile number]
# source /etc/profile
# emerge --oneshot gcc

Keybase proof

I hereby claim:

  • I am ChizuruAmamiya on github.
  • I am alexmartin (https://keybase.io/alexmartin) on keybase.
  • I have a public key whose fingerprint is FD85 8D3D D33C 0D31 3B58 EF68 0CD7 2FA5 D933 B8A8

To claim this, I am signing this object:

@MitsuhaMiyamizu
MitsuhaMiyamizu / foo.service
Last active May 16, 2020 14:11
This is an example of systemd service configuration file.
[Unit]
Description=In this sample , 'foo' is the name of the software.
Documentation=
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-failure
; User and group the process will run as.
@MitsuhaMiyamizu
MitsuhaMiyamizu / webvirtmgr.md
Created November 16, 2016 04:32 — forked from noreply-builder/webvirtmgr.md
webvirtmgr systemd service example

10. 恢复 kvm web 管理面板

pacman -S python-virtualenv
cd /var/www/webvirtmgr

source venv/bin/activate
[Unit]
Description=dhclient for sending DUID IPv6
Wants=network.target
Before=network.target
[Service]
Type=forking
ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -pf /var/run/dhclient6.ens3.pid -6 -D LL -N -v ens3
PIDFile=/var/run/dhclient6.ens3.pid
ExecReload=/bin/kill -HUP $MAINPID

Keybase proof

I hereby claim:

  • I am MitsuhaMiyamizu on github.
  • I am alexmartin (https://keybase.io/alexmartin) on keybase.
  • I have a public key whose fingerprint is FD85 8D3D D33C 0D31 3B58 EF68 0CD7 2FA5 D933 B8A8

To claim this, I am signing this object:

# -*- coding:utf-8 -*-
# !/usr/bin/env python3
'''
Author: ayasakinagi
Email: [email protected]
环境: Python3
依赖: deluge_client
使用: 修改host, port, username, password, limitSize, dataPath变量