Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am rahix on github.
  • I am rahix (https://keybase.io/rahix) on keybase.
  • I have a public key whose fingerprint is 9831 9517 6D7F 838C BA47 620A 6D60 5F3B 9DDB 1DA5

To claim this, I am signing this object:

View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
View bootstrap.sh
#!/usr/bin/env bash
# Initial apt-get update
echo "Updating apt-get..."
sudo apt-get update > /dev/null
echo "Updating done."
echo "Installing apache2, g++, curl, libssl-dev, apache2-utils, git-core..."
sudo apt-get install apache2
sudo apt-get install g++ curl libssl-dev apache2-utils
@Rahix
Rahix / svg-animation.js
Created Aug 1, 2015
Example code for animated svg paths
View svg-animation.js
<script>
var state = 0;
function next_action()
{
var svg = document.getElementById("svg-container").contentDocument;
switch(state)
{
case 0:
svg.getElementById("DP1").setAttribute("class", "animatedInfoBubble");
state++;
@Rahix
Rahix / svg-internal-style.css
Created Aug 1, 2015
The stylesheet for animated svg paths.
View svg-internal-style.css
<style>
.hiddenPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
}
.animatedPath {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: dash 1s linear forwards;
@Rahix
Rahix / node_editor.qml
Created Mar 9, 2016
QML Node editor proof of concept. Works with my gtk themes, but may not work with others (non-dynamic spacing)
View node_editor.qml
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Extras 1.4
import QtQuick.Window 2.2
import QtPositioning 5.5
ApplicationWindow {
id: window
visible: true
width: 640
@Rahix
Rahix / addon.py
Last active Sep 12, 2016
Blender Plugin for my Spacestation Generator
View addon.py
import random
# This seems to be a well working system for loading the
# generator script, however I don't know
# wether it is required to look like this
if "bpy" in locals():
import importlib
importlib.reload(spacestation)
else:
from . import spacestation
@Rahix
Rahix / PKGBUILD-file-roller-vpk
Last active Jun 5, 2018
file-roller-vpk archlinux PKGBUILD
View PKGBUILD-file-roller-vpk
pkgname=file-roller-vpk
pkgver=3.28.0+33+g88d3ac6a
pkgrel=1
pkgdesc="File Roller with Valve Pak (VPK) support"
url="https://https://github.com/linux-source-tools/file-roller-vpk"
arch=(x86_64)
license=(GPL)
depends=(gtk3 libarchive file libnotify zip unzip)
makedepends=(intltool itstool docbook-xsl gnome-common git libnautilus-extension)
optdepends=("p7zip: 7z, arj, exe and encrypted zip files support"
@Rahix
Rahix / PKGBUILD
Last active Jan 10, 2018
gdk-pixbuf-vtf PKGBUILD
View PKGBUILD
pkgname=gdk-pixbuf-vtf
pkgver=2.1
pkgrel=1
pkgdesc="VTF GDK Pixbuf Loader library"
url="https://github.com/linux-source-tools/gdk-pixbuf-vtf"
arch=(x86_64)
license=(unknown)
depends=(gdk-pixbuf2)
makedepends=(cmake)
_commit=7fb2f837bd54af9296f43573877895d7e90b95fe
@Rahix
Rahix / PKGBUILD
Last active Sep 8, 2021
gimp-plugin-vtf PKGBUILD
View PKGBUILD
pkgname=gimp-plugin-vtf
pkgver=1.0+1+g76c40be
pkgrel=1
pkgdesc="VTF GIMP plugin"
url="https://github.com/linux-source-tools/gimp-plugin-vtf"
arch=(x86_64)
license=(unknown)
depends=(gimp)
makedepends=(cmake)
_commit=e351d8eafb7e7af3193d750ef61783e02ad61a8b