Skip to content

Instantly share code, notes, and snippets.

View Habmala's full-sized avatar

Sebastian Hellvin Habmala

View GitHub Profile
#!/bin/bash
#### pushoverNotifier ##########################
# Sends notifications through pushover.
# Pushover.net | pushover.net/api
##################################################
#### Some general settings #####################
apiToken=****
userKey=****
#!/bin/bash
#### CheckIP ###################################
# Checks if the IP-adress has changed from the
# last time the script ran.
##################################################
##################################################
savefile="$HOME/checkIP.log"
@Habmala
Habmala / mountNAS
Last active August 29, 2015 14:20
Mount NAS-drives
#! /bin/bash
#Mounts NAS, triggered by Enlightenment on login.
# Pings the NAS to make sure we have a connection before we try to mount.
ping -c 1 192.168.1.65 > /dev/null 2>&1 #Set your own internal IP-number
if [ $? != "0" ]; then
xmessage "Failed to ping NAS, will not try to mount external drives." -center -title "NAS/Network error" -default "Ok" -buttons "Ok":1,"Retry":2
case $? in
1)

Keybase proof

I hereby claim:

  • I am Habmala on github.
  • I am habmala (https://keybase.io/habmala) on keybase.
  • I have a public key whose fingerprint is 125C 6E24 DC93 B71F 20A0 D2DB 3943 DE2E FD33 0995

To claim this, I am signing this object:

@Habmala
Habmala / blogify
Created January 14, 2015 19:08
Adds some html to plaintext files. No error handeling
#! /bin/bash
###
#vad jag vill åstadkomma
#läs blogtexten
#
#byt ut [enter] mot <br>
#
#byt ut [enter enter] mot </p><p>
#
@Habmala
Habmala / listenpod
Last active August 29, 2015 14:10
scripts
#! /bin/bash
#v0.5 adds support for youtube-dl
######
# Script to prompt for a URI to download, play and remove a podcastfile or online video.
# Depends on wget, awk and mplayer and youtube-dl
#
#NO ERROR HANDELING IMPLEMENTED
#