Skip to content

Instantly share code, notes, and snippets.

@andramalech
andramalech / keychron_linux.md
Created November 26, 2020 01:03 — forked from andrebrait/keychron_linux.md
Keychron keyboards on Linux (+ bluetooth fixes)

Here the best setup (I think so :D) for Keychron + Linux

Make Fn + F-keys work

  • Step 1: Set fkeyfirst by:
    • Create the file /etc/modprobe.d/hid_apple.conf. Add this line to the file: options hid_apple fnmode=2
    • Save the file and execute the following command: sudo update-initramfs -u
    • Reboot
  • Step 2: Use the keyboard in Windows/Android mode
  • Step 3: If get stuck with numpad mode: Double hit F6 or fn + F6. I've been using this config since the very first day, both bluetooth and cable with no problem.
# HOST
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install wireguard pve-headers
echo "wireguard" >> /etc/modules-load.d/modules.conf
# Container
echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
@andramalech
andramalech / gist:80196c9004190f1ead3a841ea98afd1b
Created November 27, 2020 03:48 — forked from pvalkone/gist:9568061
How to set up LACP link aggregation with a HP 1810-8G v2 switch and FreeBSD 10.0-RELEASE
Set up LACP on the switch
-------------------------
1) Log into the switch management interface (by default at http://192.168.2.10/).
2) Navigate to Trunks > Trunk Configuration
3) Set up a new trunk by giving it a name, choosing "LACP Active" mode and the ports you'd like to aggregate. Click "Apply".
FreeBSD setup
-------------
@andramalech
andramalech / doc.adoc
Created November 29, 2020 22:59 — forked from KrustyHack/doc.adoc
proxmox-ubuntu-cloud-howto

Cloud-Init Support

Cloud-Init is the defacto multi-distribution package that handles early initialization of a virtual machine instance. Using Cloud-Init, one can configure network

@andramalech
andramalech / nacho network.md
Created December 27, 2020 05:20
nacho network
@andramalech
andramalech / Proxomox - NUT Client.md
Created January 6, 2021 14:18 — forked from InQuize/Proxomox - NUT Client.md
Proxomox - NUT Client.md
@andramalech
andramalech / README.md
Created March 31, 2021 01:37 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@andramalech
andramalech / jupyter-lab-icon.md
Created March 31, 2021 02:35 — forked from egormkn/jupyter-lab-icon.md
Running JupyterLab as a desktop application on Linux

GNOME Desktop icon for Jupyter Lab

Installation

  1. Copy jupyter-lab.desktop to ~/.local/share/applications
  2. Copy jupyter-lab.svg to ~/.local/share/icons
  3. Restart gnome-desktop session (Alt+F2 -> restart)
@andramalech
andramalech / open-cmder-here.md
Created October 16, 2021 03:18 — forked from hamzahamidi/open-cmder-here.md
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
    @="Open Cmder Here"
 "Icon"="\"%CMDER_ROOT%\\icons\\cmder.ico\",0"