This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 2.0 | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$logFile | |
) | |
# Convert relative path to absolute path | |
$logFile = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($logFile) | |
# URL regex pattern that matches http, https, ftp, and other common protocols |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#cgo LDFLAGS: -lcrypt32 | |
#include <windows.h> | |
#include <wincrypt.h> | |
typedef struct { | |
BOOL success; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
public static class SceneViewButton | |
{ | |
[InitializeOnLoadMethod] | |
static void RegisterCallback() | |
{ | |
SceneView.duringSceneGui += OnSceneGUI; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// public domain idc | |
// constants (replace properties) | |
const vec3 rainColor = vec3(0.0, 1.0, 0.0); | |
const vec3 backgroundColor = vec3(0.0, 0.0, 0.0); | |
const float speed = 0.25; | |
const float density = 0.4; | |
const float charSize = 0.01; | |
const float brightness = 0.75; | |
const float illumination = 0.25; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class AutoSelectGestureManager | |
{ | |
static AutoSelectGestureManager() | |
{ | |
EditorApplication.playModeStateChanged += OnPlayModeStateChanged; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package input | |
import ( | |
"fmt" | |
"github.com/gonutz/w32/v2" | |
"syscall" | |
"time" | |
) | |
// some code for sending inputs to a window, regardless of whether it is in the foreground or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// for Project Zomboid Dedicated Server | |
// converts a ModManager load order string to a map mod name load order | |
// your own client doesn't need the map names since it loads them via the mod load order anyway | |
// however, hosting a server requires this specific Map load directive in servertest.ini | |
// this will output a Map= load order in the same order as the mod load order | |
// the idea is that getting a stable mod load order is way easier in the game client mod manager | |
// then you can export and use this on a dedicated server instance to host a mp game with your mod order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta-runner name="localdeploy"> | |
<description>builds docker image and deploys to local machine</description> | |
<settings> | |
<parameters> | |
<param name="env.ASSIGNED_PORT" value="8888" /> | |
</parameters> | |
<build-runners> | |
<runner name="build" type="DockerCommand"> | |
<parameters> | |
<param name="command.args" value="--pull" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A=1000 n=1000 pr=0 sp=0 div=(9.6+2.4*pr)*n so=1-sp o=160000 e=8*o c="" | |
z="origin_" mr=z+"north" br=z+"south" cr=z+"east" z+="west" sm="\nS: " | |
u=e*3/13 l=2*o mm=l*13/19 k=e*3/19 x/=so sm=c s=c sl="\nsignal lost" | |
rr="ISAN2 :_\n " xm="\nX: " ym="\nY: " zm="\nZ: " nn=l*13/3 | |
ej=16*sp h="Q" pj=14-pr b=0.5 p=1000000 :at=mr :bt=br :ct=cr :dt=z x=0 | |
t=p-:a t*=t i=p-:b i*=i g=p-:c g*=g f=p-:d f*=f x/=:a*:b*:c*:d goto14 | |
h="M" t=p-:a t*=t er=(t-el)/4 el=t x/=:a :at=br x=8 gotopj// ISAN | |
i=p-:a i*=i fr=(i-fl)/4 fl=i x/=:a :at=cr x=9 gotopj// From Collective | |
g=p-:a g*=g gr=(g-gl)/4 gl=g x/=:a :at=z x=10 gotopj// v2.5 - 190821 | |
f=p-:a f*=f hr=(f-hl)/4 hl=f x/=:a :at=mr x=7 gotopj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
for some reason my number lock kept getting turned off and i couldn't figure out why | |
so i made this to check every 250ms to see if my number lock is off, and if it is, turn it back on | |
*/ | |
import ( | |
"github.com/gonutz/w32" |
NewerOlder