Skip to content

Instantly share code, notes, and snippets.

View AGresvig's full-sized avatar

Aksel G. Gresvig AGresvig

View GitHub Profile
@AGresvig
AGresvig / Bleeding-edge-kodi-mesa-setup.sh
Created June 23, 2017 15:55
Installing bleeding edge Kodi with latest Mesa on Ubuntu
#!/bin/bash
# Script to set up bleeding edge Kodi with bleeding edge VAAPI/Mesa drivers on Ubuntu. Tested on 16.10 with Kodi
# First complete step 0 of Fritsch's guide here: http://forum.kodi.tv/showthread.php?tid=231955
# This guide takes over on step 1
# based on https://forum.kodi.tv/showthread.php?tid=231955&pid=2543877#pid2543877
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
@AGresvig
AGresvig / slackstatus.sh
Last active June 5, 2018 12:47
A command line utility for changing your Slack status.
#!/bin/bash
# Usage: slackstatus "My new status"
function slackstatus() {
slacktoken=$SLACK_OAUTH_TOKEN
apiurl="https://slack.com/api/users.profile.set?token="$slacktoken"&profile="
emoji=":mag:"
if [ $# -eq 0 ]