Skip to content

Instantly share code, notes, and snippets.

View Maximetinu's full-sized avatar
🌔
🔭

Miguel Medina Ballesteros Maximetinu

🌔
🔭
View GitHub Profile
/* Numerically solve for the time-dependent Schrodinger equation in 2D,
using the split operator method. To build and run, type:
rustc qm2d_split_op.rs
./qm2d_split_op
This will output a series of bmp images which show each frame of the
simulation.
References:
@rain-1
rain-1 / LLM.md
Last active July 3, 2024 15:04
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@throwaway96
throwaway96 / crashd.md
Last active July 5, 2024 15:01
crashd instructions

News

New exploit for webOS 3.5+: DejaVuln (2024-04-21)

See dejavuln-autoroot for a simpler exploit that works on webOS 3.5+ TVs (i.e., models from 2017 and later). It is unpatched as of 2024-04-21 and does not require Developer Mode or even a network connection—just a USB drive.

Otherwise:

  • If you have a webOS 5–8 TV with old enough firmware, WTA (which does not require Dev Mode) will still work.
  • If you have a webOS 4.x TV, you can also try CVE-2023-6319, which is unpatched on the latest (final?) firmware for webOS 4.0 (2018) models.
  • While there will eventually be fully software-based exploits released for older models, they can currently be rooted via NVM.
@SolidAlloy
SolidAlloy / AssetDatabaseTests.cs
Last active March 6, 2024 03:42
AssetDatabase unit tests that show the implications of Refresh() and SaveAssets()
using System;
using System.IO;
using JetBrains.Annotations;
using NUnit.Framework;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
/// <summary>
/// Unit tests that show how AssetDatabase operates.
@olegmrzv
olegmrzv / .gitattributes
Last active September 17, 2023 11:32
Git LFS Attributes for Unity Game Engine
# Git LFS tracking file types
# IronSource
*.a filter=lfs diff=lfs merge=lfs -text
IS*Adapter filter=lfs diff=lfs merge=lfs -text
GoogleMobileAds filter=lfs diff=lfs merge=lfs -text
# Image
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
@arimger
arimger / BrushPrefabDrawer.cs
Last active January 31, 2022 11:04
Simple tool to create objects on a specific layer in Unity
using UnityEditor;
using UnityEngine;
//NOTE: Editor-related scripts should be placed in an Editor folder
namespace Toolbox
{
[CustomPropertyDrawer(typeof(BrushPrefab))]
public class BrushPrefabDrawer : PropertyDrawer
{
@inikitin
inikitin / .gitattributes
Last active June 14, 2024 10:06
.gitattributes for Unity with case-insensitive Git LFS extension filters
# Unity specific .gitattributes
* text=auto
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity YAML
*.anim -text merge=unityyamlmerge diff
using UnityEngine;
using UnityEditor;
/// <summary>
/// Scene preview data.
/// http://diegogiacomelli.com.br/unitytips-scene-preview-window
/// </summary>
public class ScenePreviewData
{
Texture2D _texture;
using UnityEditor;
using UnityEngine;
/// <summary>
/// Hierarchy window game object icon.
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-gameobject-icon/
/// </summary>
[InitializeOnLoad]
public static class HierarchyWindowGameObjectIcon
{
@tconkling
tconkling / DynamicTrigger.cs
Last active July 28, 2020 23:17
Utility for managing Unity trigger collision enter/exit events for destroyable triggers
using System.Collections.Generic;
using UnityEngine;
namespace TheHunt.Util {
/// <summary>
/// Extend this abstract base class to receive enter/exit events
/// from dynamic triggers.
/// </summary>
public abstract class DynamicTriggerListener : MonoBehaviour {