<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
// REFERENCE UNICODE TABLES: | |
// http://www.rikai.com/library/kanjitables/kanji_codes.unicode.shtml | |
// http://www.tamasoft.co.jp/en/general-info/unicode.html | |
// | |
// TEST EDITOR: | |
// http://www.gethifi.com/tools/regex | |
// | |
// UNICODE RANGE : DESCRIPTION | |
// | |
// 3000-303F : punctuation |
app.configure(function () { | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'ejs'); | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
app.use(express.cookieParser()); | |
app.configure('production', function () { | |
app.use (function (req, res, next) { | |
var schema = (req.headers['x-forwarded-proto'] || '').toLowerCase(); | |
if (schema === 'https') { |
# Sane settings for Gnome | |
gsettings set org.gnome.desktop.background show-desktop-icons true | |
gsettings set org.gnome.desktop.interface clock-show-date true | |
gsettings set org.gnome.settings-daemon.plugins.xsettings antialiasing 'grayscale' | |
gsettings set org.gnome.settings-daemon.plugins.xsettings hinting 'slight' | |
gsettings set org.gnome.desktop.interface text-scaling-factor '1.0' | |
gsettings set org.gnome.desktop.interface monospace-font-name "Monospace 10" | |
gsettings set org.gnome.desktop.interface document-font-name 'Sans 10' | |
gsettings set org.gnome.desktop.interface font-name 'Cantarell 10' | |
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita' |
#!/bin/sh | |
# Shell script to update namecheap.com dynamic dns | |
# for a domain to your external IP address | |
HOSTNAME=yoursubdomain | |
DOMAIN=yourdomainname.com | |
PASSWORD=y0urp455w0rd | |
IP=`curl -s echoip.com` |
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
// Node v6.9.0 | |
// | |
// TEST FILE (cut down for simplicity) | |
// To ensure Golang encrypted string can be decrypted in NodeJS. | |
// | |
let crypto; | |
try { | |
crypto = require('crypto'); |
Install ss-server: https://github.com/shadowsocks/shadowsocks-libev
Download v2ray-plugin: https://github.com/shadowsocks/v2ray-plugin/releases
Download v2ray: https://github.com/v2ray/v2ray-core/releases
> ss-server -c server_config.json --plugin v2ray-plugin_linux_amd64 --plugin-opts "server;mode=websocket;path=/;loglevel=info"