-
Backup the wiki
$ cp -R /srv/http/my-wiki /srv/http/beta-my-wiki
-
Extract the new MediaWiki over the new site
$ tar xf mediawiki-1.36.2.tar.gz
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
{ | |
# https://nixos.wiki/wiki/Rust | |
description = "Tauri test on NixOS"; | |
inputs = { | |
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils, ... }: |
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 | |
function get-sway-window-id() { | |
swaymsg -t get_tree | jq ".. | select(.type?) | select(.pid==$1).id" | |
} | |
function slurp-custom() { | |
slurp -b "#00000075" -c "#FF0000FF" | |
} |
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
# ~/.zshrc | |
# Exports | |
. ~/.zprofile | |
# Keybinds |
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
// See https://aka.ms/new-console-template for more information | |
using System.Collections.Specialized; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
string homeFolder = "/home/rekyuu"; | |
string genshinPrefix = $"{homeFolder}/wineprefixes/genshin-impact"; |
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 | |
DNS_NAME="" | |
ZONE_ID="" | |
API_TOKEN="" | |
DNS_RECORD_ID="" | |
log-to-file() { | |
TIMESTAMP=$(TZ="America/Boise" date --iso-8601="seconds") | |
echo "[$TIMESTAMP] $1" >> update-dns-ip.log |
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
using Godot; | |
public class Player : KinematicBody | |
{ | |
[Export] public float Speed = 7.0f; | |
[Export] public float JumpStrength = 20.0f; | |
[Export] public float Gravity = 50.0f; | |
private Vector3 _velocity = Vector3.Zero; | |
private Vector3 _snapVector = Vector3.Down; |
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
FROM jetbrains/teamcity-agent:2021.2-linux-sudo | |
ARG dockerLinuxComponentVersion='5:20.10.10~3-0~ubuntu' | |
USER root | |
RUN apt-get update && \ | |
apt-get install -y docker-ce=${dockerLinuxComponentVersion}-$(lsb_release -cs) \ | |
docker-ce-cli=${dockerLinuxComponentVersion}-$(lsb_release -cs) |
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/sh | |
# Usage: $ sh chika.sh -v TARGET_PATH [-i] [-t START_TIME] [-e EPISODE_NO] [-a AUDIO_TRACK] [-s SUBTITLE_TRACK] [-f] | |
# -v TARGET_PATH: Direct path to target file or directory to stream from. | |
# -i: Provide info about the file. | |
# -d: Run in debug mode, which prevents the stream from running and the playlist from being deleted. | |
# -t START_TIME: Start from specified time (as HH:MM:SS.MS). | |
# -e EPISODE_NO: Start from an episode number when a directory is provided. | |
# -a AUDIO_TRACK: Specify an audio track to use. | |
# -s SUBTITLE_TRACK: Use subs embedded in the video file. Optionally specify which subtitle track to use. |
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
using System; | |
namespace sandbox | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
// Get the user input for both fractions. | |
Console.WriteLine("Specify the first fraction."); |
NewerOlder