This file contains hidden or 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
# Dockerfile for Node-RED - pulls latest master code from git | |
FROM ubuntu:14.04 | |
# based on the original by @cpswan | |
MAINTAINER ceejay kane | |
# add universe repository to /etc/apt/sources.list | |
# we need it later as rlwrap is required by node.js | |
#RUN sed -i s/main/'main universe'/ /etc/apt/sources.list | |
This file contains hidden or 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
*.pyc |
This file contains hidden or 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
➜ wechat git:(master) ✗ ./gradlew -b test.gradle npm -S | |
:npm FAILED | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
Execution failed for task ':npm'. | |
> A problem occurred starting process 'command 'npm'' | |
* Try: |
This file contains hidden or 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
# defaults for VME wechat server | |
# pulled in from the init script; makes things easier. | |
NAME=vme-wechat | |
# location of java | |
JAVA=/home/jenkins/jenkins-home/tools/hudson.model.JDK/java-1.8/bin/java | |
# arguments to pass to java | |
JAVA_ARGS="-Dspring.profiles.active=svt" # specify active profile for spring boot |
This file contains hidden or 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
docker stop vme-jenkins | |
docker rm vme-jenkins | |
export HOST_IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` | |
docker run --name vme-jenkins -p $HOST_IP:8080:8080 -p 50000:50000 -e "JAVA_OPTS=-Duser.timezone=Asia/Hong_Kong" -v /home/zxkane/jenkins:/var/jenkins_home -d jenkins |
This file contains hidden or 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
<?php | |
function base64_to_jpeg($base64_string, $output_file) { | |
$ifp = fopen($output_file, "wb"); | |
fwrite($ifp, base64_decode($base64_string)); | |
fclose($ifp); | |
return $output_file; | |
} |
This file contains hidden or 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
selenium==3.0.2 |
This file contains hidden or 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
db/ | |
nginx/ |
This file contains hidden or 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
iptables configuration | |
Chain INPUT (policy ACCEPT 4863K packets, 5615M bytes) | |
pkts bytes target prot opt in out source destination | |
Chain FORWARD (policy DROP 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination | |
4820K 7743M DOCKER-USER all -- * * 0.0.0.0/0 0.0.0.0/0 | |
4820K 7743M DOCKER-INGRESS all -- * * 0.0.0.0/0 0.0.0.0/0 | |
4812K 7742M DOCKER-ISOLATION all -- * * 0.0.0.0/0 0.0.0.0/0 | |
169 57205 ACCEPT all -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED |
This file contains hidden or 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 -*- | |
# encoding: utf-8 | |
''' | |
@author: kane | |
''' | |
import argparse | |
import os, errno | |
import requests | |
def download(url, localFileName, headers): |