Skip to content

Instantly share code, notes, and snippets.

View Cubik65536's full-sized avatar
⚒️
Building

Qian Qian "Cubik"‎ Cubik65536

⚒️
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 April 16, 2024 11:09
CommandLeo's Mods

CommandLeo's 1.20.1 Mods

Core

Icon Mod Mod Page Description
Fabric API Modrinth Library required for a lot of mods
Fabric Language Kotlin Modrinth Library required for Zoomify
MaLiLib CurseForge Library required for Masa's mods
MagicLib Modrinth Library required for MasaGadget
YetAnotherConfigLib [Modrinth](https:
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active May 8, 2024 23:56
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 May 9, 2024 15:16
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 May 10, 2024 12:56
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 git@github.com:usi-systems/easytrace.git

@ewized
ewized / statusping.py
Last active January 26, 2024 02:18
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;