Skip to content

Instantly share code, notes, and snippets.

View mrcrilly's full-sized avatar

Michael Crilly mrcrilly

View GitHub Profile
@mrcrilly
mrcrilly / main.py
Created September 27, 2024 06:58
main.py
$ cat main.py
def captured(wolf_distance, wolf_speed, ct, cs):
wt = wolf_distance/wolf_speed
ct = ct/cs
if wt < ct:
return 1
return 0
def main():
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define MAX_TOKENS 1000
#define MAX_TOKEN_LENGTH 100
typedef enum {
TOKEN_IDENTIFIER,
@mrcrilly
mrcrilly / occulta_navis_alpha_heron.eft
Created April 22, 2024 11:38
EVE Online Heron Alpha Fit for Exploration
[Heron, Heron ON Alpha Scout/Explorer]
Type-D Restrained Inertial Stabilizers
Type-D Restrained Inertial Stabilizers
5MN Microwarpdrive I
Relic Analyzer I
Data Analyzer I
Cargo Scanner I
[Empty Med slot]
@mrcrilly
mrcrilly / example.html.j2
Last active December 14, 2023 23:25
Basic Pythn/Flask/Jinja2 for-loop
# templates/product.html
# change the HTML to suit your needs
<h1>{{ product.name }}</h1>
<p>{{ product.description }}</p>
<p>Price: ${{ product.price }}</p>
@mrcrilly
mrcrilly / test.py
Created December 7, 2023 10:46
Testing
def main():
print("Hello, world!")
main()
@mrcrilly
mrcrilly / solution.md
Last active September 24, 2024 07:19
libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed

This is a small guide on resolving an issue I was having that prevented me from installing libc6-dev. The issue I was having was as such:

libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed

The libc6-dev package wants to install version 2.35-0ubuntu3, which is (very slightly) "older" than the libc6 package I have installed at version 2.35-0ubuntu3.1 (notice the .1). This basically prevents me from installing libc6-dev which in turn prevents me from installing build-essential. You need build-essential to do a lot of development work, such as compiling C code.

Here is the process I went through, from discovering the problem to solving it, but let's start with the solution straight up.

@mrcrilly
mrcrilly / SFE.md
Last active February 23, 2024 01:14
Simple First Engineering

Always Start Simple (ASS)

This is why I'm grumpy and sulking in the (metaverse) corner:

  1. Businesses solve problems via solutions they sell on the open market
  2. When it's a software based solution, it's really easy to get things right
  3. Everything is simple, however everyone overcomplicates it
  4. It's entirely possible businesses choose certain technology stacks because they feel that by not choosing them they're unable to attract the latest and greatest talent
  5. And the labour market also feels that by not choosing to learn and understand the latest and greatest technologies, they become unhirable
@mrcrilly
mrcrilly / errors.txt
Created March 20, 2023 04:35
Gayan's TF
$ terraform init
Initializing the backend...
There are some problems with the configuration, described below.
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
│ Error: Duplicate resource "aws_lb_target_group" configuration
@mrcrilly
mrcrilly / map.md
Created January 17, 2023 23:19
Roadmap

Basics

  1. Hardware Basics
  2. Operating Systems
  3. Networking
  4. Virtualisation
  5. System Administration
  6. Database Basics
  7. Cloud Computing
  8. Capstone Project (WordPress)
@mrcrilly
mrcrilly / worldserver.conf
Last active November 6, 2022 04:34
AzerothCore worldserver.conf settings
[worldserver]
# How often the world server saves the player's state.
# Set to 5 minutes (default is 15 minutes) as small servers don't
# have sufficient load to worry about DB writes.
PlayerSaveInterval = 300000
# Allows people to mount indoors (and use other outdoor-only.)
# I feel this is just better for the player's mobility and