xdg-open https://indirect.gq/https://example.com
# or
xdg-open https://indirect.gq/www.drit.ml
# or
xdg-open https://indirect.gq/www.phenomx.ch
Last active
July 5, 2021 20:53
-
-
Save michel47/9f439b92f06ff93a009d611c36db1842 to your computer and use it in GitHub Desktop.
indirect.gq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTTYPE html><meta charset=utf8><!-- white label redirector --> | |
<script> | |
console.info('location:',location) | |
let path= location.pathname.slice(1); | |
let fragment= location.hash.slice(1); | |
if (fragment.match(/^https?:/)) { | |
document.write(`redirect to: ${fragment}`) | |
location.href = fragment; | |
} else if (path.match(/^https?:/)) { | |
location.href = path; | |
} else { | |
document.write(`redirect to: ${path}`) | |
location.href = 'https://'+path; | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
git pull --ff-only | |
jekyll build -d public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'jekyll' | |
#gem 'github-pages' |
# This is the markdown index file
- This site is maintained with a "monorepo" including gist submodules
- monorepo : https://github.com/Doctor-I-T/websites
- gist: https://gist.github.com/9f439b92f06ff93a009d611c36db1842
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment