Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/node --harmony
const data = {
username: '12X34567',
password: 'abcde12345'
};
const address = [
'https://',
'\x77\x6C\x61\x6E\x61\x75\x74\x68\x2E\x6E\x6F\x63\x2E\x74\x69\x74\x65\x63\x68\x2E\x61\x63\x2E\x6A\x70\x2F\x6C\x6F\x67\x69\x6E',
'.html'
@qzwpq
qzwpq / vpn_updater.sh
Created September 22, 2015 17:38
SoftEtherVPNをアップデートするやつ
#!/bin/bash
update() {
local VPN_TYPE="$1"
local PRODUCT_NAME="$2"
local FORCE="$3"
local INSTALL="$4"
local VPN_DIR="/usr/local/${VPN_TYPE}"
local VPN_BIN="${VPN_DIR}/${VPN_TYPE}"
local VPN_CMD="${VPN_DIR}/vpncmd"
@qzwpq
qzwpq / vpn.sh
Last active September 13, 2015 19:50
SoftEtherVPNClientからSoftEtherVPNServerにつなげるやつ
#!/bin/bash
VPN_DIR="/usr/local/vpnclient"
VPN_CLIENT="${VPN_DIR}/vpnclient"
VPN_CMD="${VPN_DIR}/vpncmd"
SERVER="yourserver.softether.net"
timeout 5 getent hosts ${SERVER} > /dev/null
if [ "$?" != "0" ] ; then