Skip to content

Instantly share code, notes, and snippets.

View Mqxx's full-sized avatar
:atom:
Always remember

Mqx Mqxx

:atom:
Always remember
  • Loat.dev
  • Somewhere in Germany
View GitHub Profile
@zoilomora
zoilomora / README.md
Last active September 27, 2024 21:00
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@fnky
fnky / ANSI.md
Last active October 15, 2024 03:29
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active October 13, 2024 01:16
Hyperlinks in Terminal Emulators
@jjgrainger
jjgrainger / Vector.js
Last active July 29, 2024 11:18
A simple Vector class in javascript
var Vector = function(x, y) {
this.x = x || 0;
this.y = y || 0;
};
// return the angle of the vector in radians
Vector.prototype.getDirection = function() {
return Math.atan2(this.y, this.x);
};