Skip to content

Instantly share code, notes, and snippets.

View mishazawa's full-sized avatar
🎩
because white is boring

mishazawa

🎩
because white is boring
View GitHub Profile
@mishazawa
mishazawa / monokai.md
Created June 29, 2024 07:55 — forked from brayevalerien/monokai.md
Monokai theme color codes

Monokai theme color codes

Intro

This document lists the colors used in the Monokai Pro theme with the Classic filter. Please check the Monokai Pro website for more informations.

Colors

Monokai Pro with Classic filter colors:

Preview Hexadecimal RGB
Activity Bar Background activity bar background preview #272822 (39, 40, 34)
Activity Bar Foreground activity bar foreground preview #f8f8f2 (248, 248, 242)
@mishazawa
mishazawa / extensions.json
Last active August 13, 2024 10:39
VSCodium settings
[
{
"identifier": {
"id": "esbenp.prettier-vscode",
"uuid": "96fa4707-6983-4489-b7c5-d5ffdfdcce90"
},
"version": "10.4.0",
"location": {
"$mid": 1,
"path": "/Users/mishazawa/.vscode-oss/extensions/esbenp.prettier-vscode-10.4.0-universal",
@mishazawa
mishazawa / payload.py
Last active April 10, 2024 21:56
buffer overflow example with parameters
junk_l = 22
# can be different when compiled
function_addr = b"\x56\x55\x61\xad"
arg_a = b"\xde\xad\xbe\xef"
arg_b = b"\xc0\xde\xd0\x0d"
with open("./data", "wb") as f:
junk = b"A" * junk_l
@mishazawa
mishazawa / monokai.md
Created March 7, 2024 10:03 — forked from r-malon/monokai.md
Monokai colors in RGB and HEX format, taken from Sublime Text 3

Monokai Colors in RGB and HEX format


  • Background: (46, 46, 46); #2e2e2e
  • Comments: (121, 121, 121); #797979
  • White: (214, 214, 214); #d6d6d6
  • Yellow: (229, 181, 103); #e5b567
  • Green: (180, 210, 115); #b4d273
  • Orange: (232, 125, 62); #e87d3e
  • Purple: (158, 134, 200); #9e86c8
# Usage:
# python3 convert_base64_to_fbx.py ./out.fbx ./base64_file
import io
import base64
import sys
BASE_CONTENT = sys.argv[2]
OUT_FILE_PATH = sys.argv[1]
@mishazawa
mishazawa / Blender checklist.md
Last active August 9, 2023 11:23
How to export GLTF scene from Blender to the Three.js environment.

How to export GLTF scene from Blender to the Three.js environment.

Geometry

  • Convert non-mesh geometry to mesh (curves, fonts, etc) Object > Convert > Mesh .
  • Apply transforms.
  • Reduce polygons as much as possible (decimate, remove invisible).
  • Use simple primitives. Don't use subdiv workflow (Or optimize after).

Shaders

  • Bake procedural shaders into textures.
@mishazawa
mishazawa / wat.js
Created June 8, 2023 17:40 — forked from AVGP/wat.js
ffmpeg.js converting webm from a media recorder into mp4
var ffmpeg = require('ffmpeg.js/ffmpeg-mp4.js')
document.querySelector('button').addEventListener('click', (evt) => {
document.querySelector('[camera]').setAttribute('animation', {
property: 'rotation',
to: '0 360 0',
dur: 10000,
easing: 'linear'
})
@mishazawa
mishazawa / Default.sublime-keymap
Created December 24, 2022 07:23
put into $USER/Library/Application Support/Sublime Text/User
[
{
"keys": ["super+f"],
"command": "find_under"
},
{
"keys": ["super+t"],
"command": "transpose"
}
]
@mishazawa
mishazawa / generator.md
Last active February 2, 2023 15:32
Мануал по генератору

Підготовка

  1. Вимкнути всі прилади (ті шо багато споживають: кавоварка, мікрохвильовка, чайник, витяжка і тд)
  2. Вимкнути тен в котельній

Вмикання

  1. Перевести щиток в положення "Вимкнено" (середина).
  2. Перевірити масло (опціонально)
  3. Перевірити бензин (не менше півбака)
@mishazawa
mishazawa / .md
Last active August 31, 2022 20:18
Unity dev prepare