Skip to content

Instantly share code, notes, and snippets.

View Ragdata's full-sized avatar
:octocat:
Preparing ...

Ragdata Ragdata

:octocat:
Preparing ...
View GitHub Profile
@Ragdata
Ragdata / questions.md
Last active October 26, 2023 19:21
Interview Questions to Ask Prospective Employers as a Software Developer

❓ Interview Questions to Ask Prospective Employers as a Software Developer ❓

I've been a part of this industry at a professional level for more than two decades now, and in that time I've worked for some AMAZING companies ... and a couple of appalling ones as well. All of that experience helped me to realise the FIRST LAW OF PROFESSIONAL SOFTWARE ENGINEERING:

... The quality of your work is ultimately dictated by your employer ...

When you're being paid well, respected, and are made to feel secure because of the company's loyalty towards you, you'll rarely think twice before putting in that little extra bit of effort into your work. Conversely, when you're being paid less than you're worth, your supervisor or boss is an absolute PRICK, and you feel sick merely at the thought of having to drag your ass into the office tomorrow ... well ... the company pretty much deserves the shitty performance you can barely manage to put in each day for them.

Since the **SECOND LAW

@Ragdata
Ragdata / docker-desktop.md
Last active August 17, 2023 10:07
Install Docker Desktop on Windows 11

Install Docker Desktop on Windows 11

The following WSL configuration changes are purely optional, but can help to save a little more space on your system drive.

/etc/wsl.conf (per instance config)

@Ragdata
Ragdata / docker-WSL2.md
Last active May 5, 2023 04:55
Docker in Windows 11 using WSL2

Setup Docker to run on Windows 11 & Ubuntu WSL2 AND still be able to use Docker Desktop to monitor the lot!!

The goal here is to set up a container cluster using WSL2, Ubuntu Linux, and other Open Source packages. The secondary goal being to be able to use it from both Linux and Windows AND to be able to still use Docker Desktop under either Windows or Linux to manage things.

To do so, we need to setup WSL2, Ubuntu, dockerd and containterd, then build docker-cli for Windows and finally wire them all together so they can talk to each other.

Prerequisites

First you need to set up Windows so that you can use virtualised containers, as well as WSL2. Type the following in a terminal:

Install Multiple Instances of WSL2 Linux on Windows 11

Here's an easy method which allows you to install multiple instances of any Linux Distro in any location under WSL2.

** Click on each heading to reveal instructions **

If you HAVEN'T installed WSL2 prior to this, open up a Powershell terminal and execute the following commands:

@Ragdata
Ragdata / systemd-wsl.md
Last active March 3, 2023 18:56
Enable systemd on WSL2 (Windows 10 & 11)

Enable systemd on WSL2 (Windows 11)

WSL now includes support for running systemd inside your WSL distros. Here's how to set it up:

Ensure you are running the right version of WSL

To set this up, you need to be running WSL version 0.67.6 or higher. You can check your WSL version by running this command under PowerShell or Command Prompt:

wsl --version
@Ragdata
Ragdata / swap
Last active January 7, 2023 00:05
Shell script to help manage swap space - cp to /usr/bin and chmod +x
#!/bin/sh
CMD=$1
SIZE=$2
create()
{
if [ -z $SIZE ]; then
swapsize=1024
else
@Ragdata
Ragdata / git-bulk-delete.md
Created November 14, 2022 05:17
Bulk Delete Old Github Repos & Forks

Bulk Delete Old Github Repos & Forks

(Inspired by the resources listed at the bottom of this Gist)

Deleting old repos in bulk is quite easy if you've got a WSL instance at hand.

Step 1 - Create Your Hitlist

Open a text editor, and list each repository you want to delete in the form of userName\repoName with one per line.

@Ragdata
Ragdata / commit-template
Last active November 14, 2022 04:01
Git commit template
# A properly formed Git commit subject line should always be able to complete
# the following sentence:
# * If applied, this commit <will your subject line here>
#
# ** Example:
# [type](optional scope): [subject]
#
# [optional body]
#
# [optional footer]