Skip to content

Instantly share code, notes, and snippets.

View qoli's full-sized avatar

Ronnie W. qoli

View GitHub Profile
@qoli
qoli / dnsmasq.custom.conf
Created February 21, 2016 07:53
dnsmasq.custom.conf for PS4
# Make Dnsmasq to work with ChinaDNS-C
# no-resolv
# server=127.0.0.1#5353
resolv-file=/etc/resolv.dnsmasq.conf
#PS4
server=/cdn.deadorbit.net/8.8.8.8
# address=/cdn.deadorbit.net/72.246.103.26
@qoli
qoli / 一鍵 PPTP VPN
Created April 12, 2016 08:09
一鍵創建 VPN 連接
wget https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh
sudo sh setup.sh
mkdir /tmp/m_update
cd /tmp/m_update
wget https://github.com/qoli/Merlin.PHP/raw/master/bin/zip/merlin-php.tar.gz --no-cache --no-check-certificate --no-dns-cache
tar xvf merlin-php.tar.gz
mkdir /opt/share/www/ -p
cd /tmp/m_update/Merlin.PHP/
cp * /opt/share/www/ -R
admin@RT-NAS:/tmp# iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 31 packets, 2052 bytes)
pkts bytes target prot opt in out source destination
12 793 VSERVER all -- * * 0.0.0.0/0 10.200.147.120
0 0 VSERVER all -- * * 0.0.0.0/0 169.254.10.159
31 2052 SHADOWSOCKS tcp -- * * 0.0.0.0/0 0.0.0.0/0
14 941 DNAT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 to:192.168.1.1
Chain INPUT (policy ACCEPT 33 packets, 2225 bytes)
pkts bytes target prot opt in out source destination
@qoli
qoli / P4 Logo.txt
Last active September 3, 2016 06:35
<svg width="24px" height="23px" viewBox="0 0 24 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch -->
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Logo-Blue" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M23.9892679,21.6525623 C23.9892679,22.335317 23.4275321,22.8858453 22.7070792,22.8675057 C22.0448151,22.8506377 21.5265509,22.2862981 21.5265509,21.6239208 L21.5265509,3.74210943 L14.1774566,12.6472415 L18.8279094,12.6472415 C19.4108151,12.6472415 19.8833434,13.1197698 19.8833434,13.7026755 L19.8833434,13.7026755 C19.8832302,14.2855811 19.4108151,14.7581094 18.8279094,14.7581094 L12.4503623,14.7581094 C11.7148528,14.7581094 11.171117,14.2462981 11.171117,13.5427132 C11.171117,13.0949774 11.330966,12.7431283 11.6507774,12.327317 L21.2387774,0.76769434 C21.6224377,0.287807547 21.9742868,3.39622642e-05 22.6459472,3.39622642e-05 C23
@media (max-width:767px) {
// Mobile
.dropdown-menu {
position: static;
}
.dropdown-menu li {
}
apt-get update
apt-get install aptitude tmux zsh vim curl git subversion python2.7
aptitude install ncurses-base ncurses-bin ncurses-dev libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev
wget https://nodejs.org/dist/v8.1.0/node-v8.1.0-linux-armv7l.tar.xz
xz -d node-v8.1.0-linux-armv7l.tar.xz
tar xvf node-v8.1.0-linux-armv7l.tar.xz
将解压好的目录,移动到 /opt 下,然后配置环境变量即可 > http://www.powerxing.com/linux-environment-variable/
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 5832,
"pin": "“208-18-128"
},
"platforms": [
{
"platform": "MiAqaraPlatform",
#! /bin/sh
clear
echo "node 環境更新"
npm -v
node -v
npm install -g npm
npm cache clean -f
sudo npm install -g n
@qoli
qoli / DarkAll.css
Last active December 19, 2019 18:25
Dark for all
/* ==UserStyle==
@name Dark for all
@author Cascadea User
@version 1.0
@namespace cascadea2015508881
==/UserStyle== */
ul, li, table, tr, td, nav, h1, h2, h3, h4, h5, h6, p, header, section, dt, dd, dl, article, hr, label, strong, aside {
color: #bbb !important;
border-color: #333 !important;