Skip to content

Instantly share code, notes, and snippets.

@lialosiu
lialosiu / japanese_locale_enabler.sh
Last active October 1, 2023 13:38 — forked from XargonWan/japanese_locale_enabler.sh
Enable Japanese locale on Steam Deck
#!/bin/bash
# This script is enabling (uncommenting) the Japanese locale and regenerates them
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman -S glibc
sudo sed -i "s%#ja_JP.UTF-8 UTF-8%ja_JP.UTF-8 UTF-8%" /etc/locale.gen
sudo locale-gen
@lialosiu
lialosiu / 软件备忘.md
Created December 27, 2019 03:28
个人对于(开源)软件的评价列表

软件备忘

Linux桌面发行版

根据多年(也不多)的折腾经验,考虑发行版

  • 首先考虑对软件包管理的喜好,与健壮的软件仓库
  • 其次考虑默认的桌面环境(默认的桌面环境往往优化、整合得更好)
  • 作为桌面系统,尽可能地不折腾

在此基础上,个人喜好为:

@lialosiu
lialosiu / COM3D2_DLC_ALL_INSTALL.ps1
Created March 10, 2019 15:11
com3d2 all dlc install script
Import-Module -Name ($PSScriptRoot + "\Get-CRC32.ps1")
$targetCom3d2Dir = "E:\Games\Galgame\KISS\COM3D2"
$exists = Test-Path -LiteralPath "$targetCom3d2Dir\update.lst"
if (-not $exists) {
Write-Output "not com3d2 path"
exit
/**
* PS Vita PKG Decrypt
* Decrypts PS Vita PKG files
* The code is a total mess, use at your own risk.
* Written by St4rk
* Special thanks to Proxima <3
*/
#include <stdio.h>
#include <stdlib.h>
@lialosiu
lialosiu / dnspod-ddns.php
Created November 17, 2016 09:37
dnspod ddns php更新脚本
<?php
$id = isset($_GET['id']) ? $_GET['id'] : null;
$token = isset($_GET['token']) ? $_GET['token'] : null;
$domain = isset($_GET['domain']) ? $_GET['domain'] : null;
$host = isset($_GET['host']) ? $_GET['host'] : null;
$record_id = isset($_GET['record_id']) ? $_GET['record_id'] : null;
$ip = isset($_GET['ip']) ? $_GET['ip'] : null;
$rsp = exec("/opt/bin/curl -X POST https://dnsapi.cn/Record.Ddns -d 'login_token=$id,$token&format=json&domain=$domain&sub_domain=$host&record_id=$record_id&record_line_id=0&value=$ip'");