Skip to content

Instantly share code, notes, and snippets.

View hiukky's full-sized avatar
🏝️
~ vacation, back soon!

R o m u l l o hiukky

🏝️
~ vacation, back soon!
View GitHub Profile
@hiukky
hiukky / renew-gpgkey.md
Created January 19, 2021 17:31 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@hiukky
hiukky / primitive-reference-types-javascript.md
Created February 5, 2021 19:53 — forked from branneman/primitive-reference-types-javascript.md
Primitive Types & Reference Types in JavaScript

Primitive Types & Reference Types in JavaScript

An explanation of JavaScript's pass-by-value, which is unlike pass-by-reference from other languages.

Facts

  • JavaScript has 2 kinds of variable types: primitive and reference.
  • A fixed amount of memory is reserved after creation of every variable.
  • When a variable is copied, it's in-memory value is copied.
  • Passing a variable to a function via a call also creates a copy of that variable.

Primitive Types

@hiukky
hiukky / arch_installation.md
Created May 15, 2021 20:05 — forked from eltonvs/arch_installation.md
Arch Linux step to step installation guide

Arch Linux Installation Guide

This guide will show step-by-step how to Install Arch Linux on UEFI mode.

Table of Contents

  • Bootable Flash Drive
  • BIOS
  • Pre installation
    • Set Keyboard Layout
    • Check boot mode
  • Update System Clock
@hiukky
hiukky / mixin.ts
Created July 14, 2021 21:02 — forked from basarat/mixin.ts
export type Class = new (...args: any[]) => any;
export function DisposableMixin<Base extends Class>(base: Base) {
return class extends base {
isDisposed: boolean = false;
dispose() {
this.isDisposed = true;
}
};
}
@hiukky
hiukky / README.md
Created June 1, 2022 19:14 — forked from danieldietrich/README.md
The easiest way to bundle a simple TypeScript web application

The easiest way to bundle a simple TypeScript web application

Packaging JavaScript applications can be a bit overwhelming. The popular project uglifyjs does not support ES6, it is cumbersome to configure the allmighty Webpack, bundlers like Parcel and Microbundle still have bugs or do not compile to ESM bundles that work in a browser. It is hard to figure out the best way to bundle an application.

Here I give a small example, how we achieve the goal using the