$ git clone <url>/hoge.git $ cd hoge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/vbash | |
SET=${vyatta_sbindir}/my_set | |
COMMIT=${vyatta_sbindir}/my_commit | |
startip=2 | |
delta=20 | |
count=0 | |
tip=0 | |
prio=100 | |
while getopts "b" flag; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/tonicdnscli/command.py b/src/tonicdnscli/command.py | |
index d0a4f35..bf82292 100644 | |
--- a/src/tonicdnscli/command.py | |
+++ b/src/tonicdnscli/command.py | |
@@ -18,105 +18,180 @@ | |
""" | |
-def parse_options(): | |
- import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
domain = '.example.org' | |
def is_hostname(string): | |
pat_hostname = re.compile('^[a-zA-Z0-9]+([0-9a-zA-Z\-]+)$') | |
if pat_hostname.search(string): | |
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# MYKEY is 0x + $(gpg --list-keys mkouhei | awk '/pub\s*4096R/ { print $2}' | cut -d / -f 2) | |
MYKEY="0x0000000" | |
#KEYSERVER="18.92.0.144" | |
KEYSERVER="202.12.30.53" | |
test -z $1 && exit 1 | |
test ! -f $1 && exit 2 | |
KEYFILE=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
gpg --import ~/.caff/gnupghome/pubring.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
remove_ns() { | |
sudo sed -i '/nameserver xxx.xxx.xxx.xxx/ d' /etc/resolv.conf | |
} | |
sudo sed -i '/search/a nameserver xxx.xxx.xxx.xxx' /etc/resolv.conf | |
trap remove_ns 2 | |
sudo openvpn --config ~/work/vpnclient-conf/gateway.ovpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
from pyquery import PyQuery | |
from lxml import etree | |
import commands | |
from time import sleep | |
import syslog | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Web storage is supported readstate.js:3 | |
Array[10] | |
readstate.js:14 | |
Array[5] | |
readstate.js:15 | |
0 has been read readstate.js:22 | |
1 has been read readstate.js:22 | |
2 has been read readstate.js:22 | |
3 is unread readstate.js:19 | |
4 is unread readstate.js:19 |
OlderNewer