gemini

gemini://andersuno.nu
git clone git://git.andersuno.nu/gemini.git
Log | Files | Refs

README.org (8107B)


      1 #+AUTHOR: Anders Hedman
      2 #+TITLE: Gemini / HTML web page
      3 
      4 
      5 * index.gmi
      6 
      7 ** Gemini
      8 
      9 #+begin_src :tangle yes :tangle index.gmi
     10 ```
     11                           $$\
     12                           $$ |
     13  $$$$$$\  $$$$$$$\   $$$$$$$ | $$$$$$\   $$$$$$\   $$$$$$$\ $$\   $$\ $$$$$$$\   $$$$$$\      $$$$$$$\  $$\   $$\
     14  \____$$\ $$  __$$\ $$  __$$ |$$  __$$\ $$  __$$\ $$  _____|$$ |  $$ |$$  __$$\ $$  __$$\     $$  __$$\ $$ |  $$ |
     15  $$$$$$$ |$$ |  $$ |$$ /  $$ |$$$$$$$$ |$$ |  \__|\$$$$$$\  $$ |  $$ |$$ |  $$ |$$ /  $$ |    $$ |  $$ |$$ |  $$ |
     16 $$  __$$ |$$ |  $$ |$$ |  $$ |$$   ____|$$ |       \____$$\ $$ |  $$ |$$ |  $$ |$$ |  $$ |    $$ |  $$ |$$ |  $$ |
     17 \$$$$$$$ |$$ |  $$ |\$$$$$$$ |\$$$$$$$\ $$ |      $$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$\ $$ |  $$ |\$$$$$$  |
     18  \_______|\__|  \__| \_______| \_______|\__|      \_______/  \______/ \__|  \__| \______/ \__|\__|  \__| \______/
     19 
     20 ```
     21 # Welcome to andersuno.nu
     22 
     23 ## Links
     24 ### Git
     25 => http://git.andersuno.nu My git repos
     26 => https://github.com/andersuno My Github
     27 
     28 ### Podcast
     29 => https://odysee.com/@Parklivspodden:7 Parklivspodden on Odysee utilizing LBRY-protocol, Swedish podcast
     30 
     31 ### QOTD Lampinismer
     32 ncat --recv-only qotd.andersuno.nu 1700
     33 netcat -d qotd.andersuno.nu 1700
     34 telnet qotd.andersuno.nu 1700
     35 
     36 # Support
     37 
     38 => gemini://andersuno.nu/referral.gmi Referral links
     39 => gemini://andersuno.nu/donate.gmi Donations
     40 #+end_src
     41 
     42 ** HTML
     43 
     44 *** HTML header and stylesheet tangle
     45 
     46 + Add CSS stylesheet
     47 + Add title
     48 
     49 #+begin_src html :tangle html/index.html
     50 <head>
     51   <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" />
     52   <title>andersuno.nu</title>
     53 </head>
     54 #+end_src
     55 
     56 *** Generate tangle block with HTML body from index.gmi
     57 
     58 1. Start by tangling once to make updated source file index.gmi available
     59 2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle
     60 3. Tabbing inside src block removes RESULT block
     61 
     62 - Sed substitution making gemini://page.gmi into http://page.html
     63 
     64 #+begin_src bash :results raw :wrap src html \:tangle html/index.html
     65 
     66 sed 's/gemini:\/\//http:\/\//g;s/.gmi/.html/g' index.gmi | gmi2html
     67 
     68 #+end_src
     69 
     70 #+RESULTS:
     71 #+begin_src html :tangle html/index.html
     72 <pre>
     73                           $$\
     74                           $$ |
     75  $$$$$$\  $$$$$$$\   $$$$$$$ | $$$$$$\   $$$$$$\   $$$$$$$\ $$\   $$\ $$$$$$$\   $$$$$$\      $$$$$$$\  $$\   $$\
     76  \____$$\ $$  __$$\ $$  __$$ |$$  __$$\ $$  __$$\ $$  _____|$$ |  $$ |$$  __$$\ $$  __$$\     $$  __$$\ $$ |  $$ |
     77  $$$$$$$ |$$ |  $$ |$$ /  $$ |$$$$$$$$ |$$ |  \__|\$$$$$$\  $$ |  $$ |$$ |  $$ |$$ /  $$ |    $$ |  $$ |$$ |  $$ |
     78 $$  __$$ |$$ |  $$ |$$ |  $$ |$$   ____|$$ |       \____$$\ $$ |  $$ |$$ |  $$ |$$ |  $$ |    $$ |  $$ |$$ |  $$ |
     79 \$$$$$$$ |$$ |  $$ |\$$$$$$$ |\$$$$$$$\ $$ |      $$$$$$$  |\$$$$$$  |$$ |  $$ |\$$$$$$  |$$\ $$ |  $$ |\$$$$$$  |
     80  \_______|\__|  \__| \_______| \_______|\__|      \_______/  \______/ \__|  \__| \______/ \__|\__|  \__| \______/
     81 
     82 </pre>
     83 <h1>Welcome to andersuno.nu</h1>
     84 <p><br/></p>
     85 <h2>Links</h2>
     86 <h3>Git</h3>
     87 <a style="display: block;" href="http://git.andersuno.nu">My git repos</a>
     88 <a style="display: block;" href="https://github.com/andersuno">My Github</a>
     89 <p><br/></p>
     90 <h3>Podcast</h3>
     91 <a style="display: block;" href="https://odysee.com/@Parklivspodden:7">Parklivspodden on Odysee utilizing LBRY-protocol, Swedish podcast</a>
     92 <p><br/></p>
     93 <h3>QOTD Lampinismer</h3>
     94 <p>ncat --recv-only qotd.andersuno.nu 1700</p>
     95 <p>netcat -d qotd.andersuno.nu 1700</p>
     96 <p>telnet qotd.andersuno.nu 1700</p>
     97 <p><br/></p>
     98 <h1>Support</h1>
     99 <p><br/></p>
    100 <a style="display: block;" href="http://andersuno.nu/referral.html">Referral links</a>
    101 <a style="display: block;" href="http://andersuno.nu/donate.html">Donations</a>
    102 #+end_src
    103 
    104 
    105 * donate.gmi
    106 
    107 ** Gemini
    108 
    109 + "," prefix is added as escape char to make lines not headlines
    110   - "," is automatically removed from tangled result
    111 + Alternative is not use zero-width space <200b>
    112   - Not removed from tangled result
    113   - C-x 8 <RET> zero width space | 200B <RET>
    114   - Doom: SPC i u zero width space | 200B <RET>
    115 
    116 #+begin_src :tangle yes :tangle donate.gmi
    117 # Crypto
    118 
    119 ### Monero
    120 ,* XMR: 4AqZR9mNJ3aTaAqhG7a6RoSZUQSsWPsSoN5GnHSMGrDXS54VnLtJkjsFpsBfn6jacjA42FELwasK6TLFrNVePWivVMgzh8i
    121 
    122 ### Bitcoin
    123 ,* BTC: 1L8fwzF4rUs1wc453RhKHDpCC9S3FvFySC
    124 
    125 ### Ethereum
    126 ,* ETH: 0x927Ce74140713F116f457707bEA79a13B5E3e402
    127 
    128 ### LBRY Credits
    129 ,* LBC: bF81SN4eTv8Dwe6gceXo2KFJnmgagmgfDE
    130 
    131 ### Litecoin
    132 ,* LTC: LUcsxrPxts6B5ULrEQuRgSjw3QvyJr72nR
    133 
    134 ### Bitcoin Cash
    135 ,* BCH: 1GzzvT6WscYp88SeRUu7dhu4a4diiCt74v
    136 
    137 ### Ethereum Classic
    138 ,* ETC: 0x784684E3aE290DFC3Cdd5c3f1B9a7f28C9fD0D7d
    139 
    140 ### Dash
    141 ,* DASH: Xgprtj7t5En3YrTkycK2bVVicWu5H9zb3t
    142 #+end_src
    143 ** HTML
    144 
    145 *** HTML header and stylesheet tangle
    146 
    147 + Add CSS stylesheet
    148 + Add title
    149 
    150 #+begin_src html :tangle html/donate.html
    151 <head>
    152   <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" />
    153   <title>andersuno.nu</title>
    154 </head>
    155 #+end_src
    156 
    157 *** Generate tangle block with HTML body from donate.gmi
    158 
    159 1. Start by tangling once to make updated source file donate.gmi available
    160 2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle
    161 3. Tabbing inside src block removes RESULT block
    162 
    163 #+begin_src bash :results raw :wrap src html \:tangle html/donate.html
    164 
    165 cat donate.gmi | gmi2html
    166 
    167 #+end_src
    168 
    169 #+RESULTS:
    170 #+begin_src html :tangle html/donate.html
    171 <h1>Crypto</h1>
    172 <p><br/></p>
    173 <h3>Monero</h3>
    174 <ul>
    175 <li>XMR: 4AqZR9mNJ3aTaAqhG7a6RoSZUQSsWPsSoN5GnHSMGrDXS54VnLtJkjsFpsBfn6jacjA42FELwasK6TLFrNVePWivVMgzh8i</li>
    176 </ul>
    177 <p><br/></p>
    178 <h3>Bitcoin</h3>
    179 <ul>
    180 <li>BTC: 1L8fwzF4rUs1wc453RhKHDpCC9S3FvFySC</li>
    181 </ul>
    182 <p><br/></p>
    183 <h3>Ethereum</h3>
    184 <ul>
    185 <li>ETH: 0x927Ce74140713F116f457707bEA79a13B5E3e402</li>
    186 </ul>
    187 <p><br/></p>
    188 <h3>LBRY Credits</h3>
    189 <ul>
    190 <li>LBC: bF81SN4eTv8Dwe6gceXo2KFJnmgagmgfDE</li>
    191 </ul>
    192 <p><br/></p>
    193 <h3>Litecoin</h3>
    194 <ul>
    195 <li>LTC: LUcsxrPxts6B5ULrEQuRgSjw3QvyJr72nR</li>
    196 </ul>
    197 <p><br/></p>
    198 <h3>Bitcoin Cash</h3>
    199 <ul>
    200 <li>BCH: 1GzzvT6WscYp88SeRUu7dhu4a4diiCt74v</li>
    201 </ul>
    202 <p><br/></p>
    203 <h3>Ethereum Classic</h3>
    204 <ul>
    205 <li>ETC: 0x784684E3aE290DFC3Cdd5c3f1B9a7f28C9fD0D7d</li>
    206 </ul>
    207 <p><br/></p>
    208 <h3>Dash</h3>
    209 <ul>
    210 <li>DASH: Xgprtj7t5En3YrTkycK2bVVicWu5H9zb3t</li>
    211 #+end_src
    212 
    213 
    214 * referral.gmi
    215 
    216 ** Gemini
    217 
    218 #+begin_src :tangle yes :tangle referral.gmi
    219 # Referral links
    220 
    221 ## Crypto.com
    222 => https://platinum.crypto.com/r/wuwdu28495
    223 When asked, enter referral code: wuwdu28495
    224 
    225 ## Linode
    226 VPS and other cloud services, this page is hosted on Linode for $5/month
    227 => https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e
    228 
    229 ## Odysee on LBRY protocol
    230 => https://odysse.com/$/invite/@Parklivspodden:7
    231 #+end_src
    232 
    233 ** HTML
    234 
    235 *** HTML header and stylesheet tangle
    236 
    237 + Add CSS stylesheet
    238 + Add title
    239 
    240 #+begin_src html :tangle html/referral.html
    241 <head>
    242   <link rel="stylesheet" href="http://andersuno.nu/style.css" type="text/css" media="screen" />
    243   <title>andersuno.nu</title>
    244 </head>
    245 #+end_src
    246 *** Generate tangle block with HTML body from donate.gmi
    247 
    248 1. Start by tangling once to make updated source file referral.gmi available
    249 2. Then evaluate this src block and remove "\" before ":tangle" in results to include in the next tangle
    250 3. Tabbing inside src block removes RESULT block
    251 
    252 #+begin_src bash :results raw :wrap src html \:tangle html/referral.html
    253 
    254 cat referral.gmi | gmi2html
    255 
    256 #+end_src
    257 
    258 #+RESULTS:
    259 #+begin_src html :tangle html/referral.html
    260 <h1>Referral links</h1>
    261 <p><br/></p>
    262 <h2>Crypto.com</h2>
    263 <a style="display: block;" href="https://platinum.crypto.com/r/wuwdu28495">https://platinum.crypto.com/r/wuwdu28495</a>
    264 <p>When asked, enter referral code: wuwdu28495</p>
    265 <p><br/></p>
    266 <h2>Linode</h2>
    267 <p>VPS and other cloud services, this page is hosted on Linode for $5/month</p>
    268 <a style="display: block;" href="https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e">https://www.linode.com/?r=0a6848992ce7e855b1d6ba205ffe3d9e8d9d2c1e</a>
    269 <p><br/></p>
    270 <h2>Odysee on LBRY protocol</h2>
    271 <a style="display: block;" href="https://odysse.com/$/invite/@Parklivspodden:7">https://odysse.com/$/invite/@Parklivspodden:7</a>
    272 #+end_src