Skip to content

Instantly share code, notes, and snippets.

Baptiste Doré spiderneo

  • Auxime
  • France
Block or report user

Report or block spiderneo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pcsi.single_page_site.txt
--- a/js/single-page-site-scroll.js
+++ b/js/single-page-site-scroll.js
@@ -9,10 +9,11 @@
// On page load, smooth scroll.
/* global destination */
var hash = window.location.hash;
- var heightDifference = $(document).height() - $(window).height();
+
if (hash) {
- Drupal.behaviors.scrollToAnchor.scrollToDestination($(hash).offset().top, heightDifference);
@spiderneo
spiderneo / le-renew-webroot
Last active Jul 6, 2016 — forked from thisismitch/le-renew-webroot
Let's Encrypt Auto-Renewal using the Webroot Plugin (Nginx)
View le-renew-webroot
#!/bin/bash
web_service='nginx'
FILES=/usr/local/etc/letsencrypt/*.ini
for f in $FILES
do
echo "Renewing for $f file..."
config_file="$f"
You can’t perform that action at this time.