Skip to content

Instantly share code, notes, and snippets.

@churro-s
churro-s / LetsEncrypt_HTTPS_plex.MD
Last active November 18, 2024 20:00
Setup Let's Encrypt certificate for use with Plex Media Server on Ubuntu
@RLovelett
RLovelett / delete.sh
Created July 2, 2014 20:07
Delete ZFS snapshots from dataset one-liner
zfs list -r -H -t snapshot -o name stream/lxc/stash | xargs -n1 zfs destroy
@daviddoran
daviddoran / backup-dokuwiki.sh
Created September 24, 2013 10:40
Easily back up the content of a dokuwiki site to a git repository each hour. Only commits when there are changes.
#!/bin/sh
cd /var/www/dokuwiki/data && git add . && git add -u && git commit -a -m "Content update `date +'%H:%M %d/%m/%Y %Z'`" && git push origin master
@supertom
supertom / fetch_debs_from_jenkins.py
Created May 20, 2012 22:58
download artifacts from jenkins with python
#!/usr/bin/env python
import cStringIO
import json
import pycurl
import os
import sys
##########
# configuration
@hsablonniere
hsablonniere / README.md
Created May 2, 2012 22:42
scrollIntoViewIfNeeded 4 everyone!!!

scrollIntoViewIfNeeded 4 everyone!!!

This gist provides a simple JavaScript implementation of the non-standard WebKit method scrollIntoViewIfNeeded that can be called on DOM elements.

Usage

Just use the code in index.js in your app or website. You can see usage in the test page test.html.

The parent element will only scroll if the element being called is out of the view. The boolean can force the element to be centered in the scrolling area.