Skip to content

Instantly share code, notes, and snippets.

View 42LoCo42's full-sized avatar
🏳️‍⚧️
Trans rights are human rights!

Eleonora 42LoCo42

🏳️‍⚧️
Trans rights are human rights!
View GitHub Profile
@42LoCo42
42LoCo42 / factorio.js
Created January 5, 2023 11:20
Userscript for mods.factorio.com that enables direct mod downloads.
// ==UserScript==
// @name Factorio Mod Downloader
// @version 0.3
// @description Replaces the download buttons on mods.factorio.com with direct mod links
// @author 42LoCo42
// @match https://mods.factorio.com/*
// @icon https://factorio.com/static/img/favicon.ico
// ==/UserScript==
(async function() {
#!/usr/bin/env bash
end="$(date "+%s" --date "$*")" || exit 1
foo=0
date --date "@$end"
while sleep "$foo"; do
foo=1
now="$(date "+%s")"
((now < end)) || break
read -r d h m s <<< "$(date -u +"%j %H %M %S" --date "@$((end - now))")"
((d--))
diff --git a/PKGBUILD b/PKGBUILD
index 0b70516..3601575 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,11 +28,11 @@ _pick() {
build() {
arch-meson $pkgbase build \
- -D split-usr=true \
+ -D split-usr=false \
#include <crypt.h>
#include <errno.h>
#include <error.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct resource {
void* data;
struct resource* next;