Various snippets of UNIX code that might just be a waste if I keep them to myself. This blog is very much a work in progress and is mainly for myself. Yes, I should probably host code on one of those fancy code hosting web sites and I probably will eventually.
Friday, February 6, 2015
Perl/Math::Bezier ... plotting a bezier curve given some control points
doesn't actually draw anything - just gets the data points necessary to plot one. I did this because I needed a series of 22 numbers starting with 0.0125 that gradually ramped up to 7.4 with step getting larger for each iteration.
Wednesday, February 4, 2015
Saturday, January 31, 2015
Blender/Python: Plot stars from the HYG data
Plots stars on the inside of a sphere using three different types of solids.
Most stars are tetrahedrons, brighter stars are octahedrons and the brightest stars are plotted as dodecahedrons.
ps. feel free to use this however you want but please don't republish the code as I don't want multiple copies all over the internet as I am likely to update this script every now and then... oh and if you make a million dollars out of it somehow, be sure to donate some of that money to the needy. If I ever find a file hosting service that I like, I'll post the completed .blend file there to save the trouble of running it seeing how the whole catalog can take six or more hours to run...
Thursday, January 29, 2015
Blender/Python: creating a tetrahedron
creating a tetrahedron in Python for blender
(Code extracted from larger code available all over the interwebs ie. it is hard to give an actual source)
Wednesday, November 5, 2014
Monday, July 28, 2014
Saturday, May 31, 2014
basic .xsession ....
set -x
XLIB_SKIP_ARGB_VISUALS=1
export XLIB_SKIP_ARGB_VISUALS
# (sleep 300 && /usr/X11R6/bin/xset dpms 3600 4800 10800 ) &
# PATH=/usr/local/kde4/bin:$PATH
# export PATH
#---------------
/usr/local/bin/unclutter &
/usr/local/bin/xset r rate 750 &
# /usr/local/bin/xset dpms 3200 4800 6400 &
(sleep 300 && /usr/local/bin/xset dpms 3600 4800 10800 ) &
/usr/local/bin/xset b 5 &
/usr/local/bin/xset s 7200 &
/usr/local/bin/mouseclock -fn lucidasans-18 &
/usr/local/bin/redshift -m vidmode -l -33:153 &
/usr/local/bin/xrandr -o right
/usr/local/bin/synergys
# /usr/local/bin/firefox -splash &
/home/zero/bin/autocopy-mike-blender.sh > /home/zero/bin/autocopy-mike-blender.log 2>&1 &
xmodmap -e "keycode 223 = XF86Standby"
xmodmap -e "keycode 160 = XF86AudioMute"
xmodmap -e "keycode 174 = XF86AudioLowerVolume"
xmodmap -e "keycode 176 = XF86AudioRaiseVolume"
xmodmap -e "keycode 162 = XF86AudioPlay XF86AudioPause"
xmodmap -e "keycode 164 = XF86AudioStop"
xmodmap -e "keycode 144 = XF86AudioPrev"
xmodmap -e "keycode 153 = XF86AudioNext"
xmodmap -e "keycode 178 = XF86WWW"
xmodmap -e "keycode 236 = XF86Mail"
xmodmap -e "keycode 229 = XF86Search"
xmodmap -e "keycode 230 = XF86Go"
# sleep 60
mixer vol 66
# mixer igain 0
# mixer ogain 99
mixer mic 0
mixer rec 55
#---------------
# afterstep ||
startxfce4 ||
startkde ||
xterm
Subscribe to:
Posts (Atom)