Skip to content

Instantly share code, notes, and snippets.

View krearthur's full-sized avatar
🏠
Working from home

krearthur krearthur

🏠
Working from home
View GitHub Profile
@vladfau
vladfau / post.groovy
Last active October 31, 2024 10:14
Sending POST + JSON Body + Auth - Libs in Java/Groovy (e.g. create tag on GitHub)
import groovy.json.JsonOutput
import java.io.BufferedWriter
import java.io.OutputStreamWriter
import java.net.URL
import java.util.Scanner
def url = new URL("https://${github}/api/v3/repos/${org}/${repo}/git/refs")
def urlConnection = url.openConnection()
urlConnection.setDoOutput(true)
@hmans
hmans / BobTheBuilder.cs
Last active April 27, 2024 23:26
A basic pipeline for performing headless Unity builds for multiple platforms at once.
/* This needs to live in a folder named "Editor", or it won't work. Doesn't have to be named
"BobTheBuilder", though. Name it whatever you want! */
using System;
using UnityEditor;
using UnityEngine;
public class BobTheBuilder
{
/* List of scenes to include in the build */