diff --git a/md/README.md b/md/README.md index ad42556..e6e61ef 100644 --- a/md/README.md +++ b/md/README.md @@ -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: diff --git a/md/emacs.md b/md/emacs.md index e29cc86..4e70e3f 100644 --- a/md/emacs.md +++ b/md/emacs.md @@ -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: + diff --git a/md/git.md b/md/git.md index cdf72f5..efd6ce3 100644 --- a/md/git.md +++ b/md/git.md @@ -41,3 +41,4 @@ To push up your changes 7. `git push origin ` 8. submit a pull request +Edit this guide: diff --git a/md/index.md b/md/index.md index 7d3fee3..e2b7683 100644 --- a/md/index.md +++ b/md/index.md @@ -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: diff --git a/md/irc-how-to.md b/md/irc-how-to.md index f753bc7..9652bac 100644 --- a/md/irc-how-to.md +++ b/md/irc-how-to.md @@ -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: diff --git a/md/irc-tor.md b/md/irc-tor.md index b280c24..d6192b1 100644 --- a/md/irc-tor.md +++ b/md/irc-tor.md @@ -49,3 +49,4 @@ Connect to Freenode w/ Tor - set auth to sas exteral - have tor open +Edit this guide: diff --git a/md/ircwalkthrough.md b/md/ircwalkthrough.md index 58f6d94..f56d954 100644 --- a/md/ircwalkthrough.md +++ b/md/ircwalkthrough.md @@ -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: + diff --git a/md/serverl337.md b/md/serverl337.md index 031ef9d..67fc8c7 100644 --- a/md/serverl337.md +++ b/md/serverl337.md @@ -6,3 +6,5 @@ serverl337 1. bck/gpg 3. + +Edit this guide: diff --git a/org/README.org b/org/README.org index edbfa5e..9143483 100644 --- a/org/README.org +++ b/org/README.org @@ -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 diff --git a/org/emacs.org b/org/emacs.org index 947945a..d81d60a 100644 --- a/org/emacs.org +++ b/org/emacs.org @@ -135,3 +135,5 @@ and then, to change the order, you can use M- and M- ... 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 diff --git a/org/git.org b/org/git.org index d270bc1..7874652 100644 --- a/org/git.org +++ b/org/git.org @@ -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 diff --git a/org/index.org b/org/index.org index beabd82..f8157b7 100644 --- a/org/index.org +++ b/org/index.org @@ -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 diff --git a/org/irc-how-to.org b/org/irc-how-to.org index 088d133..52c3db0 100644 --- a/org/irc-how-to.org +++ b/org/irc-how-to.org @@ -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 diff --git a/org/irc-tor.org b/org/irc-tor.org index 8dbd6a7..8afa591 100644 --- a/org/irc-tor.org +++ b/org/irc-tor.org @@ -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 diff --git a/org/ircwalkthrough.org b/org/ircwalkthrough.org index 6702b40..100bb99 100644 --- a/org/ircwalkthrough.org +++ b/org/ircwalkthrough.org @@ -262,3 +262,5 @@ Register a Channel @list 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 those are all of novatore's modules. + +Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-ircwalkthrough diff --git a/org/serverl337.org b/org/serverl337.org index eb00f85..fb3331e 100644 --- a/org/serverl337.org +++ b/org/serverl337.org @@ -4,3 +4,5 @@ 2. kpcli generate key 1. bck/gpg 3. + +Edit this guide: https://irc.anarchyplanet.org/pad/p/dox-serverl337 diff --git a/upload_pads.py b/upload_pads.py new file mode 100644 index 0000000..776df54 --- /dev/null +++ b/upload_pads.py @@ -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