Skip to content

Instantly share code, notes, and snippets.

@Bobspadger
Bobspadger / autoinstall.md
Created March 18, 2024 11:05 — forked from feczkob/autoinstall.md
How to create USB that automatically installs Ubuntu Server 20.04

Steps to create the bootable USB

  1. Create folder
mkdir autoinstall-ISO
cd autoinstall-ISO
  1. Download ubuntu-autoinstall-generator
wget https://raw.githubusercontent.com/covertsh/ubuntu-autoinstall-generator/main/ubuntu-autoinstall-generator.sh
@Bobspadger
Bobspadger / imap-search
Created May 14, 2021 10:52 — forked from martinrusev/imap-search
IMAP Search criteria
@Bobspadger
Bobspadger / clean-up-boot-partition-ubuntu.md
Created April 29, 2019 14:10 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@Bobspadger
Bobspadger / gist:710d0e817446dce9738cb56dceb99f44
Created August 13, 2018 14:53 — forked from rtrouton/gist:a01073797a6d7e1fff9a
Disable Apple iCloud and Diagnostic Pop-Ups
#!/bin/bash
# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
sw_vers=$(sw_vers -productVersion)
# Determine OS build number
sw_build=$(sw_vers -buildVersion)
#! /bin/sh
### BEGIN INIT INFO
# Provides: datadog-agent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Launch datadog agent
# Description:
### END INIT INFO