Skip to content

Instantly share code, notes, and snippets.

View LarsGKodehode's full-sized avatar

Lars G LarsGKodehode

  • Jobloop
  • Norway, Bergen
View GitHub Profile

Raspberry Pi setup

This guide outlines the basic steps for setting up a headless Raspberry Pi for remote access. It covers initial setup, local network connection via DNS, and external access through Dynamic DNS. For detailed instructions, refer to the linked external resources.

Content

# ~/.config/starship.toml
add_newline = false
command_timeout = 1000
format = """$os$username$hostname$kubernetes$directory$git_branch$git_status"""
# Drop ugly default prompt characters
[character]
success_symbol = ''
@LarsGKodehode
LarsGKodehode / web-project-directory-structure.md
Last active November 21, 2023 21:39
A set of example for how to structure your web site/app projects
@LarsGKodehode
LarsGKodehode / chat.md
Last active May 2, 2023 11:42
ChatGPT chat about introduction to Behavior Driven Development

Prompt: Give a short summary of what Behavior Driven Development includes

Response:

Behavior Driven Development (BDD) is an Agile software development methodology that emphasizes collaboration between developers, testers, and business stakeholders in order to produce software that meets the needs of the business. It focuses on describing the behavior of the system through user stories, which are written in a specific format called Gherkin. BDD also involves the use of automated tests, which are written to verify that the system behaves as expected based on the user stories. The goal of BDD is to ensure that the software being developed is aligned with the business requirements and that it is tested thoroughly to prevent defects and ensure quality.

Prompt: How does BDD compares to Test Driven Development?

Response:

Behavior Driven Development (BDD) and Test Driven Development (TDD) are both Agile software development methodologies that emphasize collaboration, testing, and quality. However,

@LarsGKodehode
LarsGKodehode / README.md
Last active March 8, 2023 12:39
HTML & CSS basics

Basic HTML & CSS -A really short example

@LarsGKodehode
LarsGKodehode / signed-commits.md
Last active March 11, 2023 13:57
Steps for setting up Git and GitHub with signed commits

Commit Signature

Git

  1. Get the Username and Email Git is configured with, this is what you will be using
git config --list
  1. Generate key and configure
@LarsGKodehode
LarsGKodehode / README.md
Last active March 31, 2023 08:32
Showcase using npx to run external scripts.

Externally hosted Node Script

A simple example for how to use npx to run scripts from an external source. Link to documentation

@LarsGKodehode
LarsGKodehode / nodejs.md
Last active February 27, 2023 11:31
Installation instruction for NodeJS

Introduction to NodeJS
- The JavaScript Runtime Enviroment

Node what?

NodeJS is a runtime enviroment for JavaScript. Enabling you to execute JavaScript files locally, without having to start up a browser. It follows a tight release schedule. Due to that I recommend using a version manager, nvm, for managing the installation and updating of node,

Installation

@LarsGKodehode
LarsGKodehode / structure-react-spa.md
Last active February 27, 2023 10:04
Folder structure for a React SPA project

Files and folders
- React SPA project

Info

Showcasing file and folder structure for a React SPA project. Capitalization is not required, but consistency is.

Links

@LarsGKodehode
LarsGKodehode / cra-deploy-gh-pages.md
Created February 22, 2023 12:08
Steps for deploying a Create React App to GitHub pages.

Deploy a App to GitHub Pages
- Step by Step

First Deployment

These assumes you have a locally application up and going and .

  1. Ensure your application is buildable, if not fix errors
npm run build