User:Golubjevaite/Prototyping I: Difference between revisions

From XPUB & Lens-Based wiki
 
(68 intermediate revisions by the same user not shown)
Line 1: Line 1:
= SPECIAL ISSUE 11=
[[Prototyping#Trimester_2_.2F_SI.2311_Post-Digital_Itch]]
==RPI & TOR==
[[File:torsetup.jpg|500px|thumbnail|right]]
[[File:torsetup2.png|500px|thumbnail|right]]
<pre>
sudo -i
sudo adduser bob
sudo adduser bob sudo
sudo passwd bob
sudo userdel -r bob
</pre>
[[https://pad.xpub.nl/p/ezn2 PAD]]/ RPI & NGINX & TOR setup by [[User:Ezn]]
==SCP==
Secure copy protocol
<pre>scp -r <folder> hub.sandbox:/home/username/public_html</pre>
==SSH==
<pre>
Host arch                        < ssh call name
User doggo                     
Hostname ARCHIVE                  < pi name
Port 22                          < local
Identityfile ~/.ssh/id_rsa        < private key location
Serveraliveinterval 30
</pre>
==Wiki API==
<pre>
url= "https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=query&list=allimages&aifrom=Z&ailimit=11&format=json"
# start from the api
from urllib.request import urlopen
import json
data = json.load(urlopen(url))
#print (json.dumps(data, indent=2))
for x in data ['query']['allimages']:
print (x['name'])
#print (x['url'])
print (f"<a href=\"{x['descriptionshorturl']}\"><img src=\"{x['url']}\">")
print ()
print ("all done")
</pre>
==GIT branches==
<pre>
git branch <name>                  * new beanch
git checkout <name>                * switch to branch
git branch                        * shows brunch you are on atm
git pull origin <other branch>    * pulls changes from that branch
git checkout <other branch>        *switch to other branch
</pre>
==Python3/wiki2html==
[[https://pad.xpub.nl/p/prototyping-2020-02-10 PAD]] proto w A <br>
[[https://git.xpub.nl/XPUB/special-issue-11-wiki2html special-issue-11-wiki2html]] /GIT
<pre>
python3 query2html.py -c [[File:+]][[Title::+]][[Part::+]][[Date::~*1980*]]      * changes index.html with custom preferences
python3 query2html.py -c '[[File:+]][[Title::+]][[Part::+]][[Date::<1980]]' -d  * gives query
</pre>
==HTML/ pandoc==
[[File:pandoc1.jpg|600px|thumbnail|right|pandoc beginnings]]
[[https://pad.xpub.nl/p/22-1-2020 proto w M]]
<pre>
pdftotext [name].pdf -                          *text
pdftotext [name].pdf - | pandoc                  *markdown
pdftotext [name].pdf - | pandoc > [name].html    *html
</pre>
<pre>
THE FULL COMMAND for markdown to html:
pandoc --standalone --toc --from markdown --to html --css style.css FACTSHEET.md -o FACTSHEET.html
</pre>
==OCR==
[[https://pzwiki.wdka.nl/mediadesign/Digital_zines_I:_PDF proto w M]]
==MEDIAWIKI==
[[https://pzwiki.wdka.nl/mediadesign/Prototyping_2020.01.13 proto w A]]
<br>[[https://pad.xpub.nl/p/Prototyping_2020.01.13 PAD]]
<pre> ssh hub.sandbox </pre>
= SPECIAL ISSUE 10=
==UNIX==
==UNIX==
[[File:Scrn.jpeg|none]]
[[File:sandbox.jpeg|600px|thumb|right|top]]
[[https://pad.xpub.nl/p/prototyping-20190916 PAD 20190916 A]]
<br> [[http://145.24.139.127/index.html XPUB1 INDEX]]
<br>[[http://145.24.139.127/~sgolub/index.html XPUB1 GOLUB]]
 
==GIT==
[[https://pad.xpub.nl/p/prototyping-20190930 PAD 20190930 A]]
<br>[[https://git.xpub.nl GIT.XPUB]]
<br>[[https://git.xpub.nl/golub GIT/GOLUB]]
 
<pre>git clone [link]
</pre>
 
<pre>
git add <folder>/*
git commit -m “message”
git push
</pre>
 
[[File:arduinomess.jpg|500px|thumbnail|right|arduino mess]]
 
==ARDUINO==
[[https://pad.xpub.nl/p/prototypingm01 PAD 20191002 M]]
<br> [[File:clap&grime.mp3]]
<br>[[Prototyping/2019-10-16|simple counting loop]]
[[File:Knob_values.gif|500px|thumbnail|left|show-knob-values.ino]]
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>


==Synth==
==pads==
[[https://pad.xpub.nl/p/prototyping-20191007 PAD 20191007 A]] WIKI
<br>[[File:Humancomp.jpg|500px|thumbnail|left]]

Latest revision as of 00:38, 20 April 2020


SPECIAL ISSUE 11

Prototyping#Trimester_2_.2F_SI.2311_Post-Digital_Itch

RPI & TOR

Torsetup.jpg
Torsetup2.png
 
sudo -i 
sudo adduser bob
sudo adduser bob sudo
sudo passwd bob
sudo userdel -r bob

[PAD]/ RPI & NGINX & TOR setup by User:Ezn

SCP

Secure copy protocol

scp -r <folder> hub.sandbox:/home/username/public_html

SSH

Host arch                         < ssh call name
User doggo                      
Hostname ARCHIVE                  < pi name
Port 22                           < local
Identityfile ~/.ssh/id_rsa        < private key location
Serveraliveinterval 30

Wiki API

url= "https://pzwiki.wdka.nl/mw-mediadesign/api.php?action=query&list=allimages&aifrom=Z&ailimit=11&format=json"
# start from the api

from urllib.request import urlopen
import json

data = json.load(urlopen(url))
#print (json.dumps(data, indent=2))
for x in data ['query']['allimages']:
	print (x['name'])
	#print (x['url'])
	print (f"<a href=\"{x['descriptionshorturl']}\"><img src=\"{x['url']}\">")
	print ()

print ("all done")

GIT branches

git branch <name>                  * new beanch
git checkout <name>                * switch to branch
git branch                         * shows brunch you are on atm
git pull origin <other branch>     * pulls changes from that branch
git checkout <other branch>        *switch to other branch

Python3/wiki2html

[PAD] proto w A
[special-issue-11-wiki2html] /GIT

python3 query2html.py -c [[File:+]][[Title::+]][[Part::+]][[Date::~*1980*]]      * changes index.html with custom preferences
python3 query2html.py -c '[[File:+]][[Title::+]][[Part::+]][[Date::<1980]]' -d   * gives query

HTML/ pandoc

pandoc beginnings

[proto w M]

pdftotext [name].pdf -                           *text
pdftotext [name].pdf - | pandoc                  *markdown
pdftotext [name].pdf - | pandoc > [name].html    *html
THE FULL COMMAND for markdown to html:
pandoc --standalone --toc --from markdown --to html --css style.css FACTSHEET.md -o FACTSHEET.html

OCR

[proto w M]

MEDIAWIKI

[proto w A]
[PAD]

 ssh hub.sandbox 

SPECIAL ISSUE 10

UNIX

Sandbox.jpeg

[PAD 20190916 A]
[XPUB1 INDEX]
[XPUB1 GOLUB]

GIT

[PAD 20190930 A]
[GIT.XPUB]
[GIT/GOLUB]

git clone [link]
git add <folder>/*
git commit -m “message”
git push
arduino mess

ARDUINO

[PAD 20191002 M]
File:Clap&grime.mp3
simple counting loop

show-knob-values.ino














pads

[PAD 20191007 A] WIKI


Humancomp.jpg