Skip to content

Instantly share code, notes, and snippets.

@LQ80
LQ80 / gist:0218277a0721a252762db8698e551773
Created May 29, 2020 17:32 — forked from tinogomes/DNS_TO_LOCALHOST.markdown
Public DNS Pointing To localhost (127.0.0.1)

Available Wildcarded DNS Domains

It turns out that some kind hearted people already set up wildcarded domains for you already. You can use any top level domain below and any subdomain of these and they will always resolve back to 127.0.0.1 (your local machine). Here's the list of ones I know about. Let me know if there are more!

  • *.fuf.me - Managed by @fidian; it will always point to localhost for IPv4 and IPv6
  • localtest.me - Also has an SSL cert - see http://readme.localtest.me
  • 127-0-0-1.org.uk
  • vcap.me
  • yoogle.com
  • lvh.me
@LQ80
LQ80 / utf8-arabic-ci.md
Created March 8, 2020 08:45 — forked from TheAhmedGad/utf8_arabic_ci.md
Add Arabic UTF8-ARABIC-CI Collation to MYSQL ENGINE

Support Arabic CI Collation

To make mysql understand Arabic letters synonyms like "أ" and "إ"

  • Run This to get Collation Path SHOW VARIABLES LIKE 'character_sets_dir';

  • in /collation/path/Index.xml add this to <charset name="utf8"> section

@LQ80
LQ80 / renderpdf.html
Last active November 10, 2018 11:04 — forked from fcingolani/index.html
How to render a full PDF using Mozilla's pdf.js
<html>
<body>
<!-- really dirty! this is just a test drive ;) -->
<script type="text/javascript" src="https://raw.github.com/mozilla/pdf.js/gh-pages/build/pdf.js"></script>
<script type="text/javascript">
function renderPDF(url, canvasContainer, options) {
var options = options || { scale: 1 };