Browse Source

add financial report and scripts

parazyd 2 years ago
parent
commit
e5c199e420
8 changed files with 77 additions and 5 deletions
  1. 4 2
      contribute.md
  2. 2 0
      finance.html
  3. 15 0
      financial_report.py
  4. 7 0
      hack
  5. BIN
      static/beer11.png
  6. 2 2
      webtree
  7. 4 1
      wiki/index.md
  8. 43 0
      wiki/usingheads.md

+ 4 - 2
contribute.md

@@ -12,12 +12,14 @@ anything you like to do. You can also get in touch with us via email at:
12 12
 If you wish to make a financial contribution to heads, please send your
13 13
 bitcoins to the following address or heads dies:
14 14
 
15
-`1M7Dgp5tkRapU4SUCZupKPVKA9EcomEKJr`
15
+	1M7Dgp5tkRapU4SUCZupKPVKA9EcomEKJr
16 16
 
17
-![donate via bitcoin](/static/btc.png)
17
+[![donate via bitcoin](/static/btc.png)](bitcoin:1M7Dgp5tkRapU4SUCZupKPVKA9EcomEKJr)
18 18
 
19 19
 If you wish to be listed as a contributor/donator, please send us an
20 20
 email at [heads@dyne.org](mailto:heads@dyne.org) with your txid signed
21 21
 with your Bitcoin address. 
22 22
 
23
+See [here](/finance.html) for heads' financial report.
24
+
23 25
 **Thank you kindly!** ❤️

+ 2 - 0
finance.html

@@ -0,0 +1,2 @@
1
+<a href="/financial_report.py">generated with a script</a><br>
2
+<img src="/static/beer11.png" width="20">

+ 15 - 0
financial_report.py

@@ -0,0 +1,15 @@
1
+#!/usr/bin/env python2
2
+
3
+from urllib import urlopen
4
+
5
+data = urlopen("https://blockchain.info/q/getreceivedbyaddress/1M7Dgp5tkRapU4SUCZupKPVKA9EcomEKJr")
6
+amount = (float(data.read()) / 100000000.)
7
+
8
+usd = urlopen("https://blockchain.info/q/24hrprice")
9
+usd = float(usd.read())
10
+
11
+howmuchicandrink = amount / usd
12
+
13
+while howmuchicandrink > 0:
14
+    howmuchicandrink = howmuchicandrink - 2.5
15
+    print("beer")

+ 7 - 0
hack

@@ -8,3 +8,10 @@ for i in news/**/*.html; do
8 8
 	sed -i "$i" \
9 9
 		-e 's:class="thisSite"::' -e 's:a href="/news/":a class="thisSite" href="/news/":'
10 10
 done
11
+
12
+print '<a href="/financial_report.py">generated with a script</a><br>' > finance.html
13
+./financial_report.py | while read line; do
14
+	print '<img src="/static/beer11.png" width="20">' >> finance.html
15
+done
16
+
17
+

BIN
static/beer11.png


+ 2 - 2
webtree

@@ -12,8 +12,8 @@ tree=(
12 12
 	news
13 13
 	news/2016
14 14
 	news/2016/12
15
-	#news/2017
16
-	#news/2017/01
15
+	news/2017
16
+	news/2017/02
17 17
 
18 18
 	download
19 19
 

+ 4 - 1
wiki/index.md

@@ -3,4 +3,7 @@
3 3
 heads knowledgebase
4 4
 ===================
5 5
 
6
-To be filled
6
+table of contents
7
+-----------------
8
+
9
+* [using your head(s)](/wiki/usingheads.html)

+ 43 - 0
wiki/usingheads.md

@@ -0,0 +1,43 @@
1
+##+TITLE using heads :: heads wiki
2
+
3
+using heads
4
+===========
5
+
6
+This wiki page should guide you in the process of obtaining heads, and
7
+booting into the live system. It's pretty straightforward and there
8
+should be no issues if you follow these steps.
9
+
10
+downloading
11
+-----------
12
+
13
+First head off to the [downloads](/download/) page, and find out where
14
+to download the ISO, along with the shasum and the gpg signature.
15
+
16
+Once you have obtained all three, and they are in a directory on your
17
+filesystem, do the following:
18
+
19
+	; gpg --verify heads-*.asc
20
+	; sha256sum -c heads-*.sha
21
+
22
+If there were no errors, you are good to continue. Otherwise, rinse and
23
+repeat. Something went wrong.
24
+
25
+It is possible to burn the heads ISO to a CD, or use it inside a virtual
26
+machine. This isn't documented for now, perhaps in the future. I will
27
+show you how to use it from a USB flash drive.
28
+
29
+So... Plug in a USB flash drive into your computer. In most cases it
30
+will be automagically recognized by your computer and will be given a
31
+name such as `sdb` or something in a similar manner. It resides in
32
+`/dev` on your filesystem. You can check your `dmesg` output to figure
33
+out the correct device if you are not sure.
34
+
35
+Once you got it, the only thing you need to do is dd the ISO to a flash
36
+drive by doing the following:
37
+
38
+	; dd if=heads-*.iso of=/dev/sdb bs=1M && sync
39
+
40
+If no errors were seen, sync once more and you are done. You can now use
41
+this flash drive to boot into the heads live OS.
42
+
43
+Have fun!