Skip to content

Instantly share code, notes, and snippets.

# Installation on Dell XPS 9570
# Connect to Internet
wifi-menu
# Sync clock
timedatectl set-ntp true
# Create three partitions:
@andrewriveradev
andrewriveradev / Exherbo-Linux-Install.md
Created April 29, 2023 06:51 — forked from gaelreyrol/Exherbo-Linux-Install.md
Exherbo Linux Install (ESP / XBOOTLDR / BTRFS ON LUKS / SYSTEMD-BOOT / DRACUT)
  ________   ___    _ ______ _____  ____   ____       _____ _   _  _____ _______       _      _      
 |  ____\ \ / / |  | |  ____|  __ \|  _ \ / __ \     |_   _| \ | |/ ____|__   __|/\   | |    | |     
 | |__   \ V /| |__| | |__  | |__) | |_) | |  | |______| | |  \| | (___    | |  /  \  | |    | |     
 |  __|   > < |  __  |  __| |  _  /|  _ <| |  | |______| | | . ` |\___ \   | | / /\ \ | |    | |     
 | |____ / . \| |  | | |____| | \ \| |_) | |__| |     _| |_| |\  |____) |  | |/ ____ \| |____| |____ 
 |______/_/ \_\_|  |_|______|_|  \_\____/ \____/     |_____|_| \_|_____/   |_/_/    \_\______|______|

NVME / ESP / XBOOTLDR / BTRFS ON LUKS / SYSTEMD-BOOT / DRACUT

This guide is based on several documentations

@andrewriveradev
andrewriveradev / killport.sh
Last active March 16, 2023 03:08
killport.sh
#!/bin/bash
# Context:
# - add killport.sh to path export PATH="$HOME/bin:$PATH" assuming $HOME/bin is where you keep your scripts
# - make killport.sh executable chmod +x killport.sh
# write the command to kill the process running on the port
kill -9 $(lsof -t -i:$1)
# write command to notify the user that the process has been killed or not
if [ $? -eq 0 ]
then
@andrewriveradev
andrewriveradev / package.json
Created November 29, 2022 04:34 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@andrewriveradev
andrewriveradev / 0-startup-overview.md
Created September 12, 2021 18:08 — forked from dideler/0-startup-overview.md
Startup Engineering notes
@andrewriveradev
andrewriveradev / .eslintrc.json
Created June 29, 2021 03:49
[Boilerplate] ESLint + Prettier + stylelint + Tailwind + Cypress + TypeScript + VS Code
{
"env": {
"browser": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb/hooks",
@andrewriveradev
andrewriveradev / tailwind-responsive-navbar.html
Created April 11, 2021 22:09 — forked from w3collective/tailwind-responsive-navbar.html
Responsive navbar component with Tailwind CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Style a responsive navbar component with Tailwind CSS</title>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet" />
<script>
document.getElementById("hamburger").onclick = function toggleMenu() {
const navToggle = document.getElementsByClassName("toggle");
h scroll left
j scroll down
k scroll up
l scroll right
gg scroll to top of the page
G scroll to bottom of the page
f activate link hints mode to open in current tab
F activate link hints mode to open in new tab
r reload