Skip to content

Instantly share code, notes, and snippets.

View YangHanlin's full-sized avatar
🤔
Getting familiar with Markdown programming

Yang Hanlin YangHanlin

🤔
Getting familiar with Markdown programming
View GitHub Profile
@yuna0x0
yuna0x0 / PVE_Customization_README.txt
Last active May 13, 2024 19:28
Proxmox VE Customization
This customization method references "https://lunar.computer/posts/persistent-customizations-proxmox-60/" and has been fixed and tl;dr by @edisonlee55.
Note: If you are logged in as "root", leave out "sudo" in the commands below.
1. Create folder "/usr/share/custom/" and "/usr/share/custom/backup"
$ sudo mkdir /usr/share/custom
$ sudo mkdir /usr/share/custom/backup
2. Backup "proxmoxlib.js"
$ sudo cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/custom/backup/
@sindresorhus
sindresorhus / esm-package.md
Last active June 29, 2024 11:18
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@kaiwan
kaiwan / errno_codes.txt
Created June 2, 2018 06:53
Linux errno values
errno.h - C Error Codes in Linux
All the Linux/C error codes are listed below.
I occasionally google C error codes, but always end up grepping through /usr/include to find the answer.
To save myself, and a few others, some time in the future, here they are:
Include file :: /usr/include/asm-generic/errno-base.h
#ifndef _ASM_GENERIC_ERRNO_BASE_H
#define _ASM_GENERIC_ERRNO_BASE_H
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active June 25, 2024 20:13
Hyperlinks in Terminal Emulators
@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark