From 674c44032b6c3086d9611679220146a649f8be92 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 20 Nov 2015 10:09:35 -0800 Subject: [PATCH 1/2] use urandom http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ --- gen-csrf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen-csrf.sh b/gen-csrf.sh index bb1410b..2841607 100755 --- a/gen-csrf.sh +++ b/gen-csrf.sh @@ -1,3 +1,3 @@ #!/bin/sh -dd if=/dev/random of=csrf-secret.txt count=32 bs=1 +dd if=/dev/urandom of=csrf-secret.txt count=32 bs=1 From 3f963a066f148ca4d820a922089891edb4af10ea Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 20 Nov 2015 13:34:12 -0800 Subject: [PATCH 2/2] category managment now in program, removed from readme sql --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 079bab7..f876b6d 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Usecase: storing interesting news articles you come across during a week with at ## Note -As this is a personal project, some of the niceities like user managment and category managment -(that are one time tasks) are left to be done in SQL. I needed a tool to store links and export +As this is a personal project, some of the niceities like user managment +are left to be done in SQL. I needed a tool to store links and export to html so that's what I've focused on. # Install @@ -60,6 +60,8 @@ edit transmet.conf to point to correct location sudo cp transmet.conf /etc/init +./gen-csrf.sh + sudo service transmet start ## Setup environment @@ -67,7 +69,3 @@ sudo service transmet start ### Adding a user INSERT INTO users (username, password) VALUES('USERNAME', crypt('PASSWORD', gen_salt('bf'))); - -### Adding Categories - -INSERT INTO categories (name, parent_id) VALUES ('NAME', [null or PARENT_ID]);