diskpart
list disk
select disk 0
list partition
select partition 0
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
| # Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1. | |
| sudo yum install erlang --enablerepo=epel | |
| wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm | |
| sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm | |
| # Enable managament plugin | |
| sudo rabbitmq-plugins enable rabbitmq_management |
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
| # http://stackoverflow.com/questions/27177327/setting-up-django-with-geodjango-support-in-aws-beanstalk-or-ec2-instance | |
| # http://rpmfind.net/linux/rpm2html/search.php?query=lib64jpeg8 | |
| # http://rpmfind.net/linux/rpm2html/search.php?query=lib64poppler5 | |
| # install postgresql repo | |
| sudo yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-6-x86_64/pgdg-ami201503-95-9.5-3.noarch.rpm | |
| # add priority=1 to perfer this repo over amzn-main | |
| vim /etc/yum.repos.d/pgdg-95-ami201503.repo |
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
| {"lastUpload":"2017-06-25T14:56:20.512Z","extensionVersion":"v2.8.1"} |
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
| http://db.tt/ugydV88k | |
| http://onedrive.live.com?invref=7faa0df8d0731c83&invsrc=90 |
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
| import numpy as np | |
| from scipy.sparse import csc_matrix | |
| def pageRank(G, s = .85, maxerr = .001): | |
| """ | |
| Computes the pagerank for each of the n states. | |
| Used in webpage ranking and text summarization using unweighted | |
| or weighted transitions respectively. |
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
| # Copied from <http://jason.bryer.org/posts/2012-12-10/Markdown_Jekyll_R_for_Blogging.html> | |
| jekyll_it <- function(dir=getwd(), images.dir=dir, images.url='../', out_ext='.md', in_ext='.rmd', recursive=FALSE) { | |
| require(knitr, quietly=TRUE, warn.conflicts=FALSE) | |
| files <- list.files(path=dir, pattern=in_ext, ignore.case=TRUE, recursive=recursive) | |
| for(f in files) { | |
| message(paste("Processing ", f, sep='')) | |
| content <- readLines(f) | |
| frontMatter <- which(substr(content, 1, 3) == '---') | |
| if(length(frontMatter) >= 2 & 1 %in% frontMatter) { |
NewerOlder