# First we'll clone iPXE
$ git clone git://git.ipxe.org/ipxe.git
# Go into the src directory of the cloned git repo
$ cd ipxe/src
# Compile the UEFI iPXE executable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
"""Module for pulling contacts out of Google and storing them to disk | |
(or something). | |
See the official guide for a more in-depth look at GData Python | |
http://code.google.com/apis/contacts/docs/1.0/developers_guide_python.html | |
""" | |
import atom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open("vvvvvvmusic.vvv", 'rb') | |
q = f.read() | |
FILE_NAMES = ['0levelcomplete.ogg','1pushingonwards.ogg','2positiveforce.ogg','3potentialforanything.ogg','4passionforexploring.ogg','5intermission.ogg','6presentingvvvvvv.ogg','7gamecomplete.ogg','8predestinedfate.ogg','9positiveforcereversed.ogg','10popularpotpourri.ogg','11pipedream.ogg','12pressurecooker.ogg','13pacedenergy.ogg','14piercingthesky.ogg'] | |
startAt = endAt = -1 | |
musStartAt = musEndAt = -1 | |
currentMus = 0 | |
while True: | |
oldStartAt = startAt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration suitable to display Apache/nginx access logs | |
# Based on conf.proftpd by Pavol Domin | |
# Crafted by Marcello Barnaba <[email protected]> | |
# Get GRC at http://kassiopeia.juls.savba.sk/~garabik/software/grc.html | |
# | |
# ip number | |
regexp=^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} | |
colours=bold magenta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
Before starting, make sure you have a backup, and make sure to have a linux live boot ready to rescue your system. It's easy to mess this up!
- Use gdisk to convert the partition table to GPT.
gdisk /dev/sda
- Create the "BIOS boot" partition that GRUB needs.
n
to create a new partition. Needs to be about 1MB. You can probably squeeze this in from sectors 34-2047. UseL
orl
to look up the code for "BIOS boot" (ef02). - Write the new partition table.
w
- Reload the partition table.
>
partprobe /dev/sda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright (C) 2020 Kia | |
# Licensed under Zero Clause BSD License | |
if [[ $# -ne 3 ]]; then | |
echo "usage: $0 (BMC I2C BUS NUMBER) (FAN PAGE) (DUTY CYCLE FLOOR)" | |
echo "" | |
echo "BMC I2C BUS NUMBER can be found as follows" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################## | |
# An rclone backup script by Chris Tippett ([email protected]) | |
# | |
# Originally adapted from the great work by Jared Males ([email protected]) | |
# https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7 | |
# | |
# Copyright (C) 2020 Chris Tippett ([email protected]) | |
# |
DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.
On your local machine, assuming you have added your-server
in your SSH config:
rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
-a
: archive mode (all files, with permissions, etc.)-A
: preserve ACLs/permissions (not included with -a)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################## | |
# An rclone backup script by Chris Tippett ([email protected]) | |
# | |
# Originally adapted from the great work by Jared Males ([email protected]) | |
# https://gist.github.com/jaredmales/2f732254bb10002fc0549fa9aa0abdd7 | |
# | |
# Copyright (C) 2020 Chris Tippett ([email protected]) | |
# |
OlderNewer