Skip to content

Instantly share code, notes, and snippets.

View easycodesnipper's full-sized avatar

easycodesnipper easycodesnipper

View GitHub Profile
# On CentOS-8-Stream
sudo nmcli con mod enp1s0 ipv4.method manual
sudo nmcli con mod enp1s0 ipv4.address 192.168.3.53/24
sudo nmcli con mod enp1s0 ipv4.gateway 192.168.3.1
sudo nmcli con mod enp1s0 ipv4.dns "192.168.3.1 8.8.8.8"
sudo nmcli con mod enp1s0 autoconnect yes
sudo nmcli con down enp1s0
sudo nmcli con up enp1s0
@easycodesnipper
easycodesnipper / gui-startup.md
Last active July 28, 2023 02:40
Enable/Disable GUI startup
# Get default startup target
sudo systemctl get-default 

# Enable GUI startup
sudo systemctl set-default graphical.target

# Disable GUI startup
sudo systemctl set-default multi-user.target
@easycodesnipper
easycodesnipper / gist:05708bfc38b29c50c3734017c59b813f
Created July 21, 2023 17:41 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@easycodesnipper
easycodesnipper / proxy.md
Created July 12, 2023 12:56 — forked from yougg/proxy.md
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@easycodesnipper
easycodesnipper / resize_disk_image.md
Last active July 10, 2023 18:30 — forked from joseluisq/resize_disk_image.md
How to resize a qcow2 disk image on Linux

How to resize a qcow2 disk image on Linux

This example takes olddisk.qcow2 and resizes it into newdisk.qcow2, extending one of the guest's partitions to fill the extra space.

1. qcow2 format

1.1. Verify the filesystems of olddisk.qcow2