Wednesday, October 25, 2017

ansible debugging new tasks

When adding new tasks to ansible playbook it's handy do bind them between the following other two tasks to make debugging simpler.


- name: Print variable I am using
  debug:
    msg: "my variable: {{ foo }}"

# ... whatever i'm adding ... which does something to {{ foo }}

- fail:
    msg: "Stopping so I can easily re-run"

Saturday, July 2, 2016

Fedora 24 Gnome Shell Window Size

To make the default title bar smaller in Gnome 3.20 on Fedora 24 create the following file and restart with "killall -3 gnome-shell".
$ cat ~/.config/gtk-3.0/gtk.css 
/* shrink headebars */
headerbar {
    min-height: 24px;
    padding-left: 2px; /* same as childrens vertical margins for nicer proportions */
    padding-right: 2px;
}

headerbar entry,
headerbar spinbutton,
headerbar button,
headerbar separator {
    margin-top: 2px; /* same as headerbar side padding for nicer proportions */
    margin-bottom: 2px;
}

/* shrink ssd titlebars */
.default-decoration {
    min-height: 0; /* let the entry and button drive the titlebar size */ 
    padding: 2px
}

.default-decoration .titlebutton {
    min-height: 16px; /* tweak these two props to reduce button size */
    min-width: 16px;
}
$ 

Thursday, June 16, 2016

Fix all the permissions uid/gid

To reset UID/GID on all files:

# for i in $(rpm -qa); do rpm --setugids $i; done

To reset permissions on all files:

# for i in $(rpm -qa); do rpm --setperms $i; done

Wednesday, June 1, 2016

gnome-shell super maximize

Ctrl-Alt-Enter

  • This is a two way toggle. Type it once to "super maximize". Type it again to un-"super maximize".
  • In gnome-shell this will maximize the currently focused window to the point that its titlebar will not be seen.
  • It will only do this to the Terminal (including xterm).
  • I've hit this by accident a few times but didn't know how to undo it, so I'm logging it here should I forget.
  • It's not listed on Gnome.org Keyboard Shortcuts or my first 5 Google results.

Monday, May 9, 2016

synergy dekstop sharing

I bought access to Synergy from the company supporting it because I've been using it for years and they deserve a few bucks. I use EPEL but don't want it clobber the version that I download from synergy-project.org. Thus, I have the following in my epel.repo:

$ sudo head /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
exclude=synergy*

$
This is another one of those posts I do to remind myself about what I did.