restructured directory

This commit is contained in:
notnull 2019-01-26 15:40:07 -08:00
parent 2b2ad5c88e
commit 9dfb3e3212
11 changed files with 322 additions and 106 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
notes

72
README.md Normal file
View File

@ -0,0 +1,72 @@
(open bullets with TAB)
proto
=====
intro
-----
The purpose of proto is to document a workflow for projex, etc.
The first step is emacs / pandoc / git.
TODOS
-----
### TODO document an onboarding sequence for AP projex ppl
- something like:
- SSH
- tmux/wemux
- git
- hidden services
- pandoc
- like etc. etc.
notes
-----
### emacs org mode
[emacs overview](emacs.org) (hover over link and type C-c C-o)
re: emacs: I don't think it will be reasonable to force everyone to use
it. The question is, can we convert from some other format to org mode?
Reasonably so, but shouldn't matter much, I iwll be the plaintext format
nazi.
### Git Workflow
<https://irc.anarchyplanet.org/pad/p/git/export/txt>
\^ to browse: use C-x m
1. notes about enabling w3m
&lt;-- I wonder how to make this a link that will open a web browser
in emacs?
how to execute a command from emacs?
M-x and then type it
I don't think it quite works like that...
we need MELPA which is a package repo for emacs, has more than elpa
I'll figure out how to get it, one sec
why can't i type space?
- = space in
currently trying to set this up
<https://www.emacswiki.org/emacs/emacs-w3m> does it work?
2. manifesto
online collaboration and async communication: &lt;manifesto will go
here&gt;

17
org/README.org Normal file
View File

@ -0,0 +1,17 @@
(open bullets with TAB)
* proto
** intro
The purpose of proto is to document a workflow for projex, etc.
The first step is emacs / pandoc / git.
** TODOS
*** TODO document an onboarding sequence for AP projex ppl
- something like:
- SSH
- tmux/wemux
- git
- hidden services
- pandoc
- like etc. etc.

View File

@ -1,13 +1,31 @@
(open bullets with TAB)
# -*- mode: org -*-
* TODOS
** DONE notnull will test emacs howto-from-scratch tutorial
** DONE enable w3m on emacs
*** w3m (TLDR?)
Archived entries from file /home/notnull/projex/proto/_proto.org
* DONE notnull will test emacs howto-from-scratch tutorial
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:48
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:
* DONE enable w3m on emacs
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:48
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:
** w3m (TLDR?)
https://www.emacswiki.org/emacs/emacs-w3m
^ I am interestd in using w3m so we can keep it consistent outside of emacs, but I'll start with getting w3 to work maybe[strike that]. (emacs' standard browser is called eww, RMS really has a way with naming things with awful names)
**** how to install
*** how to install
- add melpa to packages (not melpa-stable)
(require 'package)
@ -16,7 +34,7 @@ https://www.emacswiki.org/emacs/emacs-w3m
(package-initialize)
- M-x package-refresh-contents
- M-x package-install <enter> w3m <enter>
**** random notes
*** random notes
I added the melpa repo to .emacs and that provided several more packages, but not the one listed above.
@ -36,7 +54,7 @@ which other system?
> I've gotten this to work before (on another computer)
cool, keep on it!
*** option with config foo: https://www.emacswiki.org/emacs/BrowseUrl#toc4
** option with config foo: https://www.emacswiki.org/emacs/BrowseUrl#toc4
In order to fix it, you must run w3m as a shell command in order to capture the output. Here is how:
In your ~/.emacs:
@ -73,7 +91,7 @@ Note that now you can define `web-browser %s & as an external browser in w3m,
Note also that if you want to run w3m interactively when it runs within Emacs (in the example given that happens only when calling browse-url within Emacs on the console), then you need emacs-w3m.
*** w3 (no, too old)
** w3 (no, too old)
we decided not to go with w3 lol
> error in process filter: w3-draw-tree: Symbol's value as variable is void: w3--args
@ -108,30 +126,13 @@ trying to remember how... take your time, i love watching other's work.
I really hate 99% of documentation. It should not be this hard to google search and find instructions on how to enable this...
** TODO write git workflow (see section below w/ questions)
* proto
The purpose of proto is to document a workflow for projex, etc. The first step is emacs / pandoc / git.
** emacs org mode
[[file:emacs.org][emacs overview]] (hover over link and type C-c C-o)
** Git Workflow
https://irc.anarchyplanet.org/pad/p/git <-- I wonder how to make this a link that will open a web browser in emacs?
how to execute a command from emacs?
M-x and then type it
I don't think it quite works like that...
we need MELPA which is a package repo for emacs, has more than elpa
I'll figure out how to get it, one sec
why can't i type space?
- = space in
currently trying to set this up https://www.emacswiki.org/emacs/emacs-w3m
does it work?
** random notes
online collaboration and async communication: <manifesto will go here>
* DONE write git workflow (see section below w/ questions)
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:50
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:
we finally got gogs working :)

View File

@ -1,4 +1,4 @@
essential keystrokes:
you just essential keystrokes:
(TAB to open bullets) <-- do this lol
C-x 1 to return buffer to 1 window
C-g to cancel a command
@ -7,8 +7,11 @@ tiling window: C-x [1..3]
C-k cut C-y paste
* emacs org mode
*** TODO write essential emacs settings file
e.g., saving annoying emacs backups all in one place so they don't clutter directories
** Overview
*** goal
So there are two basic things that are useful about org mode:
1. bullets are collapsible which makes it really easy to organize shit and move it around
collapsible items rule!
@ -51,7 +54,7 @@ you can turn auto-revert-mode on so it will reload every time the file changes.
I've never used the second... rarely the first, I always just close :P
so i don't need to save it? it members?
no, you would have to save it. I always just do C-x C-c (closes all buffers) and save them all. I blieve if you try to revert-buffer it will prompt you to save. Do i do this after restarting or before?
C-c C-s saves all buffers, C-c C-c exits.
C-c s saves all buffers, C-c C-c exits.
M-x package-install circe <enter>
M-x circe <enter>
@ -79,6 +82,22 @@ re: tor: we should use it for w3m tho, yah?
sure, always. :) does emacs mind if we take aways some sycalls from it?
**** freenode #emacs
you missed this before you came in :P
<notnull> does anyone know if emacs has a fishlim plugin anywhere? I don't see one ...
<technomancy> fish... lim?
<notnull> sry, just fish
<gganley`> limit fish?
<technomancy> fish?
<notnull> :) my mistake, fishlim is a hexchat plugin
<gganley`> fish shell
<gganley`> i bet
<gganley`> notnull: Are you talking about the shell fish?
<notnull> I'm talking about irc encryption
<parsnip> hmm, wonder if there's a cheat way to find non-escaped quotes, in a syntax-propertize-function
<gganley`> oh, never heard of it
<notnull> I'm sry, I was over-estimating how broad this plugin is :)
** random notes
*** useful things overview
So there are two basic things that are useful about org mode:

91
org/git.org Normal file
View File

@ -0,0 +1,91 @@
* Git
** Intro
The purpose of this channel is (currently) to draft a git workflow for serge / projex.
ssh-keygen -l -f /etc/ssh/ssh_host_ecdsa_key.pub
** Git Workflow
*** on server
- cd /srv/git && su - git
- mkdir projex/repo.git && cd repo.git && git init --bare
*** on local computer
- torsocks git clone git@w2ja5hhrcjc2wnxe.onion:projex/repo.git
- this requires that you have a pubkey added to srv/git/.ssh/authorized_keys
- see /var/www/irc.anarchyplanet.org/dox for an example of this locally
(git remote -v)
- you will clone an empty repo... make changes locally and then push
- make changes locally
- torsocks git push origin master
** random notes
*** branch issues with git push
I don't have permissions figured out perfectly for this. when I push as notnull@host it hangs (permission issue) but when I push as root it's fine.
also when I push as notnull@serge.
notnull is part of group git.
I need to examine permissions for /srv/git
on the other hand... why would sudo git push work? doesn't that indicate that it's a local permissions problem?
^ possibly confirmed? I just pushed from Pi without a problem...
Does /srv/git/projex/proto/ need to be owned by notnull? does the push need to happen as git user?
https://en.wikibooks.org/wiki/Git/Gitosis#Defining_Groups,_Members,_Permissions,_and_Repositories
https://wiki.archlinux.org/index.php/Gitosis#Repositories_and_permissions
^ /kickban anon <-- RTFM
*** ideal workflow: branches
Ideally, users would checkout their own branch and push that branch to the main repo, but I don't know if I have a way to protect the master branch without using GitHub. I assume there is a way by controlling permissions somewhere in the bare repo, but I haven't found it yet.
*************************************************
gitk
*************************************************
notnull@serge:~$ gitk
application-specific initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: no display name and no $DISPLAY environment variable
while executing
"load /usr/lib/x86_64-linux-gnu/libtk8.6.so Tk"
("package ifneeded Tk 8.6.6" script)
invoked from within
"package require Tk"
(file "/usr/bin/gitk" line 10)
*************************************************
old notes
These notes are not currently correct, but they are for reference.
*************************************************
To gain SSH access to server
generate an SSH key: http://pad.anarchistnews.org/p/ssh and send to admin
to ssh into serge: torify ssh (username@)iofdnzyvag7ncw63.onion
To create a git repository in your realm
on mudbox:
* ssh into mudbox
* cd realm
* git init
* git config --global user.email "<username>@serge"
* git config --global user.name "<username>"
* git add -A
* git commit -m "import"
* exit
on home computer:
* torsocks git clone <username>@mudbox.onion:realm
* cd realm
* git config --global user.email "<username>@serge"
* git config --global user.name "<username>"
* nano README.md
* type Hello, world! ; save and exit
* git add -A
* git commit -m "first commit"
* torsocks git push origin master

14
org/go.org Normal file
View File

@ -0,0 +1,14 @@
* gogs
** installing
*** notnull and data tried these things:
https://irc.anarchyplanet.org/pad/p/gogs
sudo apt install golang-go
su git
cd ~
mkdir ~/go && export GOPATH=$HOME/go && go get -u github.com/gogs/gogs
wait forever with no feedback
cd $GOPATH/src/github.com/gogs/gogs
go build
can't load package: package .: no buildable Go source files in /home/git/gogs
*** ron did all this crazy shit:

View File

@ -1,5 +1,8 @@
* Anarchy Planet Tech Tuesdays
* projex
** current projects
*** Anarchy Planet Tech Tuesdays
**** intro
This will be a weekly series of tutorials on how to accomplish small tech-related tasks. The purpose is to prototype a process of how to collaborate with strangers over the internet on mutual interests and with a trajectory toward infosec/osint topics.
Feel free to generate your own tutorial topics, with the constraint that the tutorials should be:
@ -7,95 +10,98 @@ Feel free to generate your own tutorial topics, with the constraint that the tut
2. tangible. we should have something by the end that we didn't have before, such as an email address with gpg enabled.
3. FOSS all day erry day
** current topic
**** upcoming topic
Tuesday Jan 21: MUDs https://irc.anarchyplanet.org/pad/p/ap-the-game
Teach M to use tmux. <3 <3 <3
** topics
**** tutorials
***** IRC
- IRC intro http://pad.anarchistnews.org/p/irc-how-to
- setting up IRC to run through Tor (hexchat, irssi, freenode w/ tor) https://irc.anarchyplanet.org/pad/p/connect-to-apirc-with-tor
- Inspircd, Atheme Services, setting up channels https://irc.anarchyplanet.org/pad/p/inspircdathemelimnoria
- Novatore The Bot (i.e., Limnoria, python) https://irc.anarchyplanet.org/pad/p/novatoreonboard
- building other bots: https://irc.anarchyplanet.org/pad/p/anarchybots
- using fishlim with hexchat / irssi: https://irc.anarchyplanet.org/pad/p/fish
- host your own IRC https://irc.anarchyplanet.org/pad/p/inspircd
- host kiwi and torify link https://irc.anarchyplanet.org/pad/p/kiwi-onion
*** IRC
- IRC intro http://pad.anarchistnews.org/p/irc-how-to
- setting up IRC to run through Tor (hexchat, irssi, freenode w/ tor) https://irc.anarchyplanet.org/pad/p/connect-to-apirc-with-tor
- Inspircd, Atheme Services, setting up channels https://irc.anarchyplanet.org/pad/p/inspircdathemelimnoria
- Novatore The Bot (i.e., Limnoria, python) https://irc.anarchyplanet.org/pad/p/novatoreonboard
- building other bots: https://irc.anarchyplanet.org/pad/p/anarchybots
- using fishlim with hexchat / irssi: https://irc.anarchyplanet.org/pad/p/fish
- setting up and using GPG: https://irc.anarchyplanet.org/pad/p/gpg
- setting up ssh keys https://irc.anarchyplanet.org/pad/p/ssh
- xmpp with OTR and OMEMO https://irc.anarchyplanet.org/pad/p/xmpp
- host your own IRC https://irc.anarchyplanet.org/pad/p/inspircd
*** Server Admin
***** Server Admin
- tmux
- wemux https://irc.anarchyplanet.org/pad/p/wemux
- self-hosting w/ Nginx
- audio streaming
https://xiph.org/
https://irc.anarchyplanet.org/dox/
- setting up host files to block advertisements https://en.wikipedia.org/wiki/Hosts_%28file%29 (beware effects on fingerprintability)
- VPNS
- mesh https://en.wikipedia.org/wiki/OpenWrt
- bootloaders: how do they work? <3
- setting up host files to block advertisements https://en.wikipedia.org/wiki/Hosts_%28file%29 (beware effects on fingerprintability)
- set up a VPN
*** fileshare resources
How to torrent (the anarchist library): https://irc.anarchyplanet.org/pad/p/torrent
https://github.com/micahflee/onionshare
syncthing
gobby (collaborative writing / code development) https://irc.anarchyplanet.org/pad/p/obby
ipfs https://irc.anarchyplanet.org/pad/p/ipfs - https://github.com/ipfs/ipfs IPFS is a distributed file system that seeks to connect all computing devices with the same system of files. In some ways, this is similar to the original aims of the Web, but IPFS is actually more similar to a single bittorrent swarm exchanging git objects.
***** secure communications
- setting up and using GPG: https://irc.anarchyplanet.org/pad/p/gpg
- setting up ssh keys https://irc.anarchyplanet.org/pad/p/ssh
- xmpp with OTR and OMEMO https://irc.anarchyplanet.org/pad/p/xmpp
***** fileshare resources
- How to torrent (the anarchist library): https://irc.anarchyplanet.org/pad/p/torrent
- share files from terminal https://0xacab.org/riseup/share/up1-cli-client-nodejs#README
*** Misc
***** Misc
- osint
- send and receive bitcoin (and/or other cryptocurrency? and setting up group wallets?) https://archive.cyberguerrilla.org/a/2017/cgan-course-4-todays-lesson-what-is-btc/
- set up i2p https://www.reddit.com/r/i2p/comments/1tlqct/irc_on_i2p_irc2p_startup_guide/
- mesh https://en.wikipedia.org/wiki/OpenWrt
- self-hosting w/ Nginx
- bootloaders: how do they work? <3
- wiki https://irc.anarchyplanet.org/pad/p/wiki
*** email resources
*** Anarchy Planet - The Game!
**** intro
https://irc.anarchyplanet.org/pad/p/mud
https://irc.anarchyplanet.org/pad/p/ap-the-game
*** Anarchy Bang Comment Tagger
*** CLI News Aggregator
** tools
*** git / version control / code workflow
**** gitea https://irc.anarchyplanet.org/pad/p/gitea
**** gogs https://irc.anarchyplanet.org/pad/p/gogs
https://gogs.io/docs/installation
**** gitlab
https://docs.gitlab.com/ee/install/README.html
**** gitosis
https://git-scm.com/book/en/v1/Git-on-the-Server-Gitosis
**** gobalist
https://irc.anarchyplanet.org/pad/p/globalist
**** cgit
https://git.zx2c4.com/cgit/
**** gitweb
https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb
https://www.agwa.name/projects/git-crypt/
https://git-scm.com/book/en/v2/Distributed-Git-Distributed-Workflows
*** email
https://pad.anarchistnews.org/p/letsgobois
https://projex.neocities.org
*** wiki
http://pad.anarchistnews.org/p/wiki
*** git / version control / code workflow
gitea
gogs https://gogs.io/docs/installation
gitlab https://docs.gitlab.com/ee/install/README.html
gitosis https://git-scm.com/book/en/v1/Git-on-the-Server-Gitosis
gobalist https://irc.anarchyplanet.org/pad/p/globalist
cgit https://git.zx2c4.com/cgit/
gitweb https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb
^ meh to all of this!
/apsite/dox --> symlink to /srv/projex/dox/ --> /git/projex/dox
/ | \
notnull person other peson
https://www.agwa.name/projects/git-crypt/
https://git-scm.com/book/en/v2/Distributed-Git-Distributed-Workflows
*** IRC
http://www.inspircd.org/
*** atheme
https://limnoria.readthedocs.io/en/latest/use/index.html
https://irc.anarchyplanet.org/pad/p/kiwi-onion
http://gribble.sourceforge.net/supybook
briar https://media.ccc.de/v/34c3-8937-briar
*** terminals
*** file sharing
- onionshare https://github.com/micahflee/onionshare
- syncthing
- gobby (collaborative writing / code development) https://irc.anarchyplanet.org/pad/p/obby
- ipfs https://irc.anarchyplanet.org/pad/p/ipfs - https://github.com/ipfs/ipfs
**** terminals
if you love your console: apt search dwm
tmux
- post text and images http://ix.io/ - https://0xacab.org/riseup/share/up1-cli-client-nodejs
- bash scripts (for, {}, ..)
- zsh https://ohmyz.sh/ - Plugins: https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins - zsh.org - https://en.wikipedia.org/wiki/Z_shell
*** editors
**** editors
emacs-orgmode
vi http://www.penguintutor.com/linux/vi-texteditor-tutorial
focuswriter
*** forums
https://flaskbb.org/ (meh)
session: together test which cms of @LIST is eaiest to setup <- to set this up, let's make a list and pilot test installing them quickly ...
*** communication
- https://github.com/maqp/tfc Tinfoil Chat
- ricochet
- finch=pidgin (libpurple) yep!
- cwtch.im
- would be nice to link (strange emacs display bug: https://irc.anarchyplanet.org/pad/p/projex#privacy here
** misc ideas
*** imgboard
(chans not run by neonazis, maybe?)
anokchan.org ;-) <3
@ -165,9 +171,6 @@ https://startyourownisp.com/
connect to freenode via tor: https://freenode.net/kb/answer/certfp
*** fun
https://irc.anarchyplanet.org/pad/p/mud
https://irc.anarchyplanet.org/pad/p/ap-the-game
*** wanna start coding?
https://lifehacker.com/why-you-should-learn-to-run-a-server-before-you-learn-t-1497178889
@ -185,3 +188,4 @@ https://trac.torproject.org/projects/tor/wiki/RustInTor
HowTos - projex style tutorials that people can update / contribute to through our git workflow
Tools - list of tools loosely grouped by categories (e.g. above) that people can (1) contribute HowTos or (2) review
Info - lists of articles that can provide more context info that people can (1) post questions on and (2) review their thoughts on the article
ta-daa!!

View File

@ -1,3 +0,0 @@
arr = [0,1,2]
for x in arr:
print (x) #what are you dooing?