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
# coding=utf-8 | |
import sys | |
import time | |
import logging | |
import redis | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.DEBUG) |
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 scripts for java |
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/bash | |
set -x | |
sbt assembly | |
GIT_HASH=`git rev-parse --short HEAD` | |
BRANCH=release-binary-`date +%y%m%d.%H%M`-$GIT_HASH | |
TAG=v-`date +%y%m%d.%H%M` | |
git tag $TAG | |
git push origin $TAG |
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
# coding=utf-8 | |
from __future__ import unicode_literals, absolute_import, print_function | |
import logging | |
from io import BytesIO | |
import base64 | |
import requests | |
from PIL import Image |
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
# echo "V2loYWx1bm9mdW5jaWhtISBTaW8gYWluIGNuISBXZnVjZyBzaW9sIGpsY3R5IHFjbmIgc2lvbCB1ZmFpbGNuYmc6IDU5NTkyMjY4LiBCaWp5IGNuIGNtIGhpbiB4aWh5IHZzIGJ1aHguIE5idW4gY20gcWJzIHF5IGJ1cHkgd2lnam9ueWxtIHVoeCBVQy4gSGlxIG9teSBuYnkgZXlzIG5pIHV3d3ltbSBCQ0ZGIFVDIG15bHBjd3k6IHh5dnV5eTR1enp2eXV2dTkwOXUxODQwNjY5ODF4NTV1Lg==" | base64 -D | |
raw = 'Wihalunofuncihm! Sio ain cn! Wfucg siol jlcty qcnb siol ufailcnbg: 59592268. Bijy cn cm hin xihy vs buhx. Nbun cm qbs qy bupy wigjonylm uhx UC. Hiq omy nby eys ni uwwymm BCFF UC mylpcwy: xyvuyy4uzzvyuvu909u184066981x55u.' | |
for i in raw: | |
if i >= 'a' and i <= 'z': | |
print(chr((ord(i) + 6 - ord('a')) % 26 + ord('a')), end='') | |
elif i >= 'A' and i <= 'Z': | |
print(chr((ord(i) + 6 - ord('A')) % 26 + ord('A')), end='') | |
else: |
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/bash | |
cd `dirname $0` | |
BIN_DIR=`pwd` | |
cd .. | |
DEPLOY_DIR=`pwd` | |
CONF_DIR=$DEPLOY_DIR/conf | |
SERVER_NAME=`sed '/dubbo.application.name/!d;s/.*=//' conf/dubbo.properties | tr -d '\r'` | |
LOGS_FILE=`sed '/dubbo.log4j.file/!d;s/.*=//' conf/dubbo.properties | tr -d '\r'` |
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
XML_URL=`c Casks/cctalk.rb G appcast | awk -F "'" '{print $2}'` | |
XML_SHA256=`curl -s $XML_URL | gsha256sum` | |
PUBDATE=`curl -s $XML_URL | xmlstarlet sel -t -v '//pubDate' | awk '{print $1}'` | |
VERSION=`curl -s $XML_URL | xmlstarlet sel -t -v '//title' | awk '{print $2}'` | |
BUILD=`curl -s $XML_URL | xmlstarlet sel -t -v '//sparkle:version'` | |
VERSION_ALL="$VERSION-$BUILD,$PUBDATE" | |
sed -i "s/version .*/version '$VERSION_ALL'/" Casks/cctalk.rb | |
sed -i "s/sha256 .*/sha256 ''/" Casks/cctalk.rb |
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
digraph G { | |
compound = true; | |
fontsize = 14; | |
margin = "0,0"; | |
ranksep = 0.2; | |
nodesep = 0.5; | |
penwidth = 0.5; | |
colorscheme = spectral7; |