Skip to content

Instantly share code, notes, and snippets.

View elorz007's full-sized avatar

Mikel Elorz elorz007

  • Grammarly
  • Munich
View GitHub Profile
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
<!DOCTYPE html>
<html>
<head>
<title>Test links</title>
</head>
<body>
<section id="test-links">
<h1>1. Javascript window location</h1>
<p>On chrome it opens in the same tab</p>
<code>window.location = "https://teams.microsoft.com/l/meetup-join/notarealmeeting";</code>
<!DOCTYPE html>
<html>
<head>
<title>Test links</title>
</head>
<body>
<section id="test-links">
<h1>1. a href file style 001</h1>
<a href="file://///host/folder/folder/file.ext">Link</a>
<code>&lt;a href=&quot;file://///host/folder/folder/file.ext&quot;&gt;Link&lt;/a&gt;</code>
<!DOCTYPE html>
<html>
<head>
<title>Test links</title>
</head>
<body>
<section id="test-links">
<h1>1. a href file style 001</h1>
<a href="file://///host/folder/folder/file.ext">Link</a>
<h1>2. a href file style 002</h1>