Skip to content

Instantly share code, notes, and snippets.

@Ionshard
Ionshard / steam.desktop
Created September 2, 2023 13:51
Steam Desktop Launcher on SteamOS
[Desktop Entry]
Name=Steam
Comment=Application for managing and playing games on Steam
Comment[pt_BR]=Aplicativo para jogar e gerenciar jogos no Steam
Comment[bg]=Приложение за ръководене и пускане на игри в Steam
Comment[cs]=Aplikace pro spravování a hraní her ve službě Steam
Comment[da]=Applikation til at håndtere og spille spil på Steam
Comment[nl]=Applicatie voor het beheer en het spelen van games op Steam
Comment[fi]=Steamin pelien hallintaan ja pelaamiseen tarkoitettu sovellus
Comment[fr]=Application de gestion et d'utilisation des jeux sur Steam
@Ionshard
Ionshard / re_brute.cljs
Created November 3, 2017 12:01
Attempted Re-frame wrapper around Brute
(ns magitek-clicker.re-brute
"A Re-frame wrapper around the brute Entity Component Systems manager"
(:require [brute.entity :as e]
[re-frame.core :as rf]))
(def db-key ::brute)
;;Events
(defn create-system
[db _]
@Ionshard
Ionshard / component.cljc
Created November 1, 2017 16:15
Clojure(script) code to allow creating components that behave like reagent wrapped react components.
(ns epiphany.component)
(defn extract-props [v]
(let [p (nth v 1 nil)]
(if (map? p) p)))
(defn extract-children [v]
(let [p (nth v 1 nil)
first-child (if (or (nil? p) (map? p)) 2 1)]
(if (> (count v) first-child)
@Ionshard
Ionshard / prepare-commit-msg
Last active August 29, 2015 14:18
Automatically Prepend Ticket ID to Git Commit Message Based on Feature Branch
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#If your current branch matches the pattern f/TICKET-ID1234 or f/TICKET-ID1234-some-description
@Ionshard
Ionshard / SiriusScrapper.py
Created February 10, 2012 05:17
A Web Scrapper for SIRIUS XM Radio Now Playing Information
#!/usr/bin/python
#Sirius Scrapper is used to log the now playing information of a SIRIUS stream
#Copyright (C) Corey Ling
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
@Ionshard
Ionshard / Overview.xml
Created February 10, 2011 18:35
EVE Online Overview
<?xml version="1.0" ?>
<eveOverview>
<tab bracket="pvpbrackets" name="PVP" overview="PVP" showAll="False" showNone="False" showSpecials="True"/>
<tab bracket="pvpbrackets" name="C" overview="Celestial" showAll="False" showNone="False" showSpecials="False"/>
<tab bracket="pvpbrackets" name="Situation" overview="Logistics" showAll="False" showNone="False" showSpecials="False"/>
<tab bracket="pvpbrackets" name="D" overview="Drones" showAll="False" showNone="False" showSpecials="False"/>
<tab bracket="pve" name="PVE" overview="PVE" showAll="True" showNone="False" showSpecials="True"/>
<useSmallColorTags value="0"/>
<applyOnlyToShips value="1"/>
<hideCorpTicker value="0"/>
## This needs to be configured. Please replace everything within the [] brackets
## This has to go into the global configuration file, so you need an admin to do it.
Alias /robots.txt [/path/to/your/feral/home]/www/[example.com]/public_html/robots.txt
Alias /favicon.ico [/path/to/your/feral/home]/www/[example.com].com/public_html/favicon.ico
Alias /media/ [/path/to/your/feral/home]/www/[example.com]/public_html/media/
<Directory [/path/to/your/feral/home]/www/[example.com]/public_html/>
#!/usr/bin/python
# Eli Criffield
import os
import urllib2
import re
import sys
from BeautifulSoup import BeautifulSoup
from time import sleep