Add to Club Git
BIN
PC_9800.8a864a7e573a143f.woff2
Normal file
BIN
PC_9800.991eb4f8311297a3.woff
Normal file
BIN
PxPlus_IBM_VGA8.4c8d5aeba5d418be.woff
Normal file
BIN
PxPlus_IBM_VGA8.7a1f0cae01819672.ttf
Normal file
BIN
assets/avatar.jpeg
Normal file
After Width: | Height: | Size: 164 KiB |
12
assets/posts/archive.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{
|
||||
"postTitle": "Starting a simple bash script on Raspbian/RaspiOS is hell...",
|
||||
"timestamp": "1672336950",
|
||||
"filename": "auto-starting-a-simple-bash-script-on-raspbian"
|
||||
},
|
||||
{
|
||||
"postTitle": "Hello World!",
|
||||
"timestamp": "1654062776",
|
||||
"filename": "hello-world"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"postTitle": "Auto-starting a simple bash script on Raspbian/RaspiOS is hell... ",
|
||||
"timestamp": "1672336950",
|
||||
"postContent": "(Old post, reposted from my old blog.)\n\nSo, it's 00:12 here. I was (still am) setting up my brand new RPi4, the shiny 8GB version to replace my old cranky RPi3b. New hardware, same hell as always with Raspbian (or RaspiOS or Raspberry Pi OS or however the hell they call it these days). \n\nI run on it some apps I use on my local network (basically my fancy app hub) and one of these apps is a Node.js API. Usually one would say “oh that's simple use PM2 and that's it!” but for some god forsaken reason it didn't work on me. \n\nI had just finished configuring Nextcloud and Gitea (and that went fine, as you can define the word…) and went to bring back up my Node API. As mentioned PM2 didn't work, so I went the classic way of having LXDE start a terminal and run a bash script with the commands needed. \n\nNo biggie, right? No. \n\nThe documentation for the RPi is… Well, fiddly. If you can call it that. I absolutely despise the crazy mish-mash of things you have on the internet regarding Raspbian/RaspiOS (starting by the friggin' name change!) because you simply can't easily find what works or doesn't with newer versions. \n\nSo this blog post is both a reminder to ME and a tutorial to you, fellow internet traveler that ever happens to stumble across it if you need to do the same thing. \n\n# HOW TO START A TERMINAL AND LAUNCH A BASH SCRIPT ON THE RASPBERRY PI OS: THE F*CKING TUTORIAL \n\n1. Boot your Pi to the GUI, not command line, obviously. \n\n2. Write your script and test it on the terminal (and for fuck's sake remember that the FIRST LINE should always be #!/bin/bash). \n\n3. Save your script in an easy path to access (such as /home/pi) and with the .sh extension. \n\n4. Open a terminal and run: sudo chmod +x /home/pi/your_script.sh \n\n5. Open an text editor with the sudo command (any you prefer, but IT NEEDS TO BE AS ROOT). \n\n6. Navigate to /etc/xdg/lxsession/LXDE-pi \n\n7. Open the file called autostart \n\n8. BEFORE THE LINE THAT STARTS WITH @XSCREENSAVER add a new line: @lxterminal --command \"/home/pi/your_script.sh\" (Why before @xscreensaver? Who knows. Do after it and you'll never see it execute.) \n\n9. DO FUCKING NOT put a . (dot) before the path, and INCLUDE THE DOUBLE QUOTES IN THE PATH. \n\n10. That's it. \n\nBeware that if your script does something (like launching a node app that auto-closes) and then closes after (or the app crashes…), you may want to add something like a sleep or pause command, if you want to see it running or its output. \n\nPS: I know the tone of the text is “violent”, this is literally how I write notes to myself so I can remember things. (Why? Because I'm a dumbass.) \nI usually don't share these, but considering the hellish experience I had with the PiOS (both on my 3 and 4), I wanted to share it at least so I have a permanent archive on the internet with it. \n\nHope it was helpful to someone out there. \n\nI gathered all content/commands from here: [https://www.raspberrypi.org/forums/viewtopic.php?t=65607](https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=65607)",
|
||||
"filename": "auto-starting-a-simple-bash-script-on-raspbian",
|
||||
"draft": false
|
||||
}
|
8
assets/posts/hello-world.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"postTitle": "Hello World!",
|
||||
"timestamp": "1654062776",
|
||||
"editedTimestamp": "",
|
||||
"postContent": "Welcome to my humble blog! This blog is hosted using a blog platform loosely based on my [ngx-dumblog](http:\/\/github.com\/pedroCX486\/ngx-dumblog) project. My intent is to make this look more and more retro with time.\r\n \r\nAnd before you ask, it's availabe [here](http:\/\/git.pedrocx486.club\/pedrocx486\/ngx-retroblog).\r\n \r\nFor more info (maybe), check [The Club](https:\/\/pedrocx486.club)!",
|
||||
"filename": "hello-world",
|
||||
"draft": false
|
||||
}
|
15
assets/settings.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"blogTitle": "pedrocx486@blog",
|
||||
"avatar": "avatar.jpeg",
|
||||
"username": "pedrocx486",
|
||||
"bio": "code tinkerer, seeker of the meaningless meaning, 3d printing evangelist, probably a lil' bit crazy",
|
||||
"twitter": "",
|
||||
"mastodon": "http://mstdn.pedrocx486.club/@pedrocx486",
|
||||
"instagram": "",
|
||||
"youtube": "",
|
||||
"maxPosts": 5,
|
||||
"customUrl": {
|
||||
"title": "The Club",
|
||||
"url": "https://pedrocx486.club/"
|
||||
}
|
||||
}
|
BIN
assets/social/facebook.png
Normal file
After Width: | Height: | Size: 517 B |
BIN
assets/social/instagram.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/social/linkedin.png
Normal file
After Width: | Height: | Size: 488 B |
BIN
assets/social/mastodon.png
Normal file
After Width: | Height: | Size: 3 KiB |
BIN
assets/social/twitter.png
Normal file
After Width: | Height: | Size: 956 B |
BIN
assets/social/youtube.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
137
editor/assets/index.4d0e6c12.js
Normal file
1
editor/assets/index.d2322268.css
Normal file
|
@ -0,0 +1 @@
|
|||
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}button{cursor:pointer;transition:all .3s ease-in-out;text-decoration:none;padding:.6rem;border:none;box-shadow:#000a 4px 4px}.btn-primary{background-color:#6100a2;color:#fff;font-size:.8rem}.btn-primary:hover{box-shadow:0 0 7px #6100a2}.wrapper{display:flex;grid-gap:1rem;flex-direction:row;justify-content:center;width:100%;height:85vh;position:relative}.editor-area{text-align:left;flex:1}.title-area{display:flex}.title{flex:1}.editor{resize:none;width:-webkit-fill-available;height:90%}.preview{max-width:50vw;flex:1;border:1px solid #969696;max-height:96.8%;overflow-y:auto}.preview-title{margin-top:0}.preview>*{max-width:50vw;line-break:normal}@media only screen and (hover: none){.wrapper{flex-direction:column}.preview{max-width:100vw;margin-top:1rem}}
|
BIN
editor/favicon.ico
Normal file
After Width: | Height: | Size: 104 KiB |
15
editor/index.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ngx-retroblog editor</title>
|
||||
<script type="module" crossorigin src="./assets/index.4d0e6c12.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.d2322268.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 104 KiB |
14
index.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html><html lang="en"><head>
|
||||
<meta charset="utf-8">
|
||||
<title>...</title>
|
||||
<base href="/blog/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<style>@font-face{font-family:pxplus_ibm_vga8regular;src:url(PxPlus_IBM_VGA8.4c8d5aeba5d418be.woff) format("woff"),url(PxPlus_IBM_VGA8.7a1f0cae01819672.ttf) format("truetype");font-weight:400}body{line-height:1.2;font-family:pxplus_ibm_vga8regular;margin-left:.5em;margin-right:.5em;background-color:#444}</style><link rel="stylesheet" href="styles.9c7393dd55e2b0af.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.9c7393dd55e2b0af.css"></noscript></head>
|
||||
<body>
|
||||
<noscript>Hey, any chance you could turn JS on? This blog runs on Angular. But you ain't missing anything so... Your choice. Cheers!</noscript>
|
||||
<app-root></app-root>
|
||||
<script src="runtime.35cddbf7d6fa3ac4.js" type="module"></script><script src="polyfills.b1c3e5a139815655.js" type="module"></script><script src="main.b2adc02a31bb8bed.js" type="module"></script>
|
||||
|
||||
|
||||
</body></html><!-- There is fuck. -->
|
1
main.b2adc02a31bb8bed.js
Normal file
BIN
pc-9800.d296e1227a71a911.ttf
Normal file
1
polyfills.b1c3e5a139815655.js
Normal file
1
runtime.35cddbf7d6fa3ac4.js
Normal file
|
@ -0,0 +1 @@
|
|||
(()=>{"use strict";var e,_={},b={};function n(e){var a=b[e];if(void 0!==a)return a.exports;var r=b[e]={exports:{}};return _[e].call(r.exports,r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,o,t)=>{if(!r){var c=1/0;for(l=0;l<e.length;l++){for(var[r,o,t]=e[l],s=!0,f=0;f<r.length;f++)(!1&t||c>=t)&&Object.keys(n.O).every(h=>n.O[h](r[f]))?r.splice(f--,1):(s=!1,t<c&&(c=t));if(s){e.splice(l--,1);var u=o();void 0!==u&&(a=u)}}return a}t=t||0;for(var l=e.length;l>0&&e[l-1][2]>t;l--)e[l]=e[l-1];e[l]=[r,o,t]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=o=>0===e[o];var a=(o,t)=>{var f,u,[l,c,s]=t,v=0;if(l.some(d=>0!==e[d])){for(f in c)n.o(c,f)&&(n.m[f]=c[f]);if(s)var p=s(n)}for(o&&o(t);v<l.length;v++)n.o(e,u=l[v])&&e[u]&&e[u][0](),e[u]=0;return n.O(p)},r=self.webpackChunkngx_retroblog=self.webpackChunkngx_retroblog||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
|
1
styles.9c7393dd55e2b0af.css
Normal file
|
@ -0,0 +1 @@
|
|||
button{cursor:pointer;transition:all .3s ease-in-out;text-decoration:none;padding:.6rem;border:none;box-shadow:#000a 4px 4px;font-family:pxplus_ibm_vga8regular}.btn-fat{padding:.7rem!important}.btn-primary{background-color:#6100a2;color:#fff;font-size:1rem}.btn-primary:hover{box-shadow:0 0 7px #6100a2}.btn-secondary{background-color:#00d199;color:#444;font-size:1rem}.btn-secondary:hover{box-shadow:0 0 7px #00d199}.btn-tertiary{background-color:#17a2b8;color:#fff;font-size:1rem}.btn-tertiary:hover{box-shadow:0 0 7px #17a2b8}.btn-action{background-color:#00905e;color:#fff;font-size:1rem}.btn-action:hover{box-shadow:0 0 7px #00905e}.card{border:none;box-shadow:#000a 4px 4px}.card-header{border-bottom:none;background-color:#6100a2;padding:1rem;margin-bottom:0}.title{color:#00ffea!important;text-decoration:none;font-size:1.5rem;font-weight:500;font-family:pc98}.timestamp{color:#b5b5b5;font-size:12px;font-family:pc98}.card-body{padding:1rem;background-color:#2e2e2e;margin-top:-10px;color:#bbb}::placeholder{color:#d0d0d0;opacity:1}input[type=text]{padding:10px;border:1px solid #8a8a8a;resize:vertical;min-width:5%;background-color:transparent;color:#fff;font-size:15px;box-shadow:#000a 4px 4px;font-family:pxplus_ibm_vga8regular}.list-group{padding:2rem}.list-item{padding:1rem;border:#585858 solid 1px;background-color:#2e2e2e;margin-top:.5rem;box-shadow:#000a 4px 4px}.list-item:hover{background-color:#34273e;cursor:pointer}.placard{background-color:#6100a2;text-align:center;padding:2rem;margin:2rem;font-weight:200;font-size:1.25rem;color:#fff;box-shadow:#000a 4px 4px}.placard-title{font-weight:200;font-size:3.5rem}.margins{margin:1rem}.margins-sides{width:40%;margin:0 auto}.margin-top{margin-top:.5rem!important}.margin-y{margin-top:2rem;margin-bottom:3rem}.text-center{text-align:center}@font-face{font-family:pxplus_ibm_vga8regular;src:url(PxPlus_IBM_VGA8.4c8d5aeba5d418be.woff) format("woff"),url(PxPlus_IBM_VGA8.7a1f0cae01819672.ttf) format("truetype");font-weight:400}@font-face{font-family:pc98;src:url(PC_9800.8a864a7e573a143f.woff2) format("woff2"),url(PC_9800.991eb4f8311297a3.woff) format("woff"),url(pc-9800.d296e1227a71a911.ttf) format("truetype");font-weight:400;font-style:normal}body{line-height:1.2;font-family:pxplus_ibm_vga8regular;margin-left:.5em;margin-right:.5em;background-color:#444}a{color:#00ffea;text-decoration:none}a:visited{color:#00905e;text-decoration:none}
|