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 / README.md
Created November 14, 2022 03:22 — forked from mrkpatchaa/README.md
Bulk delete github repos

Use this trick to bulk delete your old repos or old forks

(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)

  1. Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories

  2. Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.

  3. Save that list to some path

  4. The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.

@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 / 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.

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 / 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 / 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