Skip to content

Instantly share code, notes, and snippets.

View RareScrap's full-sized avatar

Yuri RareScrap

View GitHub Profile
@xtrasmal
xtrasmal / create_icns.sh
Last active March 28, 2025 23:55
Create a .icns file and/or png placeholders. Uses imagick to create the placeholders.
#!/bin/bash
# Icons and names
ICONS=(
"icon_16x16.png:16x16"
"[email protected]:32x32"
"icon_32x32.png:32x32"
"[email protected]:64x64"
"icon_128x128.png:128x128"
"[email protected]:256x256"
@niccolomineo
niccolomineo / webpack.config.js
Last active July 25, 2024 08:42
A Webpack configuration for obfuscating JavaScript in an Electron.js app
const Path = require('path'),
NodeExternals = require('webpack-node-externals'),
Copy = require('copy-webpack-plugin'),
Obfuscator = require('webpack-obfuscator')
module.exports = {
context: __dirname,
mode: 'production',
target: 'electron-main',
entry: {
@Aizistral
Aizistral / MINECRAFT_UMA.md
Last active February 14, 2024 05:33
What can still be done with unmigrated Mojang accounts?

What can still be done with unmigrated Mojang accounts?

Date: 14.09.2022
Author: Aizistral
In collaboration with: LapisDemon, 0n#5210

It is already widely known that unmigrated accounts can no longer be used to log into official launcher, and there is almost nothing you can do with them on minecraft.net website, except migrate. However, some third-party launchers, such as PolyMC, still offer the option to log into the game from Mojang account, even though it is not possible to play multiplayer in such case. This raised the question in my mind: how much exactly can still be done with unmigrated account?

Precise data on this matter has proven hard to come by. Luckily - with the help of LapisDemon, who have kindly supplied one of her unmigrated accounts for testing, I was able to collect some myself. All data presented herein is published with her full permission.

This research sets the goal of answering the following questions:

@Aizistral
Aizistral / MINECRAFT_BANS.md
Last active February 14, 2024 05:32
Research on Minecraft's global bans

Research on Minecraft's global bans

Date: 02.09.2022
Last Update: 24.12.2022
Author: Aizistral
In collaboration with: ejaussie, also known as British Empireball#3906

While I wish this could have been conducted sooner, this is the first verifiable ban case where I could contact the person banned. Some couple weeks ago I even purchased second Minecraft account with the sole intent of committing what would appear as bannable offense and being reported by one of my friends afterwards, which I sucessfully did; however, no action from moderation team followed. At the time this lead me to conclude that reports are not yet actioned on, which was perfectly explainable by unfixed exploits with chat reporting in 1.19.2. This case might indicate that reports are indeed actioned now, at least since the date of this research, but it is also possible that ban occured due to automated chat monitoring on Realms (see [Our Commitment to Player Safe

@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active April 21, 2025 17:14
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

If you dont have a keypair, Create the RSA Key Pair using ssh-keygen tool

The first step is to create the key pair on the client machine (there is a good chance that this will just be your computer):

ssh-keygen -t rsa -b 4096 -C "[email protected]"

This creates a new ssh key, using the provided email as a label. The entire key generation process looks like this:

Generating public/private rsa key pair.
Enter file in which to save the key (/home/demo/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 

Adding Dependencies

Introduction

Adding Dependencies allows you to access hooks, tools and apis provided by other mods. Depending on other's code allows you to spend lesser time on writing your code, and more time on refining it. A commonly used dependency in fabric is Fabric API.

Adding the repository

Open your build.gradle file and add the required maven repositories

repositories {
    maven {
 name = "Example"
@kagarlickij
kagarlickij / get-currentJiraSprint.sh
Last active March 3, 2023 16:37
This one is to get current Jira sprint number
#!/bin/bash
# This one is to be executed once to figure out rapidBoardId
#curl -u kagarlickij:Password -X GET -H "Content-Type: application/json" 'https://kagarlickij.atlassian.net/rest/greenhopper/1.0/rapidviews/list'
curl -u USER:PASSWORD -X GET -H "Content-Type: application/json" \
'https://JIRA.DOMAIN.NAME/rest/greenhopper/1.0/sprintquery/17?includeFutureSprints=true&includeHistoricSprints=false' \
| /usr/local/bin/jq '.sprints[] | select(.name | contains("PROJECTNAME")) | select(.state == "ACTIVE") | .name' | sed 's/[^0-9]*//g' > currentSprint.txt
echo "Current Sprint number in Jira is $(cat currentSprint.txt)"
@bazted
bazted / build.gradle
Created January 16, 2017 08:29
List all gradle sourceSets and their files
//add this in the end of your build.gradle
sourceSets.each {
println(it)
it.allSource.each {
println(it)
}
}