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 / 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 / startup.md
Last active July 26, 2020 07:34
Quick Access to Windows 10 Startup Folder
  1. Right-click on Windows Start Menu
  2. Left-click on "Run"
  3. Type shell:startup
@Ragdata
Ragdata / bash_remote.sh
Created February 22, 2021 13:45
Execute a single file from a Github Repo remotely in a single command line
wget -O - https://raw.githubusercontent.com/<username>/<project>/<branch>/<path>/<file> | bash
@Ragdata
Ragdata / gist:6a38d26e4bcfb258881e9587de6f068f
Last active August 19, 2022 06:32 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

Col1 Col2 Col3
:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
@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]

Keybase proof

I hereby claim:

  • I am ragdata on github.
  • I am ragdata (https://keybase.io/ragdata) on keybase.
  • I have a public key ASD9nDDBoPtqYSnoKcOtLR7tesp5qgiyDAuQG1HEHHokmwo

To claim this, I am signing this object:

@Ragdata
Ragdata / unicode-emojis.md
Last active November 11, 2021 23:50
Unicode-based emojis which should also work at Github

©️ Copyright Sign

®️ Registered Sign

‼️ Double Exclamation Mark

⁉️ Exclamation Question Mark

™️ Trade Mark Sign

@Ragdata
Ragdata / docker-api.json
Created November 16, 2021 23:19
Docker JSON API
{
"source": "mockoon:1.15.0",
"data": [
{
"type": "environment",
"item": {
"uuid": "",
"lastMigration": 17,
"name": "Docker Engine API",
"endpointPrefix": "1.33",
@Ragdata
Ragdata / win-symlinks.md
Last active November 4, 2022 22:58
Creating Symbolic Links (Symlinks) on Windows 10 & Windows 11
@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: