Skip to content

Instantly share code, notes, and snippets.

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

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@mkfares
mkfares / zsh-keyboard-shortucts.md
Last active May 13, 2024 19:25
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@AhmedMostafa16
AhmedMostafa16 / .font.conf
Created July 25, 2021 13:39
My .font.conf for perfect font rendering
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>~/.fonts</dir>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@MahdiMirzade
MahdiMirzade / Fontconfig.md
Last active May 13, 2024 19:23
Font Configuration in Linux

Font Configuration in Linux

A computer font (or font) is an electronic data file containing a set of glyphs, characters, or symbols such as dingbats.

Most computer fonts used today are in either bitmap(BDF) or outline data(otf/ttf) formats.

Many non-English users have problems with their language's rendering, at least Persian users have problems with viewing Persian charactars that can happen because:

  1. Proper fonts are not installed/found by fontconfig. Click here
  2. Fontconfig order is wrong and the latin fonts are above Persian fonts and don't have a good support that causes problems. Click Here

Notes

@rsms
rsms / macos-distribution.md
Last active May 13, 2024 19:21
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@iandanforth
iandanforth / continuous_cartpole.py
Last active May 13, 2024 19:19
Continuous Cartpole for OpenAI Gym
"""
Classic cart-pole system implemented by Rich Sutton et al.
Copied from http://incompleteideas.net/sutton/book/code/pole.c
permalink: https://perma.cc/C9ZM-652R
Continuous version by Ian Danforth
"""
import math
import gym
@ifeulner
ifeulner / 01_longhorn_bestpractices.md
Last active May 13, 2024 19:13
Longhorn hcloud best practices

Longhorn best practices

The following settings are provided as an example how longhorn should be configured in a production cluster, especially if it is deployed on Hetzner Cloud infrastructure.

Hetzner server nodes provide local storage and allow up to five attached volumes (with a size of up to 10TiB each) Local storage is provided by NVMe storage and therefore is much faster than the attached volumes, but limited in size (max 300GiB usable).

It is assumed that the cluster creation is already done, e.g. via terraform scripts provided by the great kube-hetzner project.

Initial configuration