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
| FROM ubuntu:14.04 | |
| MAINTAINER Pan Jiabang, panjiabang@gmail.com | |
| RUN \ | |
| # use aliyun's mirror for better download speed | |
| sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list && \ | |
| apt-get update && \ | |
| apt-get install -y nodejs curl git-core && \ | |
| # use nodejs as node |
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
| #!/bin/bash | |
| #install RRDtools | |
| sudo apt-get install librrds-perl rrdtool | |
| # [optional as you may have these installed] | |
| sudo apt-get install libpcre3-dev zlib1g-dev | |
| mkdir -p ~/temp/nginx-install | |
| cd ~/temp/nginx-install |
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
| #!/bin/sh | |
| name=neidetcher_access | |
| rrdfile="/var/local/${name}.rrd" | |
| imageDir="/home/demian/code/demian0311.github.com/_site" | |
| case "$1" in | |
| create) | |
| rrdtool create $rrdfile --step 60 \ | |
| "DS:${name}:GAUGE:120:0:1000000" \ |
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
| #!/bin/sh | |
| # Upgrade packages that are available to update | |
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| # Miscelaneous tools and media players and game emulators | |
| sudo apt-get install -y build-essential ubuntu-restricted-extras htop vcl smplayer k3b audacity audacious audacious-plugins visualboyadvance pcsxr | |
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 | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
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
| #!/usr/bin/env python3 | |
| #coding:utf-8 | |
| from lxml import html | |
| import requests | |
| baseurl = 'http://startupboard.sudoboot.com/contacts?page=' | |
| contactfile = 'contacts.txt' | |
| def pageparser(url): |