Skip to content

Instantly share code, notes, and snippets.

@orazdow
orazdow / ORazdowResume.pdf
Last active October 25, 2024 21:46
Resume
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orazdow
orazdow / .emacs
Last active May 9, 2025 09:05
init.el
;; -- windows emacs setup --
;;
;; Place this file in C:\Users\Username\AppData\Roaming
;; add %HOME% to user environment variables
;; if msys2 and gnugpg installed put gpg4win GnuPG\bin in PATH before msys2
;; for speedup in defender settings: add exclusions for emacs, .emacs.d folders
;; shorcut properties to start:
;; target: "C:\Program Files\Emacs\emacs-29.4\bin\runemacs.exe" -bg black -g 142x48
;; start in: C:\Users\ollie
@orazdow
orazdow / vscode settings
Created January 6, 2024 12:27
settings.json
{
"workspaceSidebar.folder": "C:\\Users\\ollie\\Documents\\projects", // projecct manager ext
"editor.mouseWheelScrollSensitivity": 3,
"terminal.integrated.accessibleViewPreserveCursorPosition": true,
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
@orazdow
orazdow / ahk v2 nighlight, wintop, hidebar, alt-f4
Last active November 18, 2024 07:38
ahk v2 nighlight, wintop, hidebar
;tray icon tooltip
A_IconTip := "alt-l: nightlight`nalt-q: alt-f4`nctl-alt-up: winontop`nctl-alt-b: hidebar"
;*********** Alt-l : open night light *********************;
!l:: Run "ms-settings:nightlight"
;*********** Alt-q : alt-f4 *********************;
!q::Send "!{F4}"
;*********** Ctl-Alt-Up : pin window on top ***************;
@orazdow
orazdow / lxc-setup.sh
Last active July 13, 2023 06:37
lxc setup script
#!/bin/sh -e
# ---lxc setup script---
addline(){
grep -q "${1}\|${3}\?" "$2" || echo "\n$1" | sudo tee -a "$2" > /dev/null
}
uname=$(id -u -n)
uid=$(id -u)
@orazdow
orazdow / crypt
Last active March 14, 2023 19:25
py aes encryption
#!/usr/bin/python3
import base64
import sys
from hashlib import sha256
from cryptography.fernet import Fernet, InvalidToken
def encrypt(pwd, st):
h = sha256(bytes(pwd, 'utf-8')).hexdigest()[:32]
key = base64.urlsafe_b64encode(bytes(h, 'utf-8'))
f = Fernet(key)
@orazdow
orazdow / waves.js
Created March 5, 2023 06:11
waves shader
const fs = /*glsl*/`#version 300 es
precision mediump float;
out vec4 fragColor;
uniform vec2 resolution;
uniform vec2 mouse;
uniform float time;
vec2 ball(float t){
return vec2(sin(t*1.2)*cos(5.+t*.82), cos(6.+t*.9));
}
@orazdow
orazdow / gllib.js
Last active December 21, 2022 09:15
webgl lib
const canvas = document.querySelector('canvas');
const gl = canvas.getContext('webgl2');
var clearcolor = [.5,.5,.5,1];
/*
reserved attributed names: position, indices
*/ // same as twgl
gl.clearColor(...clearcolor);
gl.clear(gl.COLOR_BUFFER_BIT);
@orazdow
orazdow / glview.js
Last active December 8, 2022 05:42
glview
//// gl-view - by shellderr ////
import
{setUniforms,
drawBufferInfo,
setBuffersAndAttributes,
createTexture,
createProgramInfo,
createBufferInfoFromArrays,
resizeCanvasToDisplaySize}
@orazdow
orazdow / ORazdowResume2023.pdf
Last active February 20, 2023 10:05
Newer Resume
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.