Skip to content

Instantly share code, notes, and snippets.

View jtomori's full-sized avatar
👨‍🌾
It ain't much, but it's honest work.

Juraj Tomori jtomori

👨‍🌾
It ain't much, but it's honest work.
View GitHub Profile
import re
import urllib.request
import concurrent.futures
from urllib.error import HTTPError
def load_url_parse(url, timeout=10):
"""Load the page from the passed url and search for dimensions."""
try:
with urllib.request.urlopen(url, timeout=timeout) as conn:
@jtomori
jtomori / .zshrc
Last active April 23, 2021 11:36
Z shell config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@jtomori
jtomori / mpv.conf
Last active October 12, 2020 12:31
# ~/.config/mpv/mpv.conf
loop-file=inf
sub-codepage=utf8:cp1250
@echo off
rem houdini launcher
rem source global vars
call \\network_drive\current_project\00_pipeline\globals.bat
rem set Houdini paths
rem variables PIPELINE, ROOT were set in globals.bat
set "HOUDINI_VERSION=Houdini 15.5.632"
set "HOUDINI_PATH=&;%PIPELINE%/houdini"
@jtomori
jtomori / bmp_peek.md
Last active December 4, 2019 17:39
Peek into a .bmp file
$ dd if=img.bmp bs=1 skip=54 status=none | xxd -g 3 -c 12

bs=1 - Block size of 1 byte

skip=54 - Skips first 54 bytes, which is header info

status=none - Hide debug information

@jtomori
jtomori / Nuke barebones.md
Last active July 2, 2019 15:17
Initial setup for Nuke

env.bat

@echo off

rem set globals
set "ROOT=//isilonai/LAFM"

rem set nuke config path
set "NUKE_PATH=%ROOT%/010_pipeline/software/nuke"
set "NUKE_PATH=%NUKE_PATH:\=/%"
@jtomori
jtomori / LICENSE
Created May 25, 2019 18:34
This license applies to all public gists: https://gist.github.com/jtomori
MIT License
Copyright (c) 2019 Juraj Tomori
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@jtomori
jtomori / OPmenu.xml
Last active May 8, 2019 11:37
"Save as New Version" tool in Houdini right-click menu on nodes, for https://jurajtomori.wordpress.com/2018/12/22/houdini-tip-save-modified-asset-as-new-version/
<?xml version="1.0" encoding="UTF-8"?>
<menuDocument>
<menu>
<scriptItem id="opmenu.save_as_new_version">
<insertAfter>opmenu.saveoptype</insertAfter>
<label>Save as New Version</label>
<context>
<expression>
<![CDATA[
https://www.americanscientist.org/article/the-new-language-of-mathematics
https://www.alanzucconi.com/2016/07/01/raymarching/
https://www.researchgate.net/figure/Mandelbrots-plot-that-is-self-replicating-according-to-some-predetermined-rule-such-that_fig2_291014332
https://en.wikipedia.org/wiki/Mandelbrot_set#/media/File:Mandel.png
https://www.jamendo.com/track/5340/realite
CC-SA, CC-BY
https://www.jamendo.com/track/1614082/soothing-guitar-ambient
CC-ND, CC-NC, CC-BY
@jtomori
jtomori / env.sh
Last active March 5, 2019 17:52
A collection of bash scripts to help with managing VCA for remote rendering, for https://jurajtomori.wordpress.com/2019/03/05/setting-up-houdini-on-a-headless-linux-server/
#!/usr/bin/env bash
printf "\n\nInitializing pipeline environment \nyou can disable it by commenting out the last line in ~/.bashrc\n\n\n"
# Libs
export LD_LIBRARY_PATH=/var/lib/iray/juraj/local/usr/lib64/
# RS
export REDSHIFT_COREDATAPATH=/var/lib/iray/juraj/redshift_2_5_67
PATH=$PATH:$REDSHIFT_COREDATAPATH/bin