Skip to content

Instantly share code, notes, and snippets.

@davidlauhn
davidlauhn / custom-zk.css
Created May 28, 2022 07:32 — forked from QWxleA/custom-zk.css
Logseq Zettelkasten 💚🐔CSS
/* FLEETING NOTES */
span.page-reference[data-ref="fleeting note"]
{ background: var(--ls-primary-background-color);
background-size: 100%;
color: var(--ls-primary-text-color);
padding: 2px 5px 2px 5px;
font-size: 13px;
line-height: 1em;
font-weight: 500;
#! /bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#=================================================================#
# System Required: CentOS, Debian, Ubuntu #
# Description: One click Install Shadowsocks-go server #
# Author: Teddysun <i@teddysun.com> #
# Thanks: @cyfdecyf <https://twitter.com/cyfdecyf> #
# Intro: https://teddysun.com/392.html #
#==================================================================
@davidlauhn
davidlauhn / pptpd_centos6.sh
Last active March 31, 2017 14:06
Automatically install pptpd vpn on amznami
# One Click Installation of PPTP VPN on CentOS 6
# http://www.rockia.com/2012/03/install-pptpd-vpn-on-xen-centos-6-in-1-minute
# first run
# sudo yum update -y
# wget https://gist.githubusercontent.com/iliuweiming/85a0bdc5ea56dc44d22c/raw/abc049090ea8d3c625a27eb0114aa9ecbec19fbc/pptpd_centos6.sh
# sudo sh pptpd_centos6.sh
#
yum remove -y pptpd ppp
iptables --flush POSTROUTING --table nat
iptables --flush FORWARD
@davidlauhn
davidlauhn / pptpd.sh
Last active December 16, 2015 18:59
Automaticlly install pptpd on Amazon EC2 Amazon Linux
# Automaticlly install pptpd on Amazon EC2 Amazon Linux
#
# Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/
# pptpd source rpm packing by it's authors
#
# WARNING:
# first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my
# /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones.
#
# You need to adjust your "Security Groups" which you are using too.