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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 | |
mkdir -p src/{main,test}/{java,resources,scala} | |
mkdir lib project target | |
touch project/Build.scala | |
# create an initial build.sbt file | |
cat <<EOF > build.sbt | |
name := "sbtProject" |
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
{ | |
"src": "/root/upload", | |
"dest": "qiniu:access_key=AccessKey&secret_key=SecretKey&bucket=docs4bill&key_prefix=doc/", | |
"deletable": 0, | |
"debug_level": 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/bash | |
export ORIG_PASSWD=$(grep hexo /etc/passwd) | |
export ORIG_UID=$(echo $ORIG_PASSWD | cut -f3 -d:) | |
export ORIG_GID=$(echo $ORIG_PASSWD | cut -f4 -d:) | |
# set NEW_UID with ORIG_UID if MAP_UID not exist | |
export NEW_UID=${MAP_UID:=$ORIG_UID} | |
export NEW_GID=${MAP_GID:=$ORIG_GID} |
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 python2 | |
#-*-coding:utf-8 -*- | |
import os | |
import sys | |
import re | |
import PIL | |
from PIL import Image | |
pic_raw_path = 'pic_raw/' | |
pic_resize_path = 'pic_resize/' |
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
[product] | |
version = "1.0" | |
machine = "cubieboard2" | |
[platform] | |
eraseflag = 0 | |
[target] | |
boot_clock = 912 | |
dcdc2_vol = 1450 |
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
<!-- mathjax config similar to math.stackexchange --> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
tex2jax: { | |
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
processEscapes: true | |
} | |
}); | |
</script> |
NewerOlder