Skip to content

Instantly share code, notes, and snippets.

View dyeo's full-sized avatar

Dani dyeo

  • Toronto, Canada
  • 06:20 (UTC -04:00)
View GitHub Profile
@dyeo
dyeo / UnityGuidRegenerator.cs
Last active February 12, 2022 00:22 — forked from ZimM-LostPolygon/UnityGuidRegenerator.cs
Unity asset GUIDs regenerator
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using UnityEditor;
namespace UnityGuidRegenerator {
public class UnityGuidRegeneratorMenu {
[MenuItem("Tools/Regenerate All GUIDs")]
public static void RegenerateGuids() {
@dyeo
dyeo / nosel.c
Created October 24, 2021 22:45
nosel
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xfixes.h>
int main() {
Display *dpy;
Window root;
int ev_base, err_base;
XEvent ev;
if (!(dpy=XOpenDisplay(0x0)))
@dyeo
dyeo / build.bat
Created September 9, 2023 22:05
Raylib Build Scripts
@echo off
:: Drop it in the root directory of a freshly cloned raylib. Run, and enjoy.
set "OUT=./out"
if not exist "%OUT%" mkdir "%OUT%"
cd "%OUT%"
set "cwd=%cd%"
:: Detect OS type and set the appropriate generator
set "uname=%OS%"
@dyeo
dyeo / ipview.bat
Last active September 12, 2023 04:08
ipview: quick and dirty ip and mac address grab command for windows. put in a path dir and you're good to go
@echo off
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0ipview.ps1" %*
@dyeo
dyeo / p5.py
Created June 25, 2024 14:31
p4 - perforce utility
import argparse
from P4 import P4, P4Exception
def edit_files(p4, cl):
files = p4.run("describe", "-s", cl)[0]["depotFile"]
change = {"Change": "new", "Description": f"Checked out from CL{cl}"}
p4.input = change
change_output = p4.run("change", "-i")
new_cl = change_output[0].split()[1]