Commit graph

222 commits

Author SHA1 Message Date
John Shuping
97f7d1ebd4 role for the hashicorp tool suite 2016-02-19 12:35:03 -05:00
Pig Monkey
87f1b9a2c2 add postgresql to readme 2016-02-18 14:00:33 -08:00
Pig Monkey
9cf3c330c0 prevent disk writes when idle
https://wiki.archlinux.org/index.php/PostgreSQL#Prevent_disk_writes_when_idle
2016-02-18 12:19:53 -08:00
Pig Monkey
b8e3c407ae disable synchronous commits
http://www.postgresql.org/docs/current/static/runtime-config-wal.html#GUC-SYNCHRONOUS-COMMIT
2016-02-18 12:15:37 -08:00
Pig Monkey
ea522fcb77 install postgresql 2016-02-17 17:43:47 -08:00
Peter Hogg
363d9ea1ad Merge pull request #21 from jshuping/ais
homemade AIS receiver with OpenCPN
2016-02-17 09:00:22 -08:00
Pig Monkey
67d7423449 add volume adjustment script
This seems kind of lame but solves two problems.

One of my USB audio devices only shows up with a Speaker channel, so I
can't just use my keyboard shortcut to adjust Master all the time.
Trying to adjust channels that don't exist doesn't hurt anything, so I
might as well just adjust all 3 outputs that I potentially care about.

Sometimes I'll end up with Capture off and Mic unmuted or vice versa.
Toggling them both together means they're always in the same state,
making it easier to figure out what is going on.
2016-02-17 08:53:10 -08:00
John Shuping
9c620f9499 remove unnecessary tags 2016-02-17 11:16:58 -05:00
Pig Monkey
3ff8ffbc10 avoid log rotation recursion of doom 2016-02-16 21:42:32 -08:00
Pig Monkey
617a71b1df swap python-keyring backend 2016-02-16 21:42:25 -08:00
Pig Monkey
8a807a336c make dbus available to mailsync service
This may be needed if imap/smtp passwords are stored in gnome-keyring or
somesuch.
2016-02-16 21:41:27 -08:00
Pig Monkey
50e5c72d74 set user uid
I'm assuming this won't break anything because most users will already
be 1000. Existing users whose primary accounts have a different UID
should set the var appropriately.
2016-02-16 21:40:28 -08:00
John Shuping
7db2a0b026 homemade AIS receiver with OpenCPN
(see
https://www.reddit.com/r/RTLSDR/comments/1mcikt/for_the_nautical_set_rtlsdr_with_grais_and_opencpn/)
2016-02-16 21:16:05 -05:00
Pig Monkey
5c9f6902f0 use a timer to poll for battery state
Existing users should remove the old udev rules.

    # rm /etc/udev/rules.d/99-lowbat.rules

notify-send doesn't work since the script is being called as root, but
that is fixable. This at least gets the low battery notification via
wall and suspension at critical levels working consistently, unlike the
unreliable udev approach.
2016-02-14 17:02:43 -08:00
Peter Hogg
a03f170dc1 Merge pull request #16 from jshuping/radio_progs
add basic ham radio stuff. Fixes #7
2016-02-12 12:55:50 -08:00
John Shuping
63aa30dc1f address feedback for PR #16 2016-02-12 15:33:42 -05:00
John Shuping
8a9d486a4d add basic ham radio stuff. Fixes #7 2016-02-11 11:36:45 -05:00
Pig Monkey
459a579858 Merge branch 'master' of github.com:pigmonkey/spark 2016-02-09 19:32:34 -08:00
Pig Monkey
c1d4b8ed0c install new python-keyring backend 2016-02-09 19:32:21 -08:00
Peter Hogg
1147695894 Merge pull request #20 from brett/beets
add python acoustid support
2016-02-07 19:38:23 -08:00
Brett Eisenberg
e3521cbce8 add python acoustid support 2016-02-07 11:35:12 -08:00
Pig Monkey
29a395bc0b add qcode to browser chooser
easily open URLs on your phone!
2016-02-05 18:11:21 -08:00
Pig Monkey
9e9f078483 add qcode script
To make this script particularly useful, configure a keyboard shortcut
for it and tell i3 to float the feh window.

Example:
4f7c1c9ea6

Original script source:
https://raw.githubusercontent.com/lathan/dotfiles/master/scripts/clipqr.sh
2016-02-05 18:09:57 -08:00
Pig Monkey
009998dbb6 use firejail 0.9.38 symlink invocation
https://l3net.wordpress.com/2016/02/04/firejail-0-9-38-release-announcement/

Existing users will need to remove the old wrapper scripts first

    # rm /usr/local/bin{chromium,firefox,weechat,rtorrent}
2016-02-05 18:04:53 -08:00
Pig Monkey
55f2e67694 set slim background
Image stolen from reddit user Dr_Chew, who seems not to care about
licesning.

https://www.reddit.com/r/Cyberpunk/comments/3ynwwg/hosaka_onosendai_cyberspace_7_logo/
2016-02-04 09:21:11 -08:00
Pig Monkey
cc4eb05b95 update firewarden 2016-01-31 17:55:18 -08:00
Pig Monkey
4c65124e31 quote zathura args to avoid weirdness 2016-01-31 17:44:32 -08:00
Pig Monkey
bc8d833a17 merge firewarden and disposable
Existing users should remove /usr/local/bin/disposable
2016-01-31 17:35:40 -08:00
Pig Monkey
577c9bfc67 jail zathura
For shady PDFs, firewarden is still the better solution, but jailing
zathura with the generic profile isn't going to hurt anything when
viewing trusted docs.
2016-01-30 17:53:55 -08:00
Pig Monkey
a71ce2b0cf merge tlp package tasks 2016-01-30 16:17:47 -08:00
Pig Monkey
8d3a7c8533 add cron handler 2016-01-30 16:10:21 -08:00
Pig Monkey
157805398d breakout cron role 2016-01-30 16:07:54 -08:00
Pig Monkey
27064030a3 add sshd handler 2016-01-30 16:05:33 -08:00
Pig Monkey
2e84ecca61 always prep sshd
There isn't any reason not to do this. We still only actually enable the
service when asked to in the config.
2016-01-30 16:03:08 -08:00
Pig Monkey
48912b59db add handlers
This should mostly eliminate the need to manually reload/restart
services (or reboot the machine) after updates.
2016-01-30 16:01:47 -08:00
Pig Monkey
87839409bc update nmtrust 2016-01-30 15:17:42 -08:00
Pig Monkey
e58061025d breakout cups tasks to role 2016-01-30 14:37:55 -08:00
Pig Monkey
d55cc7d734 better git-annex config options 2016-01-30 14:17:47 -08:00
Pig Monkey
9e362a2999 add clean up tasks for toggling units in config 2016-01-30 14:17:01 -08:00
Pig Monkey
499cc7463b reorganize lowbatt script
Check for status and only continue if the battery is discharging.
2016-01-30 13:33:43 -08:00
Pig Monkey
479312353d fix rfkill masking
I think I originally got this from the official TLP docs, but
systemd-rfkill isn't a template, so we don't actually want the @ in
there.

Fixes some of #18.
2016-01-29 08:37:45 -08:00
Pig Monkey
173a2a69e7 fix typo 2016-01-28 22:32:23 -08:00
Pig Monkey
48c3184c9b refactor low battery handling
udev was not distinguishing between multiple batteries. It was
suspending the system when the secondary battery reached the threshold,
even if the primary battery was still full, which is not the desired
behaviour.

There may be a way to tell udev which battery we care about, but it was
easier for me to just write a shell script that handles all the logic.
The script warns when the primary battery is low and suspends when the
primary battery is critical.

I tried calling the script with a single udev rule with a capacity range
of 0-10, however that resulted in no warnings and suspending only when
the battery went to 0%. Not useful. With two rules with different ranges
like this, the system is consistently suspended at 5%, which is what I
want. I sometimes get warnings in the 6-10% range, but not consistently.
I don't know why.

If the warnings won't work, we could create a systemd timer to call the
script every ~60 seconds or so. That will definitely work, but it seems
like udev should be able to handle this.
2016-01-28 22:25:29 -08:00
Pig Monkey
7531a055b2 warn on low battery
Addresses part of #18
2016-01-28 20:27:55 -08:00
Pig Monkey
4faff9eff5 install ethtool
needed for TLP to disable Wake On LAN
2016-01-28 19:45:47 -08:00
Pig Monkey
f3d0466320 suspend on low battery
This really should hibernate rather than suspend, but hibernation
doesn't work on my system for some reason.

Partially addresses #18
2016-01-28 19:34:46 -08:00
Pig Monkey
b8a827504f install: support suspend
After making these changes to an existing system, rebuild grub and make
images.

    # grub-mkconfig -o /boot/grub/grub.cfg
    # mkinitcpio -p linux
    # mkinitcpio -p linux-grsec
2016-01-28 19:29:06 -08:00
Peter Hogg
1086c99424 Merge pull request #17 from jshuping/more_tools
add pv and minicom
2016-01-28 19:04:30 -08:00
John Shuping
56b1d03347 add pv and minicom 2016-01-27 18:27:20 -05:00
Peter Hogg
f0a09ee8d1 Merge pull request #15 from jshuping/vbox_guest_utils
add virtualbox-guest-utils
2016-01-27 11:16:10 -08:00