Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
| #!/bin/bash | |
| # | |
| # Open new Terminal tabs from the command line | |
| # | |
| # Author: Justin Hileman (http://justinhileman.com) | |
| # | |
| # Installation: | |
| # Add the following function to your `.bashrc` or `.bash_profile`, | |
| # or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc` | |
| # |
| // early experiments with node had mysterious double requests | |
| // turned out these were for the stoopid favicon | |
| // here's how to short-circuit those requests | |
| // and stop seeing 404 errors in your client console | |
| var http = require('http'); | |
| http.createServer(function (q, r) { | |
| // control for favicon |
| # create the template | |
| template = PageOfflineTemplate.new | |
| template.quote = quote | |
| template.pages = quote.build_pages | |
| # Here I render a template with layout to a string then a PDF | |
| pdf = PDFKit.new template.render_to_string(:template=>"quotes/review.html.haml") | |
| ; Change your hotkey here | |
| ^1:: | |
| DetectHiddenWindows, on | |
| IfWinExist ahk_class Console_2_Main | |
| { | |
| IfWinActive ahk_class Console_2_Main | |
| { | |
| WinHide ahk_clasas Console_2_Main | |
| WinActivate ahk_class Shell_TrayWnd |
| // http://stackoverflow.com/questions/1219860/javascript-jquery-html-encoding?answertab=votes#tab-top | |
| function htmlEncode(value){ | |
| "use strict"; | |
| //create a in-memory div, set it's inner text(which jQuery automatically encodes) | |
| //then grab the encoded contents back out. The div never exists on the page. | |
| return $('<div/>').text(value).html(); | |
| } | |
| function htmlDecode(value){ | |
| "use strict"; |
| /* This needs the Skein functions from the NIST distribution. You can | |
| * get the zip file from http://www.schneier.com/skein.html ("Source | |
| * code and test vectors for Skein and Threefish (12 MB)"), and then | |
| * you need to stick the contents of NIST/CD/Reference_Implementation | |
| * in the same directory as this file. | |
| * | |
| * Compile with clang -std=c99 *.c -lcurl -lpthread -O3 -o xkcd-skein | |
| */ | |
| #include <time.h> |
| #!/bin/sh | |
| # | |
| # Example showing use of getopt detection and use of GNU enhanced getopt | |
| # to handle arguments containing whitespace. | |
| # | |
| # Written in 2004 by Hoylen Sue <hoylen@hoylen.com> | |
| # | |
| # To the extent possible under law, the author(s) have dedicated all copyright and | |
| # related and neighboring rights to this software to the public domain worldwide. | |
| # This software is distributed without any warranty. |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |