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 / 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 / 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 / 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 / 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
# 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 / kodi.conf
Last active January 2, 2016 14:09
Upstart script to start Kodi - It sets nice levels to aid audio
# kodi-upstart
# starts Kodi on startup by using xinit.
# by default runs as xbmc user, to change edit below.
env USER=xbmc
description "Kodi-barebones-upstart-script"
author "Matt Filetto - Tweaked by uNiversal"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
@un1versal
un1versal / sensors3.conf
Created January 8, 2014 10:24
/etc/sensors3.conf For ION1
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
@un1versal
un1versal / gcs.sh
Last active January 2, 2016 14:09
Git compile Script For Nvidia based systems like IONS with various Atom CPU's v1 is Nvidia GT9400 v2 is Nvidia GT210 v3 is Nvidia GT430 v4 is Nvidia GT520 v5 is Nvidia GT610 Any Nvidia GPU's base + any CPU type.
#!/bin/bash
###################################################################################
# ___ ___ __ #
# / _ \ / __\ / _\ # #
# / /_\/ / / \ \ # Git Compile Script #
# / /_\\_ / /____ _\ \ _ # Backup Your system before use! #
# \____(_) \____(_) \__/(_) # #
# #
###################################################################################
@un1versal
un1versal / sensors3.conf
Created January 9, 2014 12:13
/etc/sensors3.conf for ION 5
# libsensors configuration file
# -----------------------------
#
# This default configuration file only includes statements which do not
# differ from one mainboard to the next. Only label, compute and set
# statements for internal voltage and temperature sensors are included.
#
# In general, local changes should not be added to this file, but rather
# placed in custom configuration files located in /etc/sensors.d. This
# approach makes further updates much easier.
@un1versal
un1versal / Makefile
Last active January 2, 2016 22:39
taglib Makefile
# A quick and dirty Makefile to download/build and install taglib
#
# Usage:
# make
# sudo make install
#
# lib name, version
LIBNAME=taglib
VERSION=1.8
SOURCE=$(LIBNAME)-$(VERSION)