diff --git a/README.md b/README.md deleted file mode 120000 index 6fe8f04..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -md/README.md \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e6e61ef --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +dox +=== + +Intro +----- + +The purpose of dox is to create a git repository for the documentation +we have created from projex. The goals are: + +1. download each etherpad in the projex pad +2. org-ify each pad +3. write a pandoc script to convert each to html +4. write a pandoc script to convert this to markdown + +for now, the file structure should be: + +\`\`\` . ├── css ├── html ├── md ├── org └── scripts README.md \`\`\` + +Edit this guide: diff --git a/html/irc-how-to.html b/html/irc-how-to.html deleted file mode 100644 index 46b78fe..0000000 --- a/html/irc-how-to.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - Anarchy Planet IRC - - - - -

Anarchy Planet IRC how to

-

How to Connect

-

web

-

https://irc.anarchyplanet.org

-

using a client

-

``` irc.anarchyplanet.org port 6667 irc.anarchyplanet.org port 6697 (SSL) km3jy7nrj3e2wiju.onion port 6667 || 6697 ```

-

using tor

-

https://irc.anarchyplanet.org/pad/p/connect-to-apirc-with-tor

-

Basic Commands

-

/nick nickname Changes your nick.

-

/list Lists all channels on the current network.

-

/join #channel Joins the specified channel.

-

/part #channel Leaves the specified channel.

-

/quit [message] Disconnects from current server with optional leaving message.

-

/names #channel Shows the nicks of all users on #channel.

-

/msg nickname message Sends a private message to a user.

-

/query nickname message Sends a private message to a user and opens a private chat window.

-

/me action Prints "yourname action"

-

/notice nickname message Sends a notice to the specified user. Like a /msg, but usually makes a sound.

-

/whois nickname Shows information about the specified user. This action is not visible to the specified user.

-

/whowas nickname Shows information about a user who has quit.

-

Managing Nicknames (Nickserv)

-

/msg nickserv register password [email] Registers your current nick with NickServ with the chosen password and binds it to an e-mail address (optional).

-

/msg nickserv identify password Identifies your nick to NickServ using the password you set.

-

/msg nickserv recover nickname password Kills (forcibly disconnects) someone who has your registered nick.

-

/msg nickserv ghost nickname password Terminates a "ghost" IRC session that's using your nickname.

-

/msg nickserv set password yournewpassword Changes your password. NOTE: Under no circumstances should you change your nick to the letter O followed by 8 digit

-

Managing Channels (ChanServ)

-

/msg chanserv register #channel Registers the current channel to you with ChanServ

-

/msg chanserv set #channel mlock modes Locks the channel's modes. To unlock all of a channel's modes, use /msg chanserv set #channel mlock +

-

Moderating Channels

-

/kick nickname!userid@hostname removes user from channel, but does not ban them. They are able to join immediately.

-

/ban nickname!userid@hostname bans user from channel, but does not kick them. They are prevented from speaking but can still see the channel.

-

/kickban nickname!userid@hostname

-

Use /whois, /whowas or /who to find the information necessary for a ban. note: * is a wildcard and can replace nickname, userid, parts of nickname or userid, hostname or a segment of a hostname.

-

/mode #channel +b nickname!userid@hostname the same as /ban

-

Ban Examples:

-

joe!*@* Will prevent anyone with the nick joe from joining.

-

*myg0t*!* Will prevent anyone whose nick contains myg0t from joining.

-

mark!*elc@* Will prevent anyone with the nick mark and the userid elc from joining.

-

*!*@c-123-24-76-213.ga.isp.net Will prevent anyone with the host c-123-24-76-213.ga.isp.net from joining.

-

*!*@* Bans everyone. Don't do that.

-

Advanced Commands for the uberl337

-

Advanced NickServ commands

-
    -
  1. User modes

    -

    /mode nickname +/-attributes [data]

    -

    Setting people's modes (for current channel only). To set a user's mode outside of a channel, use /mode nickname #channel +/- attributes

    -

    Some of the more important ones are: +q User is owner of the current channel (prefix ~ or @) +a User is an admin (SOP) on the current channel (prefix & or @). +o User is an operator (AOP) on the current channel (prefix @). +h User is a half-op on the current channel (prefix %). +v User has voice on the current channel (prefix +).

    -

    For a complete list of user modes visit https://wiki.inspircd.org/User_Modes

  2. -
-

Advanced Chanserv commands

-

/msg chanserv set #channel secure [on|off] Keeps everyone except aops, sops, and the founder from becoming ops.

-

/msg chanserv set #channel keeptopic [on|off] Maintains the topic even if everyone leaves.

-

/msg chanserv set #channel enforce [on|off] Restores op/halfop/voice if a person with op/halfop/voice gets de-opped/halfopped/voiced.

-

/msg chanserv set #channel leaveops [on|off] Whether or not to allow the first person who join the channel to get ops.

-

/msg chanserv drop #channel [dropcode] Un-registers the current channel to you with ChanServ.

-

/msg chanserv set #channel founder [nickname] Sets the current channel's founder.

-

/msg chanserv set #channel desc [description] Changes the current channel's description.

-

/msg chanserv set #channel url [address] Associates a URL with the channel.

-

/msg chanserv set #channel [email@address] Associates an email address with the channel.

-
    -
  1. Channel modes

    -

    /mode #channel +/-attribute [data]

    -

    For a full list of Inspircd's channel modes visit https://wiki.inspircd.org/Channel_Modes

  2. -
-

Access lists

-

/msg chanserv access #channel add [nickname] [level] Adds nickname to the channel's access list at the specified level.

-

/msg chanserv access channel del [nickname] Removes nickname from the channel's access list.

-

/msg chanserv access #channel list Displays the channel's access list.

-

/msg chanserv access #channel count Displays how many entries are in the channel's access list.

-

Access levels

-

These may vary from network to network. For example, some networks do not go by tens and use 3, 4, 5, 10, etc.

-

Founder Full access to ChanServ functions, automatic opping upon entering channel. 100+ Makes the person an SOP, automatic opping upon entering channel. 50 Makes the parson an AOP, automatic opping upon entering channel. 40 Automatic half-opping. 30 Automatic voicing. 0 No special privileges. -1 May not be opped. -100 May not join the channel. Any nick not on the access list has an access level of 0.

-

AOPs

-

Are automatically ops and can give themselves ops. Can give/take op/halfop/voice to/from other channel members. Can unban themselves. Receive memos sent to the whole channel. Can invite themselves to the channel.

-

SOPs

- -

Viewing and setting privileges

-

Viewing AOP and SOP lists

-

/msg chanserv aop #channel list

-

/msg chanserv sop #channel list

-

Add an AOP or SOP /msg chanserv [AOP|SOP] channel [ADD|DEL|LIST|CLEAR] [nick | entry-list]

-

AKICKs

-

People on the AKICK list are automatically kicked and banned when they enter the channel. Bans made as a result of AKICK must be removed manually.

-

/msg chanserv akick #channel add host [reason] Adds host to #channel's AKICK list [for reason].

-

/msg chanserv akick #channel del host Removes host from the AKICK list.

-

/msg chanserv akick #channel list /msg chanserv akick #channel view Displays the AKICK list.

-

Color codes

-

It's possible to color your text in irc. in most clients you can use control c then foreground,background (background is optional). examples: red text c4. black text on a blue background c1,2. here's a full list of the color codes:

-

``` Number Name 00 white 01 black 02 blue (navy) 03 green 04 red 05 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

- - diff --git a/html/projex.html b/html/projex.html new file mode 100644 index 0000000..b1335ba --- /dev/null +++ b/html/projex.html @@ -0,0 +1,576 @@ + +anarchy planet + +
+
+
+
+ + +
+
+
+
+
+
+ + + +
+
+
+
+
+ +
+
+ +
+
+
+
+ + + + +
+
+
+
+
+
+
+
+
+

You need a password to access this pad

+
+ + + +
+
+
+

You do not have permission to access this pad

+
+
+

Your password was wrong

+
+
+

Cookie could not be found. Please allow cookies in your browser!

+
+

Loading...

+ +
+
+ + + + +
+ + + 0 +
+
+
+ + + █   +
+
+
+ +
+
+
+ + +
+
+
+
 
+ + + + + + + + + + +
+ JavaScript license information +
+ diff --git a/org/irc-how-to.org b/org/irc-how-to.org index 40c3abd..7f9859a 100644 --- a/org/irc-how-to.org +++ b/org/irc-how-to.org @@ -1,15 +1,24 @@ -* Anarchy Planet IRC how to +* Anarchy Planet IRC how to ** How to Connect *** web - https://irc.anarchyplanet.org + https://irc.anarchyplanet.org *** using a client +<<<<<<< HEAD + + - irc.anarchyplanet.org port 6667 + - irc.anarchyplanet.org port 6697 (SSL) + - km3jy7nrj3e2wiju.onion port 6667 || 6697 + +*** using tor +======= - irc.anarchyplanet.org port 6667 - irc.anarchyplanet.org port 6697 (SSL) - km3jy7nrj3e2wiju.onion port 6667 || 6697 *** using tor +>>>>>>> master https://irc.anarchyplanet.org/pad/p/connect-to-apirc-with-tor ** Basic Commands @@ -18,58 +27,58 @@ ~/list~ Lists all channels on the current network. ~/join #channel~ Joins the specified channel. - + ~/part #channel~ Leaves the specified channel. - + ~/quit [message]~ Disconnects from current server with optional leaving message. - + ~/names #channel~ Shows the nicks of all users on #channel. - + ~/msg nickname message~ Sends a private message to a user. - + ~/query nickname message~ Sends a private message to a user and opens a private chat window. - + ~/me action~ Prints "yourname action" - + ~/notice nickname message~ Sends a notice to the specified user. Like a /msg, but usually makes a sound. ~/whois nickname~ Shows information about the specified user. This action is not visible to the specified user. - + ~/whowas nickname~ Shows information about a user who has quit. ** Managing Nicknames (Nickserv) - + ~/msg nickserv register password [email]~ Registers your current nick with NickServ with the chosen password and binds it to an e-mail address (optional). - -~/msg nickserv identify password~ Identifies your nick to NickServ using the password you set. - + +~/msg nickserv identify password~ Identifies your nick to NickServ using the password you set. + ~/msg nickserv recover nickname password~ Kills (forcibly disconnects) someone who has your registered nick. - + ~/msg nickserv ghost nickname password~ Terminates a "ghost" IRC session that's using your nickname. - + ~/msg nickserv set password yournewpassword~ Changes your password. NOTE: Under no circumstances should you change your nick to the letter O followed by 8 digit ** Managing Channels (ChanServ) ~/msg chanserv register #channel~ Registers the current channel to you with ChanServ - + ~/msg chanserv set #channel mlock modes~ Locks the channel's modes. To unlock all of a channel's modes, use ~/msg chanserv set #channel mlock +~ - + ** Moderating Channels ~/kick nickname!userid@hostname~ removes user from channel, but does not ban them. They are able to join immediately. ~/ban nickname!userid@hostname~ - bans user from channel, but does not kick them. They are prevented from speaking but can still see the channel. + bans user from channel, but does not kick them. They are prevented from speaking but can still see the channel. ~/kickban nickname!userid@hostname~ Use ~/whois~, ~/whowas~ or ~/who~ to find the information necessary for a ban. note: ~*~ is a wildcard and can replace nickname, userid, parts of nickname or userid, hostname or a segment of a hostname. - + ~/mode #channel +b nickname!userid@hostname~ - the same as /ban + the same as /ban *** Ban Examples: @@ -89,14 +98,14 @@ Will prevent anyone with the host c-123-24-76-213.ga.isp.net from joining. Bans everyone. Don't do that. ** Advanced Commands for the uberl337 -*** Advanced NickServ commands +*** Advanced NickServ commands **** User modes ~/mode nickname +/-attributes [data]~ Setting people's modes (for current channel only). To set a user's mode outside of a channel, use ~/mode nickname #channel +/- attributes~ -Some of the more important ones are: +Some of the more important ones are: ~+q~ User is owner of the current channel (prefix ~ or @) ~+a~ User is an admin (SOP) on the current channel (prefix & or @). ~+o~ User is an operator (AOP) on the current channel (prefix @). @@ -105,11 +114,11 @@ Some of the more important ones are: For a complete list of user modes visit https://wiki.inspircd.org/User_Modes -*** Advanced Chanserv commands +*** Advanced Chanserv commands ~/msg chanserv set #channel secure [on|off]~ Keeps everyone except aops, sops, and the founder from becoming ops. - + ~/msg chanserv set #channel keeptopic [on|off]~ Maintains the topic even if everyone leaves. @@ -118,10 +127,10 @@ Restores op/halfop/voice if a person with op/halfop/voice gets de-opped/halfoppe ~/msg chanserv set #channel leaveops [on|off]~ Whether or not to allow the first person who join the channel to get ops. - + ~/msg chanserv drop #channel [dropcode]~ Un-registers the current channel to you with ChanServ. - + ~/msg chanserv set #channel founder [nickname]~ Sets the current channel's founder. @@ -134,7 +143,7 @@ Associates a URL with the channel. ~/msg chanserv set #channel [email@address]~ Associates an email address with the channel. -**** Channel modes +**** Channel modes ~/mode #channel +/-attribute [data]~ diff --git a/upload_pads.py b/upload_pads.py new file mode 100644 index 0000000..4ec7476 --- /dev/null +++ b/upload_pads.py @@ -0,0 +1,51 @@ +#!/bin/env python +# -*- coding: utf-8-*- +# 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