Skip to content

Instantly share code, notes, and snippets.

View heychazza's full-sized avatar
📊
analyse.net

Charlie Joseph heychazza

📊
analyse.net
View GitHub Profile
@heychazza
heychazza / singlestore.sh
Last active May 20, 2024 10:41
Configures a VPS with everything needed to run a Laravel app.
#!/bin/bash
# Prompt user for app domain
read -p "Enter the app domain (default: staging.analyse.net): " APP_DOMAIN
APP_DOMAIN="${APP_DOMAIN:-staging.analyse.net}"
# Prompt user for Git repository
read -p "Enter the Git repository (default: track/analytics.tebex.io): " GIT_REPO
GIT_REPO="${GIT_REPO:-track/analytics.tebex.io}"
@JordanDalton
JordanDalton / helpers.php
Created February 19, 2023 14:28
Pipeline Helper / Wrapper
<?php
if( ! function_exists('pipe')) {
function pipe($payload, $steps = [])
{
return app(\Illuminate\Pipeline\Pipeline::class)
->send($payload)
->through($steps)
@SizableShrimp
SizableShrimp / README.md
Last active July 21, 2024 12:25
How to setup shading with Minecraft Forge

How to setup shading with Minecraft Forge

Shading is the concept of packing external dependencies inside your jar so that they exist in production. Without this, using external libraries would produce ClassNotFoundExceptions when you run your mod jar outside of an IDE. This guide explains how to setup shading through Gradle.

Assumptions

This guide assumes that:

  • You are on ForgeGradle 5 or higher
  • You are on Gradle 7.0 or higher
@2xsaiko
2xsaiko / build.gradle.kts
Last active November 21, 2023 09:15
ForgeGradle buildscript w/ Gradle Kotlin DSL
@file:Suppress("PropertyName")
import net.minecraftforge.gradle.user.UserBaseExtension
import org.gradle.jvm.tasks.Jar
val mod_name: String by extra
val mod_version: String by extra
val mc_version: String by extra
val forge_version: String by extra
val mappings_version: String by extra
@tonylukasavage
tonylukasavage / script.sh
Created May 29, 2013 18:18
Move all uncommitted changes to a new branch and revert the existing branch to HEAD. "master" has uncommitted changes. You decided you'd rather make those changes in "dev_branch". Here's how to move those uncommitted changes to "dev_branch" and then revert "master" to its last commit.
# get into the master branch
git checkout master
# create a new branch for the changes and check it out
git checkout -b dev_branch
# stash the changes until we revert master
git stash
# go back to master