Skip to content

Instantly share code, notes, and snippets.

View natea's full-sized avatar

Nate Aune natea

View GitHub Profile
@viadanna
viadanna / workshop-handout.md
Last active April 26, 2022 10:48
Handout for Periodic Reports Workshop

Periodic Reports Workshop

Welcome to the workshop. Here we'll get a hands-on approach on creating periodic reports on a sandbox provided by OpenCraft.

Sandbox Instructions

  1. Register an account on the provided sandbox

https://lilac-periodic-reports.opencraft.hosting

@bhrutledge
bhrutledge / django-tutorials.md
Last active December 12, 2023 16:34
My thoughts on Django tutorials

Django Tutorials

I've scanned through these, and they all seem to cover the basic features of Django (models, function-based views, forms, templates, CSS, and the admin interface), and use Python 3 and Django 2. My notes indicate what I think differentiates them.

Django Girls tutorial

  • Written for Django Girls workshops or self-teaching
  • Widely recommended for beginners, even to Python, web development, and command line
  • Build a blog
  • Instructions for Windows, Mac, and Linux (including Python installation)
@victorres11
victorres11 / instapage-segment.js
Last active December 2, 2021 01:06
Segment integration code to be used on Instapage
// callback to trigger code upon a landing page form submit - the main call to action.
window.instapageFormSubmitSuccess = function( form ){
// Instapage is a bit quirky with how it captures values of the form submit, but you should be able to use this code and replace the form fields with whatever your page is capturing.
var firstName = ijQuery( form ).find( 'input[name="' + window.base64.base64_encode( 'First Name' ) +'"]').val();
var lastName = ijQuery( form ).find( 'input[name="' + window.base64.base64_encode( 'Last Name' ) +'"]').val();
var email = ijQuery( form ).find( 'input[name="' + window.base64.base64_encode( 'Email') +'"]').val();
// Segment identify call.
analytics.identify(email, {
firstName: firstName,
@ipepe
ipepe / install-chrome-headless.sh
Last active August 20, 2024 23:34
Installing headless chrome on Ubuntu.
#!/bin/bash
# from https://chromium.woolyss.com/
# and https://gist.github.com/addyosmani/5336747
# and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:canonical-chromium-builds/stage
sudo apt-get update
sudo apt-get install chromium-browser
chromium-browser --headless --no-sandbox http://example.org/
@deviantony
deviantony / README.md
Last active September 4, 2024 02:41
Portainer HTTP API by example

DEPRECATION NOTICE

This gist is now deprecated in favor of our official documentation: https://documentation.portainer.io/api/api-examples/ which contains up to date examples!

THE FOLLOWING DOCUMENTATION IS DEPRECATED

Please refer to the link above to get access to our updated API documentation and examples.

@deepak365
deepak365 / How to install redash in mac.
Last active May 27, 2022 05:38
How to install redash in mac.
What is redash?
Redash is database viewer included BI tool inside. Redash has support for querying multiple databases, including: Redshift, Google BigQuery, PostgreSQL, MySQL, Graphite, Presto, Google Spreadsheets, Cloudera Impala, Hive and custom scripts.
Prerequisite :
1. Install docker
2. Install git
git clone https://github.com/getredash/redash.git
docker-compose -f docker-compose.production.yml run --rm server create_db
docker-compose -f docker-compose.production.yml up
@lvnilesh
lvnilesh / db-config.yml
Created March 11, 2015 21:58
db-config.yml
---
database_connection: &default_connection
login_host: "localhost"
login_user: "root"
login_password: "password"
DEFAULT_ENCODING: "utf8"
databases:
@lvnilesh
lvnilesh / stand-up-edx-birch
Last active August 29, 2015 14:15
Stand up edx named-release/birch/rc on digital ocean droplet (or just about any ubuntu precise machine)
sudo su
mkdir -p /tmp
echo 'tmpfs /tmp tmpfs defaults,noatime,mode=1777,nosuid,size=512M,exec 0 0' >> /etc/fstab
mount -a
apt-get update
apt-get -y install git python python-pip python-virtualenv virtualenvwrapper python-dev gcc autoconf g++ python2.7-dev ca-certificates
rm -rf /var/tmp/configuration
@carsongee
carsongee / course_git_backup.sh
Created January 20, 2015 14:50
course backup to git script for edx-platform
#!/bin/bash
# This script assumes that the git repository is already cloned
# App specifics
EDXAPP_USER="edxapp"
EDXAPP_VENV="/edx/app/edxapp/venvs/edxapp"
EDXAPP_DIR="/edx/app/edxapp/edx-platform"
# Git specifics
export GIT_KEY="/edx/app/course_git_backup/git_backup_deploy"