Skip to content

Instantly share code, notes, and snippets.

@ellisgeek
ellisgeek / CompileAvatarWindow.cs
Created April 15, 2020 03:56
Custom Avatar Exporter fix for 5.0.0 beta 7
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using CustomAvatar;
public class CompileAvatarWindow : EditorWindow
{
@ellisgeek
ellisgeek / PKGBUILD
Last active May 20, 2019 18:22
wpgtk.desktop
# Maintainer: Fernando Vasquez <fmorataya.04@gmail.com>
_gitname=wpgtk
pkgname="${_gitname}-git"
_gitbranch=master
_gitauthor=deviantfero # deviantfero
pkgver=r751.9145e4f
pkgrel=1
pkgdesc="A gui wallpaper chooser that changes your Openbox theme, GTK theme and Tint2 theme"
url="https://github.com/${_gitauthor}/${_gitname}"
@ellisgeek
ellisgeek / koopabot.py
Created March 8, 2019 03:59
basic bot for people to guess koopa freerunning times.
import logging
import irc.bot
import requests
import toml
import re
from copy import deepcopy
from time import time, strftime, localtime
class TwitchBot(irc.bot.SingleServerIRCBot):
@ellisgeek
ellisgeek / beep_mario_victory_theme.ps1
Created November 25, 2015 22:10 — forked from ataylor32/beep_mario_victory_theme.ps1
Beep: Mario Victory Theme
[Console]::Beep(130, 100)
[Console]::Beep(262, 100)
[Console]::Beep(330, 100)
[Console]::Beep(392, 100)
[Console]::Beep(523, 100)
[Console]::Beep(660, 100)
[Console]::Beep(784, 300)
[Console]::Beep(660, 300)
[Console]::Beep(146, 100)
[Console]::Beep(262, 100)
@ellisgeek
ellisgeek / Elevate.ps1
Last active November 28, 2022 10:51
Automatically relaunch Powershell script as Administrator
#region Elevate
function Elevate {
<#
.SYNOPSIS
Automatically (re)launch Powershell script as Administrator including parameters
.PARAMETER ScriptPath
Path to the script that should be launched. Defaults to the current script
.PARAMETER Parameters
A Hashtable of parameters that should be passed to the elevated script, where the "key" is the
parameter name and the "value" is the parameter value
@ellisgeek
ellisgeek / Import-Excel.ps1
Last active September 7, 2023 13:19
Import Excel file into powershell in a manner compatible with Import-Csv
function Import-Excel {
<#
.SYNOPSIS
Creates table-like custom objects from the items in a Excel file.
Requires Excel be installed!
.DESCRIPTION
The Import-Excel cmdlet creates table-like custom objects from the items in Excel
Worksheets.
Each column in the Excel Worksheet becomes a property of the custom object and the items in
rows become the property values. Import-Excel works on any file supported by Excel.
@ellisgeek
ellisgeek / bird.ps1
Last active December 25, 2015 22:00
Bird installs prey...
#region About
<#
.SYNOPSIS
Wrapper Script to ease the installation and status checking of the Prey NODE.js Client
.PARAMETER action
Action that should be executed, currently one of "install" or "status".
install: Installs Prey
status: Executes Prey's status built in status check to ensure that the
client is running smothly
.PARAMETER apiKey
@ellisgeek
ellisgeek / ks_f20_vb23_virtio.cfg
Created May 17, 2015 23:42
Vortexbox 2.3 kiscstart with virtio support
# VortexBox 2.3 BETA install
auth --enableshadow --passalgo=sha512
firewall --disable
firstboot --disable
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
network --bootproto=dhcp --device=eth0 --onboot=on --hostname=vortexbox.localdomain
rootpw vortexbox
selinux --disabled
@ellisgeek
ellisgeek / changecolor.sh
Created February 26, 2015 19:05
Updated changecolor.sh for sixsixfives ACID xfce4 theme.
#!/bin/sh
command -v gm >/dev/null 2>&1 || { echo >&2 "I require GraphicsMagick but it's not installed. Aborting."; exit 1; }
command -v sed >/dev/null 2>&1 || { echo >&2 "I require sed but it's not installed. Aborting."; exit 1; }
read -p "Please enter your new color in HEX(eg. #ffffff for white) " NEWCOLOR
echo "This may take a while"
find . -type f -exec sed -i 's/#a5e12d/'$NEWCOLOR'/g' {} \;
@ellisgeek
ellisgeek / getpcinfo.ps1
Last active November 9, 2018 02:58
YASIS - Yet Another System Info Script
# YASIC - Yet Another System Info Script
# Gets various information about the computer that it's run on
# Returned information:
# * Hostname
# * Manufacturer
# * Model
# * Serial Number
# * Asset Tag
# * Processor
# * Memory