Skip to content

Instantly share code, notes, and snippets.

View rasa's full-sized avatar

Ross Smith II rasa

View GitHub Profile
@rasa
rasa / reinstall-grub.sh
Last active March 15, 2024 01:50
Reinstall grub menu with UEFI, lvm, and separate boot partition
#!/use/bin/env bash
# burn Ubuntu Live CD nearest to the installed system
# undock, connect network cable, Live CD, and boot off it
# sudo -i
set -e
apt update
apt install lvm2 # this is already installed in Ubuntu 23.10 Live CD
fdisk -l
lvscan
mount /dev/vg0/lv-0 /mnt
@rasa
rasa / expand.sh
Created March 14, 2024 17:11
Expand lvm to use entire disk
#!/usr/bin/env bash
# Per https://networklessons.com/uncategorized/extend-lvm-partition :
lvextend -l +100%FREE /dev/vgkubuntu/root
e2fsck -y /dev/vgkubuntu/root
resize2fs /dev/vgkubuntu/root

Git Cheat Sheet

Git Basics

  • staged: files marked to be included in the next commit
  • tracked: files that are stored in the repository
  • master: the default development branch
  • origin: the default upstream (remote) branch
  • HEAD: the last commit on the current branch

Command | Description

@echo off
{
"homepage": "http://kitty.9bis.net",
"license": "MIT",
"version": "0.71.0.5",
"url": [
"https://github.com/cyd01/KiTTY/releases/download/v0.71.0.5/genpass.exe",
"https://github.com/cyd01/KiTTY/releases/download/v0.71.0.5/kittygen.exe",
"https://github.com/cyd01/KiTTY/releases/download/v0.71.0.5/kageant.exe",
"https://github.com/cyd01/KiTTY/releases/download/v0.71.0.5/kitty.exe",
"https://github.com/cyd01/KiTTY/releases/download/v0.71.0.5/klink.exe",
13673f67164c1d0431ffdb8da93c97e64e18f0458eb7d30ebd52ee18f72ef94e genpass.exe
4cbe17fd75ec628d7f0ce3b530b227b24878d9ccd971fa13835028bd9bf4b84d kageant.exe
ed54f0f696a2e89f7166e5406e5494fb9ae1f77f41f4312c8156b22b69863342 kitty.exe
b0ca1406693c061c76c06580c08fcc58ff985b8cefbe4d68df8394548f1fc3a2 klink.exe
c4bdcfcd25de2ba522d8e492dc0212e586e552963361833e9f2c3bbd2b088e7f kscp.exe
1ac80fe575467d02ea195076e2390d5e728fbfd0ca663492c8b51e0469cd0300 ksftp.exe
#!/usr/bin/env bash
set -e -x
sudo apt-get update
sudo apt-get -y install libgnutls28-dev bzip2 make gettext texinfo gnutls-bin build-essential g++
mkdir -p gnupg22
pushd gnupg22
@rasa
rasa / README-Template.md
Last active December 3, 2018 16:06 — forked from PurpleBooth/README-Template.md
A template to make good README.md

rasa/go-template

One paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.