Skip to content

Instantly share code, notes, and snippets.

View ookiineko's full-sized avatar
😣
A noob who tries weird things sometimes

小さい猫 ookiineko

😣
A noob who tries weird things sometimes
  • Somewhere
View GitHub Profile
@ookiineko
ookiineko / libgdk-pixbuf-2.0-0
Last active April 17, 2022 09:16
control file of dummy package libgdk-pixbuf-2.0-0 for Ubuntu 20.04.x LTS (Focal)
Package: libgdk-pixbuf-2.0-0
Version: 2.40.0+fake-3ubuntu0.2
Priority: optional
Section: libs
Source: gdk-pixbuf
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Depends: libgdk-pixbuf2.0-0
@ookiineko
ookiineko / pullremote.py
Created May 5, 2022 12:26
a replacement of git-repo sync
#!/usr/bin/env python3
from os import system, getcwd, chdir
from os.path import join, exists
root = getcwd()
with open('housekeeping.txt', 'r', encoding='utf-8') as f:
content = f.read()
for line in content.split('\n'):
From 60a534a77528aedf4d0b4260a82adfa7b108bcdb Mon Sep 17 00:00:00 2001
From: Ookiineko <chiisaineko@protonmail.com>
Date: Thu, 13 Oct 2022 00:55:17 +0800
Subject: [PATCH] cbl: operator_mixins: fix typo
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
---
cbl/operator_mixins.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From 760e852c234a10e6be0e9213f8fa5286149a5c39 Mon Sep 17 00:00:00 2001
From: Ookiineko <chiisaineko@protonmail.com>
Date: Sun, 16 Oct 2022 21:15:19 +0800
Subject: [PATCH] building: utils: don't check verinfo and manifests on Cygwin
* since neither pywin32 nor pywin32-ctypes support Cygwin, we now
have to use this workaround in order to use PyInstaller on Cygwin.
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
---
@ookiineko
ookiineko / x86_64-pc-cygwin.json
Created November 5, 2022 02:44
nightly rustc json target for Cygwin64
{
"abi-return-struct-as-int": true,
"allows-weak-linkage": false,
"arch": "x86_64",
"cpu": "x86-64",
"data-layout": "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
"debuginfo-kind": "pdb",
"dll-prefix": "",
"dll-suffix": ".dll",
"dynamic-linking": true,
@ookiineko
ookiineko / max_align_t.c
Last active November 15, 2022 15:33
type test
#include <stdio.h>
#include <stddef.h>
int main() {
printf("align is %ld.\n", __alignof__(max_align_t));
printf("count is %ld.\n", sizeof(max_align_t) / 8); // 8 stands for f64
return 0;
}
@ookiineko
ookiineko / README.md
Last active May 5, 2024 04:45
Cygwin Rust porting
@ookiineko
ookiineko / update_boot_image.sh
Last active January 18, 2023 07:42
personal script for generating Android boot image for archlinux ARM
#!/bin/bash
set -e
_create_boot_image() {
mkbootimg --kernel /boot/Image.gz-dtb \
--ramdisk /boot/initramfs-linux.img \
--cmdline "root=/dev/sda15 rw loglevel=5 ${1}" \
--base 0x80000000 --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 \
--second_offset 0x00f00000 --os_version "11.0.0" --os_patch_level "2022-07" \
@ookiineko
ookiineko / shitmv.py
Last active October 25, 2023 00:17
shitty file renaming tool
#!/usr/bin/env python
"""
file renaming tool
"""
from os import rename
from sys import exit as die
from platform import system
@ookiineko
ookiineko / lolisubify.py
Last active April 23, 2023 01:45
lolita subtitle font changer
#!/usr/bin/env python
"""
lolita subtitle font changer
"""
from argparse import ArgumentParser, Namespace
from typing import List
from typing import NoReturn
from os.path import exists
from sys import exit as die