Skip to content

Instantly share code, notes, and snippets.

View Qubik65536's full-sized avatar
⚒️
Building

Qian Qian "Qubik" Qubik65536

⚒️
Building
View GitHub Profile
@RalXYZ
RalXYZ / microsoft-fluentui-emoji.sh
Last active August 13, 2022 19:01
Shell script to process Microsoft fluentui-emoji repo, to meet the need of telegram emoji
# git clone https://github.com/microsoft/fluentui-emoji.git
# change this to your project dir after clone
WORK_DIR="/home/ralxyz/Desktop/fluentui-emoji-main"
# replace all space in filename to '_'
find $WORK_DIR/assets -depth -name "* *" -execdir rename 's/ /_/g' "{}" \;
mkdir target
@CommandLeo
CommandLeo / mods.md
Last active September 24, 2025 17:15
CommandLeo's Mods

CommandLeo's 1.20.2 Mods

Libraries

Icon Mod Mod Page Description
Fabric API Modrinth Library required for a lot of mods
Fabric Language Kotlin Modrinth Library required for Zoomify
MaLiLib Modrinth Library required for Masa's mods
MagicLib Modrinth Library required for MasaGadget
OwoLib [Modrinth](https://modrinth.com/
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active August 5, 2025 13:20
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@backslash-f
backslash-f / Shell.swift
Last active June 13, 2023 19:11
Invoke Zsh commands via a Swift script
#!/usr/bin/swift
import Foundation
func shell(_ command: String) {
let task = Process()
task.launchPath = "/bin/zsh"
task.arguments = ["-c", command]
let pipe = Pipe()
@troyfontaine
troyfontaine / 1-setup.md
Last active October 17, 2025 03:32
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@0xjac
0xjac / private_fork.md
Last active October 25, 2025 17:58
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@ewized
ewized / statusping.py
Last active October 5, 2025 05:50
Python3 class to ping a Minecraft server and get its response including ping in ms
#!/usr/bin/python3
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
package de.zh32.slp;
import com.google.gson.Gson;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;