diskpart
list disk
select disk 0
list partition
select partition 0
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
# 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) { |
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
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 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 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 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 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 |
I hereby claim:
- I am manhtai on github.
- I am manhtai (https://keybase.io/manhtai) on keybase.
- I have a public key ASAGaIx-aeYCP7eija_x4KxghP4CvhKrvvIMACWFJ2npQwo
To claim this, I am signing this object:
- How to Build a Successful Information Security Career (Daniel Miessler)
- The First Steps to a Career in Information Security (Errata Security - Marisa Fagan)
- Hiring your first Security Professional (Peerlyst - Dawid Balut)
- How to Start a Career in Cyber security
- How to Get Into Information Security (ISC^2)
- https://www.isc2.org/how-to-get-into-information-security.aspx
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
from __future__ import print_function | |
import boto3 | |
import base64 | |
import json | |
import logging | |
logging.basicConfig() | |
logger = logging.getLogger() | |
logger.setLevel(logging.DEBUG) |
OlderNewer