make importing scripts, etc

This commit is contained in:
Christine Dodrill 2015-07-27 18:04:33 -07:00
parent 6676243e53
commit d475d6febb
3 changed files with 25 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*.db
*.a
*.o
*.so
*.hi

15
db/db.sql Normal file
View File

@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS Posts (
id INTEGER PRIMARY KEY
, oid TEXT NOT NULL
, body TEXT NOT NULL
, mdown TEXT NOT NULL
, author TEXT NOT NULL
, page TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS Users (
id INTEGER PRIMARY KEY
, oid TEXT UNIQUE NOT NULL
, name TEXT NOT NULL
, avatar_url TEXT NOT NULL
);

5
scripts/get.moon Normal file
View File

@ -0,0 +1,5 @@
require "socket"
for i=1,8002
os.execute "curl https://derpibooru.org/dis/the-time-wasting-thread/#{i}.json?key=#{os.getenv "DB_KEY"} > #{i}.json"
socket.sleep 1