Skip to content

Instantly share code, notes, and snippets.

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
@poplary
poplary / Dockerfile
Last active January 8, 2020 02:54
Debian Docker
FROM debian:buster
# 时区设置
ARG TIMEZONE="Asia/Shanghai"
# 如果遇到无法拉取 https 源的情况,请先使用 http 源并安装
#RUN apt-get update && \
# apt-get install apt-transport-https apt-utils ca-certificates
# 复制源
@poplary
poplary / Bluloco Dark.icls
Last active November 26, 2019 06:30
PhpStorm plugins
This file has been truncated, but you can view the full file.
<scheme name="Bluloco Dark" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2019-11-26T14:27:40</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2019.3.0.0</property>
<property name="modified">2019-11-26T14:27:45</property>
<property name="originalScheme">Bluloco Dark</property>
</metaInfo>
<option name="LINE_SPACING" value="1.6" />
@poplary
poplary / MySQL.md
Last active November 19, 2019 02:26
MySQL command

新建数据库

create database sina default character set utf8mb4 collate utf8mb4_unicode_ci;
@poplary
poplary / mysqld.service
Last active November 18, 2019 02:48
systemctl
[Unit]
Description=MySQL
SourcePath=/etc/init.d/mysqld
Before=shutdown.target
[Service]
User=mysql
Type=forking
ExecStart=/etc/init.d/mysqld start
ExecStop=/etc/init.d/mysqld stop
@poplary
poplary / .gitconfig
Created November 12, 2019 09:34
Git bash settings
[core]
preloadindex = true
fscache = true
[gc]
auto = 256
[color]
status = auto
diff = auto
branch = auto
interactive = auto
@poplary
poplary / 2
Last active November 12, 2019 09:37
XShell theme
[my]
text=e1e1e1
cyan(bold)=3979bc
text(bold)=ffffff
magenta=944d95
green=24b089
green(bold)=35bb9a
background=3d4857
cyan=1f9ee7
red(bold)=fa8c8f