Skip to content

Instantly share code, notes, and snippets.

View IzzleNizzle's full-sized avatar
🏃
My course is set to incline

Isaac IzzleNizzle

🏃
My course is set to incline
View GitHub Profile
@IzzleNizzle
IzzleNizzle / README.md
Created January 15, 2024 23:19
Postgres + Docker Compose - Initialization scripts Demonstration

Postgres + Docker Compose - Initialization scripts Demonstration

This demonstration shows both .sql and .sh files being used to initialize a database programatically. The commands used in the .sh are not important, but they demonstrate the type of commands you might add to that file. The .sql file shows some simple commands you might use to stand up your postgres db.

I've attached a pgadmin4 container to the compose stack. This is just for ease of use, it connects to the postgres db and displays a lot of useful information quickly. Feel free to remove if not wanted.

Assumptions

I've gone ahead and declared these important variables:

@IzzleNizzle
IzzleNizzle / uptime-kuma-docker-compose-file.yml
Last active January 1, 2024 11:25
Uptime Kuma Docker Compose File
version: '3'
services:
uptime-kuma:
image: louislam/uptime-kuma:1.23.2
restart: always
ports:
- 3001:3001
volumes:
- uptime-kuma:/app/data
@IzzleNizzle
IzzleNizzle / XC Tasks Syntax Example.md
Last active May 15, 2023 23:50
XC Tasks Syntax Example - XC Tasks Github Repository: https://github.com/joerdav/xc

Tasks

main-build-push-test-env

Builds,tags,pushes to remote Requires: build-test-image, tag-test-image-remote, push-test-image-remote, caprover-deploy-test

build-test-image

Build Docker Image

@IzzleNizzle
IzzleNizzle / a-websockets-socket-io-react-example.js
Created April 26, 2023 00:01
This example demonstrates how to create a simple web application using WebSockets (Socket.io NPM Package) to establish real-time communication between a server and a client, allowing messages to be sent and received in real-time.
import rainbowColorsMap from './rainbowColorsMap';
import FancyButton from './FancyButton';
import { io } from 'socket.io-client';
let socket = io({
secure: true,
});
if (window.location.host.split(':')[0] === 'localhost') {
socket = io('http://localhost:3009');
@IzzleNizzle
IzzleNizzle / a-websockets-react-example.js
Last active April 25, 2023 23:58
This example demonstrates how to create a React web application that uses WebSockets to establish real-time communication between a server and a client, allowing messages to be sent and received in real-time.
import rainbowColorsMap from './rainbowColorsMap';
import FancyButton from './fancyButton';
let wsUrl = `wss://${window.location.host}/websocket`;
window.location.host.split(':')[0] === 'localhost' && (wsUrl = `ws://localhost:8082`);
const ws = new WebSocket(wsUrl);
function App() {
ws.onmessage = async function (event) {
@IzzleNizzle
IzzleNizzle / a-websockets-simple-example.html
Last active April 25, 2023 23:50
This example demonstrates how to create a simple web application using WebSockets to establish real-time communication between a server and a client, allowing messages to be sent and received in real-time.
<!doctype html>
<html>
<head>
<title>WebSocket Test</title>
</head>
<body>
<div>
<button id="button1">Button 1</button>
<button id="button2">Button 2</button>
</div>
@IzzleNizzle
IzzleNizzle / Why Readme?.md
Created January 14, 2023 16:01
A good Readme can make a great first impression. Here's a quick starter template Readme

Here is a sweet README.md template file I created for a bootcamp I work with.

This is a great starting point to your README. Readme’s are important because people don’t always have time to open and test your projects. This is a quick insight into what you can do and how it looks. It can be used to make a quick strong impression.

When I interviewed at my current company they were really impressed with my project and they knew about it because I had a link to the project on my resume and my github repo had a good Readme file.

Here is the full repo if you wanna see how it looks. It’s not overly special, but it made a difference when I was interviewing!

https://github.com/IzzleNizzle/ReadoutAssistant