Skip to content

Instantly share code, notes, and snippets.

View tyrelius's full-sized avatar

Ty Baldwin tyrelius

View GitHub Profile
@tyrelius
tyrelius / 55-bytes-of-css.md
Created November 2, 2022 03:43 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@tyrelius
tyrelius / UUID.php
Created August 26, 2022 17:50 — forked from nickl-/UUID.php
Pure PHP UUID generator
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
@tyrelius
tyrelius / XpSerials.txt
Created May 26, 2022 17:35 — forked from denizssch/XpSerials.txt
Windows XP ALL Serial Keys :) (For testing purpose [Ex: VM or PenTest])
FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8
Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW
windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442
Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G
Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q
Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM
Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6
Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73
Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J
function locate(target, value, path = null){
if(target instanceof RegExp){
if(target.test(value)) return path
}
else{
if(value === target) return path
}
if(Array.isArray(value)){
return value.reduce((memo, v, i) =>
;(function(exports) {
// export the class if we are in a Node-like system.
if (typeof module === 'object' && module.exports === exports)
exports = module.exports = SemVer;
// The debug function is excluded entirely from the minified version.
// Note: this is the semver.org version of the spec that it implements
// Not necessarily the package version of this code.
@tyrelius
tyrelius / Minecraft systemd and screen.md
Last active March 6, 2022 06:06 — forked from justincjahn/README.md
Minecraft server(s) using systemd and screen.

Install

# Install dependencies
sudo yum install -y java-1.8.0-openjdk screen

# Create a new unprivileged user for minecraft
useradd -r -m -d /opt/minecraft minecraft

# Create the directory that will house our minecraft instances

sudo su --shell /bin/bash minecraft

@tyrelius
tyrelius / MinecraftService.md
Created March 6, 2022 06:05 — forked from dotStart/MinecraftService.md
Systemd services for Minecraft Servers

Minecraft systemd Services

This gist contains service descriptors which may be used to automatically start and re-start Minecraft servers using systemd. This allows proper control of your server startup on modern Linux distributions and will automatically manage all required tasks on startup for you.

Requirements

@tyrelius
tyrelius / How To Make OpenWRT Image for DFRobot.md
Last active February 26, 2022 13:55 — forked from martin-niklasson/How-To.md
How to make an up-to-date OpenWRT image for loading onto a Raspberry Pi Compute Module 4 with a DFRobot Router Carrier Board.

The background is that the default OpenWRT image for Raspberry Pi lacks drivers for the LAN port (RTL8111) on the DFRobot board. DFRobot provide an image, but that one is made from a quite old daily snapshot of OpenWRT which is not entirely stable. Also, it is better to know how to fish than be given a fish.

DFRobot's page about the router board:
https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767

OpenWRT main page:
https://openwrt.org/

You are expected to have some general knowledge on Linux and OpenWRT. The instructions for flashing the resulting firmware image are presented on DFRobot's page.

@tyrelius
tyrelius / sample.vtt
Last active April 28, 2020 17:40 — forked from samdutton/sample.vtt
Sample WebVTT caption file
WEBVTT
00:00:00.500 --> 00:00:02.000
Lorem ipsum dolor sit amet,
00:00:02.500 --> 00:00:04.300
consectetur adipiscing elit,
00:00:04.500 --> 00:00:06.300
sed do eiusmod tempor incididunt

Keybase proof

I hereby claim:

  • I am tyrelius on github.
  • I am tyrelius (https://keybase.io/tyrelius) on keybase.
  • I have a public key ASDWnsoOjEagCLw-ZncXmWd1oUNREwaYwcef84IU_cuJwAo

To claim this, I am signing this object: