HTTP Strict Transport Security

HTTP Strict Transport Security HSTS is a web security policy mechanism whereby a web server declares that complying user agents such as a web browser are to interact with it using only secure HTTP connections i.e. HTTP layered over TLS/SSL[1]. HSTS is an IETF standards track protocol and is specified in RFC 6797.

via HTTP Strict Transport Security – Wikipedia, the free encyclopedia.

Unity Reboot Launcher To Quickly Reboot In A Different OS Updated For Ubuntu 12.10 And 13.04 ~ Web Upd8: Ubuntu / Linux blog

Unity Reboot is a custom Unity launcher that can be used to quickly reboot into a different OS / Linux distribution, useful for those who dual boot or triple boot or… it should work with any number of operating systems, including Windows, various Linux distributions like Ubuntu and Fedora, etc.. This isn’t just for Unity and it should also work with docks that support Unity quicklists, like DockBarX, Cairo Dock or Plank.

via Unity Reboot Launcher To Quickly Reboot In A Different OS Updated For Ubuntu 12.10 And 13.04 ~ Web Upd8: Ubuntu / Linux blog.

Gnome 3 Tweaks and Extensions | 1N73RNET

Change touchpad delay after typing This has been super annoying because the default delay for the touchpad is 2 seconds! Here’s how to set it to whatever delay you want.First, turn off the “disable touchpad when typing setting” in your system settings and then open a terminal and enter the following command.

syndaemon -d -K -i 0.3s

via Gnome 3 Tweaks and Extensions | 1N73RNET.

(also works for XFCE)

Tabbed terminals on windows

I can’t believe it’s taken me this long as an early adopter of gnome-multi-term (RIP) on Gnome but I’ve finally looked into tabbed terminals on windows.

For putty, there is tty+ and putty manager.  Putty Manager seems better, but tty+ also works with kitty.

For cmd.exe shells as well as cygwin bash shells, there is console2.

Cristiano De Michele

Tips for GNU Emacs on Windows

(Emacs 24 assumed). First of all, add the marmalade repo to your .emacs.


(require 'package)
(add-to-list 'package-archives
'("marmalade" .
"http://marmalade-repo.org/packages/"))
(package-initialize)

Then with list-packages, install color-theme

Put these in your .emacs to make a life a little more attractive:


;; change font
(set-face-font 'default '"-outline-Consolas-normal-r-normal-normal-14-97-96-96-c-*-iso8859-1"))
(add-hook 'before-make-frame-hook
(lambda ()
(set-frame-font "-outline-Consolas-normal-r-normal-normal-14-97-96-96-c-*-iso8859-1")
))

;; change color-theme
(require 'color-theme)
(color-theme-initialize)
(color-theme-calm-forest)

You might also like to put the below in


(auto-compression-mode t nil (jka-compr))
(case-fold-search t)
(current-language-environment "English")
(default-input-method "rfc1345")
(develock-auto-enable nil)
(efs-use-passive-mode t)
(global-font-lock-mode t nil (font-lock))
(inhibit-startup-screen t)
(query-user-mail-address nil)
(scroll-bar-mode (quote right))
(show-paren-mode t nil (paren))
(time-stamp-format "%02d/%02m/%04y %02H:%02M:%02S %u")
(tool-bar-mode nil nil (tool-bar))
(transient-mark-mode t)
(whitespace-silent t)

And this to stop emacs backup files littering everywhere


;; no backups
(setq
backup-by-copying t ; don't clobber symlinks
backup-directory-alist
'(("." . "~/.emacs.d/.backups")) ; don't litter my fs tree
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups

Also install the session package and enable the recent file menu


(add-hook 'after-init-hook 'session-initialize)
(recentf-mode 1)

Besides the specific font which you may want to change, all these are applicable to other platforms.

Fix “Internet Explorer cannot display the webpage” for Oracle Enterprise Manager

If you cannot view Oracle Enterprise Manager in IE, but can in other browsers, chances are you’ve hit the MS IE ssl keysize patch.

A patch does exist for this (the problem is due to OEM using a 512 bit cert) but if you like you can frontend EM with Apache.

Put this inside the ssl VirtualHost in ssl.conf (on Redhat / Centos) and restart apache.

# Fix 512 bit oracle EM Cert & IE
SSLProxyEngine on
ProxyPass / https://your-localhost.com:1158/ connectiontimeout=5 timeout=30
ProxyPassReverse / https://your-localhost.com:1158/

then just go to EM with https://your-localhost.com

Launch gnome-terminal from emacs

Add this to your .emacs to allow shift-f1 to launch a gnome terminal

(defun launch-gnome-term ()
"launch gnome-terminal"
(interactive)
(shell-command "gnome-terminal"))

(global-set-key [(shift f1)] `launch-gnome-term)

The good thing about this is it launches the terminal in the directory of the file you are working on… ready for diff’ing, scp’ing etc.

Obviously this can be customized to launch any process you desire.

Best linux distribution for a Geode CPU

As found in the Viglen MPC-L: CrunchBang Linux 10 (i386).

Important! Specify these two options to the kernel at boot (tab to edit) on installation:

  • cdrom-detect/try-usb=true (presuming you are installing from USB key, may already be there)
  • pci=noacpi

Once you have installed, on first boot you should tab edit the grub line again and put in pci=noacpi, then make this permanent by sudo’ing to root, and adding

GRUB_CMDLINE_LINUX=”pci=noacpi”

to /etc/default/grub, then run update-grub.

You might also want to disable X: update-rc.d gdm remove.

Also see here for details on installing ubuntu.