Skip to content

Instantly share code, notes, and snippets.

View Yash-Singh1's full-sized avatar

Yash Singh Yash-Singh1

View GitHub Profile
@ezhevita
ezhevita / README.md
Last active January 9, 2025 08:21
Reconstructed Ryujinx games list compatibility database

This is a database of Ryujinx games compatibility, reconstructed from the archived GitHub issues.

It is not affiliated with the original Ryujinx project or any of the forks and thus won't be updated.

Data is current as of the 2nd October 2024 (the date Ryujinx repo went down).

This dataset was acquired using the following Clickhouse query in the public playground:

SELECT
    number as issue_number,
@trvswgnr
trvswgnr / compress_video
Last active January 2, 2025 12:48
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@juliusmarminge
juliusmarminge / enum-generator.ts
Last active January 15, 2025 20:36
prisma enum generator
import { generatorHandler } from "@prisma/generator-helper";
import fs from "node:fs/promises";
import path from "node:path";
const header = `// This file was generated by a custom prisma generator, do not edit manually.\n`;
generatorHandler({
onManifest() {
return {
defaultOutput: "./enums/index.ts",
name: Update dist
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.JS 12
@MyriaCore
MyriaCore / fix-links.lua
Last active October 30, 2024 07:11
How to use pandoc with gitlab markdown
@gilbertfrancois
gilbertfrancois / uninstall_gstreamer_macos.sh
Last active January 12, 2025 19:08
Uninstaller for GStreamer on macOS, where GStreamer is installed as framework from the official pkg distribution.
#!/usr/bin/env bash
# Author: Gilbert Francois Duivesteijn
# Date: Febr 2023
# Platform: macOS
# License: Apache
# Discard receipt data for the installed GStreamer packages.
pkgutil --pkgs | grep gstreamer | xargs -I % sudo pkgutil --forget %
# Remove the GStreamer Framework from disk
@diegum
diegum / bitset_iter.h
Last active December 19, 2024 21:57
Missed an iterator for C++ STL bitset? Have mine!
// bitset_iter.h v1.1.0
// Copyright 2019, Diego Dagum
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@tterb
tterb / README-badges.md
Last active December 28, 2024 22:27
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@sscotth
sscotth / keystroke the clipboard extended.workflow
Last active December 25, 2024 03:10
Paste as keystrokes (macOS)
# Why?
# To paste text into windows that normally don't allow it or have access to the clipboard.
# Examples: Virtual machines that do not yet have tools installed, websites that hijack paste
#
# Extended vs Simple?
# * Includes an initial delay to allow you to change active windows
# * Adds small delay between keypresses for slower responding windows like SSH sessions
# * Better handling of numbers
# * VMWare bug fix
#
@vladikoff
vladikoff / gist:d3f5ec1f570e66fb7faff329d01012b7
Created May 1, 2017 16:15 — forked from vvenv/gist:0e11d36849db3fbf88fa64b63e121d5f
Generate an AUTHORS file based on the output of git shortlog.
#!/usr/bin/env sh
# Generate an AUTHORS file based on the output of git shortlog. It uses ABC
# order, strips out leading spaces and numbers, then filters out specific
# authors.
git shortlog -se \
| perl -spe 's/^\s+\d+\s+//' \
| sed -e '/^CommitSyncScript.*$/d' \
> AUTHORS