Category Archives: Tools

Linux: TVHeadend and systemd

I upgraded my HTPC to Debian Jessie, which uses systemd. As a result, though the timer script here still works, the pm-suspend scripts don’t. I changed to using systemd services.

/etc/systemd/system/resume.service:

Unit]
Description=User resume actions
After=suspend.target

[Service]
User=%i
Type=simple
ExecStartPre=/sbin/modprobe saa7164
ExecStart=/bin/systemctl start tvheadend

[Install]
WantedBy=suspend.target

/etc/systemd/system/suspend.service:

[Unit]
Description=User suspend actions
Before=sleep.target

[Service]
User=%i
Type=simple
Environment=DISPLAY=:0
ExecStartPre=/bin/systemctl stop tvheadend ; /home/hts/.epg/timer.sh
ExecStart=/sbin/rmmod saa7164

[Install]
WantedBy=sleep.target

The timer script referenced in the suspend service is the same one linked above.

Advertisements
Tagged , , ,

Linux: Multipurpose Live USB

I carry a multipurpose portable live persistent Sandisk Extreme USB 3.0 16GB in my bag for, obviously, multiple purposes:

  • Portable OS
  • System diagnostics
  • Data recovery
  • Video codec compatibility
  • (Limited) anonymity

Continue reading

Tagged , ,

Tools: RSS

I read a lot of RSS feeds. Generally, I read a mishmash of android, comics, cooking, gaming, linux, news, tech. And I like read them in a lot of different ways. I read webapps, terminal apps, and Android apps. When Google Reader closed down, I needed to find another way to sync and read all my feeds on all my devices. Finally, I think I’ve figured out my system.

Continue reading

Tagged , , , , , , , , , ,

Linux: Persistent Live USB with Extra Space

Apparently, persistent live USBs are fairly simple to set up. I originally learned to create one for Linux Mint Debian Edition from here. It turns out that the procedure is exactly the same for some other ISOs. Specifically, I tried it on CrunchBang because I couldn’t find a specific guide for CrunchBang Waldorf. I also prefer to have some extra space on my USB for other storage space, so I tried tacking on an extra partition at the end, and it worked! (Your mileage may vary; at least one OS, Elementary, didn’t work with this method.)

Continue reading

Tagged , , , , ,

Linux: Dotfiler (Dotfiles on Git)

I keep my dotfiles backed up on GitHub. Until yesterday, I did so by directly adding dotfiles to my repos from my home folder (~). This was silly, and I knew this was silly: it prevents you from creating any other git repositories in your home folder.

Continue reading

Tagged , , ,

Tools: IFTTT and Feed43

I discovered IFTTT recently. It takes triggers from a variety of sources and then takes various actions based on those triggers. For example, I like to watch GophersVids’ channel on Youtube. He uploads Let’s Play Skyrim videos, along with several others. So I have IFTTT trigger when he uploads a new video, and it takes action by sending me a message via Google Talk. Note that the YouTube trigger doesn’t seem to work for me, so I use the API with http://gdata.youtube.com/feeds/api/users/<username>/uploads.

Continue reading

Tagged , , ,