Skip to content

Instantly share code, notes, and snippets.

View HaydenElza's full-sized avatar

Hayden Elza HaydenElza

View GitHub Profile
@khaledboka
khaledboka / geonode-docker-connect-to-external-db.md
Last active July 29, 2021 08:48
How to connect GeoNode Docker to External Database

Connecting GeoNode Docker to an External Database

1. Make sure docker components are down

>_ docker-compose down

2. Disable GeoNode docker database and related commands

  • @docker-compose.yml comment out the db section
@heyseus1
heyseus1 / RefreshCache.py
Last active March 4, 2021 21:54
AWS Storage Gateway Refresh Cache Lambda script
#!/usr/bin/env python3
import boto3
def default_handler( event, context ):
print(boto3.client('sts').get_caller_identity())
''' replace share-id with actual Id(s)'''
client = boto3.client('storagegateway')
@tanaikech
tanaikech / submit.md
Last active January 5, 2025 06:32
Uploading Local Files to Google Drive without Authorization using HTML Form

Uploading Local Files to Google Drive without Authorization using HTML Form

This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.

When you use this, at first, please deploy Web Apps. The script is doPost() of following scripts.

Script : Google Apps Script

function doPost(e) {
 var data = Utilities.base64Decode(e.parameters.data);