- Download Raspberry PI Imager from the official website
- Install OS on SD card (Tip: Ctrl + Shift + X on windows to show SSH setup configuration)
- Connect Raspberry PI to router via ethernet and power up
- Find Raspberry PI IP address on network
- Login to Raspberry PI using ssh
- Run
sudo apt update && sudo apt upgrade
to install latest updates - Run
sudo nano /etc/dhcpcd.conf
and update the configuration at the end of the file to reserve a static IP address for the Raspberry PI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo find / -type f -size +10M -exec ls -lh {} \; | |
sudo journalctl --vacuum-time=7d | |
sudo apt-get clean | |
sudo apt-get autoclean | |
npm cache clean --force && npm cache verify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -x509 -newkey rsa:2048 -keyout certificates/localhost.key -out certificates/localhost.crt -sha256 -days 365 -nodes -subj '/CN=localhost' -addext subjectAltName=DNS:localhost,IP:127.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
<title>Switch input</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.tooltip { | |
--tooltip-bg-color: hsl(210deg, 10%, 10%); | |
--tooltip-text-color: hsl(210deg, 10%, 90%); | |
position: relative; | |
} | |
.tooltip:before, .tooltip:after { | |
transition: visibility 0.2s; | |
visibility: hidden; | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* :::::::::::::: Presentation css */ | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
--locked-color: hsl(210deg, 10%, 30%); | |
--unlocked-color: hsl(210deg, 10%, 40%); | |
} | |
.container { | |
display: flex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Action { | |
public $type; | |
public $payload; | |
public function __construct(string $_type, $_payload = NULL) { | |
$this->type = $_type; | |
$this->payload = $_payload; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@synth (adsr (osc tri) 0.01 8n 0.2 1n) | |
play @synth (notes [b3 e4 f4]) (rhythm [4n]) | |
@drums (drums) + (gain 2) | |
play @drums (notes [1 5]) (rhythm [2n]) | |
play @drums(notes [7 6]) (rhythm [4n 8n]) | |
play @drums(notes [6 7]) (rhythm [4n 8t 1n]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drawRect(width, height, chars) { | |
if (typeof chars === "string") { | |
chars = { verticalEdge: chars, horizontalEdge: chars, vertex: chars }; | |
} | |
chars = Object.assign( | |
{ | |
verticalEdge: "|", | |
horizontalEdge: "-", | |
vertex: "+" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (global, factory) { | |
global.vectron = factory(); | |
console.log('%cvectron loaded successfully', 'color:crimson'); | |
})(this, function() { | |
'use strict'; | |
/** | |
* @typedef Vector | |
* @property {Number} x - X value | |
* @property {Number} y - Y value | |
*/ |
NewerOlder