Skip to content

Instantly share code, notes, and snippets.

@zilin
zilin / file1.txt
Created May 21, 2016 07:21
Created via API
Demo
####Install Scipy
* sudo apt-get install gfortran libopenblas-dev liblapack-dev
* pip install scipy
@zilin
zilin / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
@zilin
zilin / InstallGo
Last active August 29, 2015 14:03
Install Go
----
sudo apt-get install golang
go version
VIM Syntax Highlight
----
sudo apt-get install vim-syntax-go
mkdir -p ~/.vim/syntax
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="jdk" jdkName="1.6" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
# create the 'docker' group
vagrant@vagrant-ubuntu-raring-64:~$ sudo groupadd docker
# add your user to the 'docker' group
vagrant@vagrant-ubuntu-raring-64:~$ sudo gpasswd -a vagrant docker
Adding user vagrant to group docker
# restart docker so it uses the 'docker' group
vagrant@vagrant-ubuntu-raring-64:~$ sudo service docker restart
docker stop/waiting
docker start/running, process 12032
Accessing docker container private network easily from your boot2docker host
-----
(from http://ispyker.blogspot.com/2014/04/accessing-docker-container-private.html)
add a Host-only adapter in VirtualBox
OSX:
# show route table
netstat -nr
#############################
# apache.service
#############################
[Unit]
Description=My Apache Frontend
After=docker.service
Requires=docker.service
[Service]
ExecStart=/usr/bin/docker run --name apache -p 80:80 coreos/apache /usr/sbin/apache2ctl -D FOREGROUND
@zilin
zilin / A-Pen-by-Zilin-Du.markdown
Created November 8, 2013 06:33
A Pen by Zilin Du.