Skip to content

Instantly share code, notes, and snippets.

View un1versal's full-sized avatar

un1versal

  • error! out of memory
  • Scattered over the Atlantic
View GitHub Profile
@un1versal
un1versal / OnChannelMessage.eventbotnoise.kvs
Last active April 26, 2016 13:01
Silence #kvirc IRC channel webhook botnoise on labeling events
event(OnChannelMessage,eventbotnoise)
{
if ($context.networkName == "freenode")
{
%nick = $0
%chan = #kvirc
%stripcolor = $str.stripcolors($3)
if($chan.name != %chan)
{
# kodi-upstart
# Starts kodi on startup by using xinit.
# by default runs as kodi, to change edit below.
env USER=kodi
description "Kodi-barebones-upstart-script"
author "Matt Filetto - Tweaked by un1versal"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
@un1versal
un1versal / dep.sh
Last active February 9, 2017 18:08
Dependency / ppa checkeradder
#!/bin/bash
if [ "$(id -u)" != "0" ]
then
echo -e '\e[1;31m'" ERROR! "$(basename $0)" must be run with sudo\n" 1>&2
echo -e '\e[1;36m'" sudo "$(basename $0)" <option>"'\e[0m' 1>&2
usage
exit 1
fi
@un1versal
un1versal / README.md
Last active July 7, 2016 19:07
wget http://git.io/vsrbz -O revamped.sh -O revamped.sh && sudo chmod 755 revamped.sh
                  ____________________    ______________  ______________________________ 
                  ___  __ \__  ____/_ |  / /__    |__   |/  /__  __ \( )__  ____/__  __ \
                  __  /_/ /_  __/  __ | / /__  /| |_  /|_/ /__  /_/ /|/__  __/  __  / / /
                  _  _, _/_  /___  __ |/ / _  ___ |  /  / / _  ____/   _  /___  _  /_/ / 
                  /_/ |_| /_____/  _____/  /_/  |_/_/  /_/  /_/        /_____/  /_____/  
                                                                       

                      | THEMES FOR CONFLUENCE SKIN FOR KODI © universal 2013-2015 |
@un1versal
un1versal / kodi.service
Last active February 9, 2017 18:08
wget https://gist.github.com/uNiversaI/f853ed9f6b0d02bea88c/raw -O /etc/systemd/system/kodi.service
[Unit]
Description = Start Kodi using xinit
Wants = network-online.target
After = systemd-user-sessions.service network-online.target sound.target
[Service]
User = kodi
Group = kodi
Type = simple
PAMName = login
@un1versal
un1versal / custom-actions.pkla
Last active November 12, 2015 07:47
sudo wget https://gist.githubusercontent.com/un1versal/4930c59beed92071f6c5/raw -O /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
[Actions for kodi user]
Identity=unix-user:kodi
Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesk​top.udisks.*;org.freedesktop.udisks.filesystem-mount;org.freedesktop.login1.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes
@un1versal
un1versal / 60-cdrom_id.rules
Created March 1, 2014 14:06
usage: sudo wget https://gist.github.com/uNiversaI/9290192/raw -O /etc/udev/rules.d/60-cdrom_id.rules
ACTION=="remove", GOTO="cdrom_end"
SUBSYSTEM!="block", GOTO="cdrom_end"
KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
# unconditionally tag device as CDROM
KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
# media eject button pressed
ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $tempnode", GOTO="c$
@un1versal
un1versal / gcs.sh
Last active August 29, 2015 13:56
nvidia version - personal version without any apple stuffs as its unused.
#!/bin/bash
command; #ret="$?"
arg="$*"
gpu=$(lspci | grep VGA | awk -F: {' print $3 '} | awk {'print $1'} |tr [a-z] [A-Z])
build_dir="/home/setup"
app="kodi"
git_dir="$app-git"
kodi_git="git://github.com/xbmc/xbmc.git $git_dir"
branch="Master"
@un1versal
un1versal / gcs.sh
Last active August 29, 2015 13:56
gcs.sh modified by pulsar78 ideal for Intel nuc's
#!/bin/bash
#
echo
echo ':::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::'
echo '::: ___ ___ __ :::'
echo '::: / _ \ / __\ / _\ | :::'
echo ':: / /_\/ / / \ \ |: Git Compile Script gplv2 ::'
echo ':: / /_\\_ / /____ _\ \ _ |: Backup Your system before use! ::'
echo '::: \____(_) \____(_) \__/(_) | :::'
echo '::: :::'
@un1versal
un1versal / Makefile
Last active January 4, 2016 21:09
Libbluray Makefile for git
#
# libbluray build script for OSX darwin.
#
# A quick and dirty Makefile to download/build and install libbluray
#
# Linux: builds using the existing libbluray git master and make system.
#
# Usage:
# make
# sudo make install