To create an anchor to a heading in github flavored markdown.
Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:
[create an anchor](#anchors-in-markdown)
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| /* ---------------------------------------------------------- */ | |
| /* */ | |
| /* A media query that captures: */ | |
| /* */ | |
| /* - Retina iOS devices */ | |
| /* - Retina Macs running Safari */ | |
| /* - High DPI Windows PCs running IE 8 and above */ | |
| /* - Low DPI Windows PCs running IE, zoomed in */ | |
| /* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
| /* - Android hdpi devices and above */ |
| Function.prototype.runOnBackgroundThread = function (aCallback) { | |
| var _blob = new Blob(['onmessage = '+this.toString()],{"type":"text/javascript"}); | |
| var _worker = new Worker((webkitURL.createObjectURL || URL.createObjectURL)(_blob)); | |
| _worker.onmessage = aCallback; | |
| _worker.postMessage(); | |
| } | |
| var _test = function () { | |
| postMessage((1+1).toString()); | |
| } |
| # these make the ec2 commands just work | |
| export AWS_ACCESS_KEY=[AWS access key] | |
| export AWS_SECRET_KEY=[AWS secret] | |
| # fetch the instance id | |
| export INSTANCE_ID=$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id) | |
| #grep out the tag you're looking for, in this case "Name" | |
| export APP_TAG=$(ec2-describe-tags | grep $INSTANCE_ID | grep -oE "Name\\W+(.+)$" | grep -oE "\\W.+$") |
| #!/bin/sh | |
| # Credits to: | |
| # - http://vstone.eu/reducing-vagrant-box-size/ | |
| # - https://github.com/mitchellh/vagrant/issues/343 | |
| aptitude -y purge ri | |
| aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
| aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
| aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
| // HELPER: #key_value | |
| // | |
| // Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}} | |
| // | |
| // Iterate over an object, setting 'key' and 'value' for each property in | |
| // the object. | |
| Handlebars.registerHelper("key_value", function(obj, options) { | |
| var buffer = "", | |
| key; |
| #!/usr/bin/ruby | |
| require 'socket' | |
| HOSTNAME = `facter hostname`.chomp | |
| SOCKET = UDPSocket.new | |
| IO.popen(["curl","http://localhost:8000/haproxy;csv"]) do |haproxy_csv| | |
| header_line = haproxy_csv.gets | |
| header_line.gsub!(/# /,'') | |
| HEADERS = header_line.split(/,/)[0..-2] |