Skip to content

Instantly share code, notes, and snippets.

View y3nr1ng's full-sized avatar

Liu, Yen-Ting y3nr1ng

View GitHub Profile
@y3nr1ng
y3nr1ng / NvmlWrapper.cs
Created November 24, 2023 07:03 — forked from bpmooch/NvmlWrapper.cs
Thin NVML Wrapper for C#
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace NvmlWrapper
{
/// <summary>
/// Nvml return codes
/// </summary>
public enum nvmlReturn_t
@y3nr1ng
y3nr1ng / gifextract.py
Last active July 10, 2016 06:14 — forked from BigglesZX/gifextract.py
Extract frames from an animated GIF, correctly handling palettes and frame update modes
'''
A fork of this gist https://gist.github.com/BigglesZX/4016539 .
Ported to Python3 and verify it with Pillow.
'''
import argparse
import os
from PIL import Image
def find_dir(path):
@y3nr1ng
y3nr1ng / README
Last active August 29, 2015 14:25 — forked from rwest/README
Convert OS X Keychain exported entries into logins for 1Password import
These two files should help you to import passwords from mac OS X keychains to 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they