Skip to content

Instantly share code, notes, and snippets.

View blooalien's full-sized avatar
🎯
Focusing

Bloo Alien blooalien

🎯
Focusing
View GitHub Profile
--[[
Call this file with the height input file and the desired output file as arguments.
example: lua ground_obj.lua hieght.txt ground.obj
]]--
-- Read the input height values.
input = io.open(arg[1], "r")
heights = {}
for line in input:lines() do
table.insert(heights, tonumber(line))
@blooalien
blooalien / two new blender palettes.py
Created March 14, 2015 00:59
This Blender Python script creates 2 palettes for texture painting - found at http://www.pasteall.org/57233/python
# This Blender Python script creates 2 palettes for texture painting
# Roel Koster (koelooptiemanna, kostex)
# 2015-03-13
# This script only works with 2.74 daily builds from dates later than 2015-03-12
# bpy.data.palettes wasn't accessible before that date.
# palettes based on tables found on http://www.swatchtool.com/
import bpy
from mathutils import Color
@blooalien
blooalien / README.md
Last active December 15, 2015 02:19
Python variant of Github Flavoured Markdown ported from http://github.github.com/github-flavored-markdown/

Sorry, RSA, I'm just not buying it

I want to be extremely clear about three things. First, this is my personal opinion – insert full standard disclaimer. Second, this is not a condemnation of everyone at RSA, present and past. I assume most of them are pretty okay, and that the problem is confined to a few specific points in the company. However, “unknown problem people making major decisions at RSA” is a bit unwieldy, so I will just say RSA. Third, I'm not calling for a total boycott on RSA. I work almost literally across the street from them and I don’t want to get beat up by roving gangs of cryptographers at the local Chipotle.

RSA's denial published last night is utter codswallop that denies pretty much everything in the world except the actual allegations put forth by Reuters and hinted at for months by [other sources](http://li

@blooalien
blooalien / markdown.md
Created January 12, 2017 10:51 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
@blooalien
blooalien / knotify.py
Created July 22, 2017 07:05 — forked from ducin/knotify.py
KNotify (KDE DBUS notifications); use it with: ./knotify.py "header" "content" (credited to http://www.documentroot.net/en/linux/knotify-python)
#!/usr/bin/python
import sys, dbus
knotify = dbus.SessionBus().get_object("org.kde.knotify", "/Notify")
try: title, text = sys.argv[1:3]
except: print 'Usage: knotify.py title text'; sys.exit(1)
knotify.event("warning", "kde", [], title, text, [], [], 0, 0, dbus_interface="org.kde.KNotify")
@blooalien
blooalien / keybase.md
Last active August 29, 2017 03:18
Bloo Alien (Me) at keybase.io

Keybase proof

I hereby claim:

  • I am blooalien on github.
  • I am blooalien (https://keybase.io/blooalien) on keybase.
  • I have a public key ASC9Y9Pc-7sp_5trwNKMzXJo0UQwaY1CX1ZvkHhqwlr6dwo

To claim this, I am signing this object:

@blooalien
blooalien / AndYetItMovesSteam.sh
Created May 9, 2018 20:59 — forked from janhaag/AndYetItMovesSteam.sh
Fixed AYIM startup script for linux steam
#!/bin/bash
### And Yet It Moves' Simple Startscript
### Run, jump and turn the world upside-down with And Yet It Moves!
### Enjoy!
### webs
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
libdir="lib"
bin=lib/AndYetItMoves
@blooalien
blooalien / dirwatcher
Last active January 3, 2019 14:20 — forked from kdart/dirwatcher
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
"""
Watch for new downloads in ~/Downloads (or another directory) and take actions.
The actions are determined by the file extension (determining the mime type).
"""
from __future__ import absolute_import
from __future__ import print_function
@blooalien
blooalien / README.md
Created September 7, 2012 18:29
Use 'kde-open' to load those pesky Windows .url files in your default web browser.

urlopen.py

A simple python script for KDE users which will use 'kde-open' to open those pesky Windows .url files in your default web browser.

License

Public Domain - This script is entirely too simple for me to care how it's used. Just enjoy it...