Some org-mode keybindings

Basic keybindings

  • C-c C-n and C-c C-p to cycle between headings.
  • TAB on a heading to expand/collapse.
  • M-up and M-down to reorder sections.
  • M-left and M-right to change the level of a heading.
  • M-RET inside a list to create a new bullet.
    • TAB in a new bullet to indent it.
    • S-left and S-right to change the bullet-style.

Checkboxes

  • [ ] M-S-RET gives a checkbox.
  • [X] C-c C-c checks it.
    • [X] TAB for subdivisions.
    • [X] When all subtasks are checked, so is the main one.
  • [X] A trailing [] in the line preceding a list of checkboxes contains a summary (2/3 in this case).

Publishing/Exporting

  • C-c C-e for everything.
    • h o exports to html.
    • # brings up common templates.

Some selinux notes

ls -Z file1
-rwxrw-r-- user1 group1 unconfined_u:object_r:user_home_t:s0 file1
  • SELinux contexts follow the SELinux user:role:type:level syntax.
  • Use the ps -eZ command to view the SELinux context for processes
  • and id -Z for users
  • seinfo -r (part of setools-console): shows all available user roles: such as guest, unconfined, webadm, sysadm, dbadm, etc.

also see /etc/selinux/targeted/context/users

JConsole over SSH with SOCKS Proxy

This is from here: Create the SSH socks proxy locally on some free port (e.g. 7777):

ssh -fN -D 7777 user@firewalled-host

Run JConsole by specifying the SOCKS proxy (e.g. localhost:7777) and the address for the JMX server (e.g. localhost:2147)

jconsole -J-DsocksProxyHost=localhost \
  -J-DsocksProxyPort=7777 \
  service:jmx:rmi:///jndi/rmi://localhost:2147/jmxrmi \
  -J-DsocksNonProxyHosts=