Merge branch 'pad' of tsr/dox into master
This commit is contained in:
commit
b344fd3b43
@ -15,3 +15,5 @@ we have created from projex. The goals are:
|
||||
for now, the file structure should be:
|
||||
|
||||
\`\`\` . ├── css ├── html ├── md ├── org └── scripts README.md \`\`\`
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-README>
|
||||
|
@ -183,4 +183,6 @@ So, I guess my first question is about how I make the bullets?
|
||||
Note for noobs: You have to have the cursor under the bullet tomove
|
||||
your text, not the text itself.
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-emacs>
|
||||
|
||||
|
||||
|
@ -41,3 +41,4 @@ To push up your changes
|
||||
7. `git push origin <yourname>`
|
||||
8. submit a pull request
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-git>
|
||||
|
@ -232,3 +232,5 @@ Use globalist:
|
||||
Add to torrc: HidServAuth jyx4pglulzhhf3uj.onion KDaoFiimBt9GL6MKF7U2bw
|
||||
as root: apt install python3-pip as user: cd globalist ; torsocks pip3
|
||||
install .
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-index>
|
||||
|
@ -247,3 +247,5 @@ brown (maroon) 06 purple 07 orange (olive) 08 yellow 09 light green
|
||||
(lime) 10 teal (a green/blue cyan) 11 light cyan (cyan / aqua) 12 light
|
||||
blue (royal) 13 pink (light purple / fuchsia) 14 grey 15 light grey
|
||||
(silver) \`\`\`
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-irc-how-to>
|
||||
|
@ -49,3 +49,4 @@ Connect to Freenode w/ Tor
|
||||
- set auth to sas exteral
|
||||
- have tor open
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-irc-tor>
|
||||
|
@ -209,3 +209,6 @@ AttackProtector, AutoMode, Channel, Conditional, Config, Games, Google,
|
||||
Later, LinkRelay, MessageParser, Misc, Network, NickAuth, Note, Owner,
|
||||
PluginDownloader, Quote, RSS, Reply, SedRegex, Seen, User, Utilities,
|
||||
and Web <abyss> those are all of novatore's modules.
|
||||
|
||||
Edit this guide:
|
||||
<https://irc.anarchyplanet.org/pad/p/dox-ircwalkthrough>
|
||||
|
@ -6,3 +6,5 @@ serverl337
|
||||
1. bck/gpg
|
||||
|
||||
3.
|
||||
|
||||
Edit this guide: <https://irc.anarchyplanet.org/pad/p/dox-serverl337>
|
||||
|
@ -17,3 +17,5 @@ for now, the file structure should be:
|
||||
└── scripts
|
||||
README.md
|
||||
```
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-README
|
||||
|
@ -135,3 +135,5 @@ and then, to change the order, you can use M-<up> and M-<down> ... to promote yo
|
||||
|
||||
Note for noobs: You have to have the cursor under the bullet tomove your text, not the text itself.
|
||||
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-emacs
|
||||
|
@ -91,3 +91,5 @@ After this your .git/config should have these sections:
|
||||
|
||||
Now you should be able to push:
|
||||
~git push origin branchname --set-upstream origin branchname~
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-git
|
||||
|
@ -194,3 +194,5 @@ as root: apt install python3-pip
|
||||
as user: cd globalist ; torsocks pip3 install .
|
||||
|
||||
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-index
|
||||
|
@ -237,3 +237,5 @@ Number Name
|
||||
14 grey
|
||||
15 light grey (silver)
|
||||
```
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-irc-how-to
|
||||
|
@ -42,3 +42,5 @@ more info? https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/irssi
|
||||
|
||||
|
||||
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-irc-tor
|
||||
|
@ -262,3 +262,5 @@ Register a Channel
|
||||
<abyss> @list
|
||||
<novatore> Admin, Alias, Anonymous, AttackProtector, AutoMode, Channel, Conditional, Config, Games, Google, Later, LinkRelay, MessageParser, Misc, Network, NickAuth, Note, Owner, PluginDownloader, Quote, RSS, Reply, SedRegex, Seen, User, Utilities, and Web
|
||||
<abyss> those are all of novatore's modules.
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-ircwalkthrough
|
||||
|
@ -4,3 +4,5 @@
|
||||
2. kpcli generate key
|
||||
1. bck/gpg
|
||||
3.
|
||||
|
||||
Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-serverl337
|
||||
|
51
upload_pads.py
Normal file
51
upload_pads.py
Normal file
@ -0,0 +1,51 @@
|
||||
#!/bin/env python
|
||||
|
||||
# load api key
|
||||
keyfile = "APIKEY.txt"
|
||||
file = open(keyfile, "r")
|
||||
key = file.read().rstrip()
|
||||
|
||||
from etherpad_lite import EtherpadLiteClient
|
||||
c = EtherpadLiteClient(base_params={'apikey':"{}".format(key)})
|
||||
|
||||
import glob
|
||||
#import re
|
||||
import string
|
||||
|
||||
# iterate over files in org
|
||||
for filename in glob.iglob('org/*.org'):
|
||||
|
||||
# pick relevant part from filename
|
||||
# option 1: https://docs.python.org/2/howto/regex.html
|
||||
#p = re.compile('\.org$')
|
||||
#id = 'pad-'+ p.sub('', filename)
|
||||
# option 2:
|
||||
id = string.replace(string.replace(filename, 'org/', ''), '.org', '')
|
||||
padid = "dox-"+ id
|
||||
file = open(filename, "r")
|
||||
text = file.read()
|
||||
|
||||
# upload text
|
||||
print ("Updating https://irc.anarchyplanet.org/pad/p/"+ padid +" ["+ filename +"]")
|
||||
try:
|
||||
c.deletePad(padID="{}".format(padid))
|
||||
except:
|
||||
print "(new)"
|
||||
c.createPad(padID="{}".format(padid), text="{}".format(text))
|
||||
|
||||
#import urllib2, ssl
|
||||
#response = urllib2.urlopen('https://irc.anarchyplanet.org/pad/p/'+ id +'/export/txt', context=ssl._create_unverified_context())
|
||||
#txt = response.read()
|
||||
#print txt
|
||||
#writeFile = open("projex_out.txt", "w")
|
||||
#writeFile.write(txt)
|
||||
#writeFile.close()
|
||||
#+end_src
|
||||
|
||||
#+begin_src python :results output
|
||||
# FUCK I hate white space syntax
|
||||
# C-c C-r to evaluate region
|
||||
#file = open("hello.org", "r")
|
||||
#localtxt = file.read()
|
||||
#print(localtxt)
|
||||
#+end_src
|
Loading…
x
Reference in New Issue
Block a user