Skip to content

Instantly share code, notes, and snippets.

View fdelacruz's full-sized avatar

Francisco De La Cruz fdelacruz

View GitHub Profile
@harunaadoga
harunaadoga / RHCSA-Practice.txt
Last active July 7, 2026 10:55
RHCSA EX200 EXAM Objectives Preparation Questions - Free Hands-on Playlist on YouTube - Haruna Adoga
Free YouTube RHCSA EX200 Hands-on Exam Practice Playlist here: https://www.youtube.com/playlist?list=PLiI_-JOspy6FuSPXSipE0xE4oC2XXYyuI)
1) RHCSA EX200 EXAM Objective: Understand and Use Essential Tools
Task 1: Text Search & Archive - Man pages
1.1 Find the string "Listen" in /etc/httpd/conf/httpd.conf and save the output to /root/web.txt
2 1.2 Create a gzip-compressed tar archive of /etc named etc_vault.tar.gz in /vaults directory.
⁃ use man pages for gzip option
Task 2: File Links - Shortcuts
2.1 In /shorts directory:
@mengwangk
mengwangk / lsp_config.lua
Created August 1, 2021 15:20
LSP Config for Code Lens
local alt_key_mappings = {
{"code_lens", "n", "<leader>lcld","<Cmd>lua vim.lsp.codelens.refresh()<CR>"},
{"code_lens", "n", "<leader>lclr", "<Cmd>lua vim.lsp.codelens.run()<CR>"}
}
local function set_lsp_config(client, bufnr)
require"lsp_signature".on_attach({
bind = true,
handler_opts = {border = "single"}
})
@miguelmota
miguelmota / config
Last active June 23, 2026 09:30
Arch linux VNC server setup
session=lxqt
geometry=1920x1080
localhost # comment this out to allow connections from anywhere
alwaysshared
@TheZoc
TheZoc / Setting up guide for ArchLinux on Raspberry Pi.md
Last active June 22, 2026 20:57
This is a guide to setup Arch Linux in Raspberry Pi 4, using macOS as the auxiliary system.

Raspberry Pi Setup Guide

This guide will use either a macOS or an ArchLinux base system, to prepare a microSD card with Arch Linux for Raspberry Pi.

If someone managed to do the initial setup using Windows, please let me know, so I can add to this guide.

This guide will be verbose at times for some simple tasks. This is intended to help people just starting out, so it's not confusing. If something confuses you, let me know and I'll try my best to answer it.

@CdTCzech
CdTCzech / rust-install.cmd
Last active June 29, 2022 10:36
Install rust and rust-analyzer (requires git, rustup and npm)
REM Uninstall toolchains
rustup toolchain uninstall stable
rustup toolchain uninstall beta
rustup toolchain uninstall nightly
REM Set nightly as default and install default profile with rust-src
rustup set profile default
rustup toolchain install nightly
rustup default nightly
rustup component add rust-src
@bradtraversy
bradtraversy / docker-help.md
Last active July 22, 2026 14:34
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew cask install iterm2
# update iterm2 settings -> colors, keep directory open new shell, keyboard shortcuts
brew install bash # latest version of bash
# set brew bash as default shell
brew install fortune
brew install cowsay
brew install git
@ctubbsii
ctubbsii / etc_NetworkManager_conf.d_90-disable-randomization.conf
Last active May 11, 2026 18:21
NetworkManager configuration to disable WiFi MAC address randomization while scanning
# Place file in
# /etc/NetworkManager/conf.d/90-disable-randomization.conf
[device-mac-randomization]
# "yes" is the default for scanning in Fedora 25
wifi.scan-rand-mac-address=no
[connection-mac-randomization]
ethernet.cloned-mac-address=random
wifi.cloned-mac-address=random
Written by Thanos Apostolou
http://askubuntu.com/questions/53822/how-do-you-run-ubuntu-server-with-a-gui
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these:
Minimal GUI:
sudo apt install xorg
sudo apt install --no-install-recommends openbox
Run the command startx and openbox will start (you can open a terminal there and run any application you want)
@t-mart
t-mart / netrw quick reference.md
Last active February 23, 2026 13:46
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory