Skip to content

Instantly share code, notes, and snippets.

View jgillard's full-sized avatar
💭
Working on Journee 🚀

James Gillard jgillard

💭
Working on Journee 🚀
View GitHub Profile
@noviluni
noviluni / admin.py
Last active March 7, 2024 16:18 — forked from safar/admin.py
Large Table Paginator for Django: Scale Django admin pages and avoid timeouts.
from django.contrib.admin import ModelAdmin
from .paginator import LargeTablePaginator
class MyTableAdmin(ModelAdmin):
...
paginator = LargeTablePaginator
show_full_result_count = False # Recommended to avoid another count()
...
@danm
danm / CouchEC2Setup.sh
Last active November 16, 2015 14:39
CloudFormation Amazon Linux EC2 (v 2015.09.0) User Data Bash Script for Installing CouchDB from source with Erlang
#!/bin/bash
cd /home/ec2-user
yum-config-manager --enable epel
sudo yum -y install gcc gcc-c++ libtool libicu-devel openssl-devel autoconf-archive erlang python27 python-sphinx help2man
wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
tar xvfz js185-1.0.0.tar.gz
cd js-1.8.5/js/src
./configure
make
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@irae
irae / _Stay_standalone.md
Last active January 29, 2024 12:38 — forked from kylebarrow/example.html
Stay Standalone: Prevent links in standalone web apps opening Mobile Safari

#Stay Standalone

A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.