Skip to content

Instantly share code, notes, and snippets.

View littlecxm's full-sized avatar
🏠
Working from home

CXM littlecxm

🏠
Working from home
View GitHub Profile
@littlecxm
littlecxm / openssl_commands.md
Created March 1, 2023 09:50 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@littlecxm
littlecxm / launch_vm.sh
Created April 18, 2024 07:54 — forked from joedborg/launch_vm.sh
LXD Ubuntu VM launch and disk resize
#!/bin/env bash
set -e
readonly VM="banana"
readonly CPU="8"
readonly MEM="8GB"
readonly DSK="120GB"
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm
@littlecxm
littlecxm / vim-nginx-conf-highlight.sh
Created April 21, 2024 03:58 — forked from ralavay/vim-nginx-conf-highlight.sh
Enable syntax highlight for Nginx conf file in Vim
#!/bin/bash
#
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
cat > ~/.vim/filetype.vim <<EOF
@littlecxm
littlecxm / README.md
Created May 3, 2024 15:10 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@littlecxm
littlecxm / VNC_Server_On_Ubuntu_22.04LTS.md
Last active May 13, 2024 04:04 — forked from indyfromoz/VNC_Server_On_Ubuntu_22.04LTS.md
VNC Server setup on Ubuntu 22.04 LTS

Configure

Install TigerVNC

$ sudo apt install tigervnc-standalone-server

Allow VNC port (if ufw enabled)