Skip to content

Instantly share code, notes, and snippets.

View peeweek's full-sized avatar

Thomas Iché peeweek

View GitHub Profile
@peeweek
peeweek / revealjs-cheatSheet.md
Last active November 1, 2024 02:26
RevealJS cheat sheet

Shortcuts

  • S = Speaker View
  • Escape = Zoom Out View
  • Alt + Click = Zoom/Unzoom Into a Slide
  • B = (Un)Pause presentation (Black Screen)

Base Elements

Body Structure

@peeweek
peeweek / LoadAllMaterials.cs
Last active September 1, 2019 06:50
Unity Compile All Materials
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
static class LoadAllMaterials
{
static readonly string title = "Load All Materials";
static GameObject obj;
@peeweek
peeweek / houdini-python-triangle.py
Created November 15, 2021 15:27
Houdini Python Create Triangle
import math
node = hou.pwd()
geo = node.geometry()
def pt(angle, dist):
return(math.cos(angle * 3.1415926535)*dist, math.sin(angle * 3.1415926535)*dist,0)
p1 = geo.createPoint()
p1.setPosition(pt(0,1))
@peeweek
peeweek / flames.glsl
Created December 26, 2021 16:25
Flames live wallpaper (for use with Android shader editor)
// Flames live wallpaper (c)2021 thomas iche
// for use with android shader editor (https://github.com/markusfisch/ShaderEditor)
// LICENSE : WTF Public License (http://www.wtfpl.net/)
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
@peeweek
peeweek / blender_easyFBX.py
Last active December 1, 2024 15:10
Blender Easy FBX Exporter
# BSD License
# -----------
#
# Copyright (c) 2022 Thomas Iché (peeweek.net) All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice, this
@peeweek
peeweek / pixel-resolutions.md
Last active March 6, 2025 14:22
(Pixel Art) 16:9 Adaptive Integer scale resolutions:

(Pixel Art) 16:9 Adaptive Integer scale resolutions

This table shows how it scales to fit resolution as integer scaling and compatibility with different screen modes :

  • SD 540p (960×540)
  • HD 720p (1280×720)
  • 900p (1600×900)
  • FHD 1080p (1920×1080)
  • 2k 1440p (2560×1440)
  • 4k 2160p (3840×2160)
@peeweek
peeweek / .bashstuff.sh
Last active October 27, 2023 14:17
Bash stuff
# -----------------------------------------
# PS1 Shells
# -----------------------------------------
# Two-line monochrome
export PS1="╭[\@] [\u@\h] [\W]\n╰ $ "
# Single-line multicolor
export PS1="\[\033[38;5;231m\]\t\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]\[\033[38;5;85m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;195m\][\w]\[$(tput sgr0)\]\[\033[38;5;17m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\[$(tput sgr0)\]"
@peeweek
peeweek / bash_cheat_sheet.sh
Last active June 13, 2025 04:06
Cheat sheet (bash script)
#!/bin/bash
# Comments are like that
# First line is the shebang with #, !, then path to the executable (meaning it can be /bin/python)
#####################
## STATEMENTS
#####################
# One Statement per line
@peeweek
peeweek / VFXProfilerCounters.cs
Created October 10, 2024 16:17
VFXGraph : Some code that adds a few new custom counters in the unity profiler (Not perfect, generates a few garbage, possible inaccurate values in forwarders)
// Some code that adds a few new custom counters in the unity profiler
// Not perfect, generates a few garbage, possible inaccurate values in forwarders
using UnityEngine;
using UnityEngine.Profiling;
using Unity.Profiling;
using UnityEngine.VFX;
using System.Collections.Generic;
public class VFXProfilerCounters : MonoBehaviour
{
@peeweek
peeweek / x360eol-blog.md
Last active November 1, 2024 21:32
XBOX360 End of Life - Various Thoughts

Xbox 360, End of Life, Obsolescence, random thoughts

I didn´t plan on writing from a blank slate tonight, but today I stumbled upon an interesting case over the internets.

A bit of context first, I was delving into my X360 in order to move few saves from my dying disk to the cloud, and, interestingly, I booted my console with my profile disconnected. Interestingly too, I was not able to log in anymore. Due to some 8-digit hex random error code that only Microsoft has secrecy.

A bit disappointed, I replaced the network cable, disabled my ad-blocking DNS... still nothing. Then I started searching online for this error code : namely the dreaded 8015D086

https://x.com/search?q=8015D086&src=typed_query