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
// ==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() { |
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/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--)) |
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
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 \ |
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
#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; |