Skip to content

Instantly share code, notes, and snippets.

@mihsar
mihsar / check_site.sh
Last active October 25, 2025 16:07
check_site.sh — quick DNS and SSL health check
#!/usr/bin/env bash
#
# check_site.sh — quick DNS and SSL health check
# Usage: ./check_site.sh example.com
#
# Quick run from gist:
# bash <(curl -s https://gist.githubusercontent.com/mihsar/c83ece9bea04dce2ecfa68bdd9dc88b0/raw/check_site.sh) yourdomain.com
#
# Optional: Install it system-wide
# sudo curl -sL https://gist.githubusercontent.com/mihsar/c83ece9bea04dce2ecfa68bdd9dc88b0/raw/check_site.sh -o /usr/local/bin/check_site.sh
@mihsar
mihsar / how-to-patch-with-git-diff-apply.md
Last active February 10, 2023 14:14 — forked from nepsilon/how-to-git-patch-diff.md
How to generate and apply patches with git? — First published in fullweb.io issue #33

How to generate and apply patches with git?

It sometimes happen you need change code on a machine from which you cannot push to the repo. You’re ready to copy/paste what diff outputs to your local working copy.

You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:

1. Generate the patch:

git diff > some-changes.patch
@mihsar
mihsar / index.html
Created March 13, 2021 23:21
JS Bin Homework Assignment #1: Data Types // source https://jsbin.com/zecafaw
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Homework Assignment #1: Data Types">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>