Skip to content

Instantly share code, notes, and snippets.

View qykong's full-sized avatar
🐢

Quyu Kong qykong

🐢
View GitHub Profile
@qykong
qykong / Automatically change wallpapers for xfce
Created October 7, 2016 21:53
Automatically change wallpapers for xfce downloading from bing
#!/usr/bin/env bash
PICTURE_DIR="$HOME/Pictures/bing-wallpapers/"
mkdir -p $PICTURE_DIR
urls=( $(curl -s http://www.bing.com | \
grep -Eo "url:'.*?'" | \
sed -e "s/url:'\([^']*\)'.*/http:\/\/bing.com\1/" | \
sed -e "s/\\\//g") )
@qykong
qykong / gist:7ba081bafc9df1ec34809c52c18bc99c
Last active February 7, 2023 04:45
Setup PPTP VPN on CentOS7
# Got from https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7 and changed new workable epel rpm url
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm
yum -y install ppp pptpd
cp /etc/pptpd.conf /etc/pptpd.conf.bak
cat >/etc/pptpd.conf<<EOF
option /etc/ppp/options.pptpd
logwtmp
localip 10.0.10.1
remoteip 10.0.10.2-254