Skip to content

Instantly share code, notes, and snippets.

/nix/store/6swv2fhsfcdbrzf4xnyrm5nzk55yp7p6-powershell-7.4.1
├── bin
│   └── pwsh
└── share
└── powershell
├── JetBrains.Annotations.dll
├── Json.More.dll
├── JsonPointer.Net.dll
├── JsonSchema.Net.dll
├── LICENSE.txt
steamservice.so: file format elf32-i386
steamservice.so
architecture: i386, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0002b000
Program Header:
LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12
filesz 0x000289c4 memsz 0x000289c4 flags r--
{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "lnshot";
version = "v0.1.3";
src = fetchFromGitHub {
owner = "ticky";
repo = pname;
rev = version;
{ config, pkgs, ... }:
{
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
{ config, pkgs, ... }:
{
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
$UsedPath = Get-ChildItem -Path . -Name "UsedInstallers"
if (!$UsedPath) {
$UsedPath = New-Item -ItemType Directory -Name "UsedInstallers"
}
Write-Host $UsedPath
Get-ChildItem -Filter 'python-*.exe' | ForEach {
#$Command = ".\$_ /passive InstallAllUsers=1 CompileAll=1 Include_doc=0 Include_debug=1 Include_symbols=1"
#$Command = ".\$_ /?"
#Write-Host $Command
#Invoke-Expression "$Command"
@ihaveamac
ihaveamac / cdndownload.py
Last active September 6, 2021 23:52
crappy cdn downloader
#!/usr/bin/env python3
# usage: cdndownload.py <titleid> [titlekey]
# if a system title is given for titleid, titlekey is not used
# system titles should be "legit CIAs" i.e. a stock system will install it
# unlike other cdn downloaders, this doesn't use make_cdn_cia or anything
# it downloads and saves directly to the cia, so it's faster
import base64
#!/usr/bin/env python3
import os
import shutil
import sys
helptext = """usage: firmswap.py [options]
swap FIRM partition(s) from 11.0 to 10.4 FIRM
default behavior:
- create backup of NAND.bin named NAND.bin.bak
#!/usr/bin/env python3
# very lazy script to generate the Title Info Entry for title.db
import argparse
import random
parser = argparse.ArgumentParser(description='Generate Title Info Entry.')
parser.add_argument('-o', help='output filename', type=argparse.FileType('wb'), required=True)
parser.add_argument('-v', help='title version', type=int, required=True)