Skip to content

Instantly share code, notes, and snippets.

View ettorerizza's full-sized avatar
🏠
Working from home

Ettore Rizza ettorerizza

🏠
Working from home
View GitHub Profile
@ostephens
ostephens / example-marc-xml-parser.php
Last active May 10, 2019 15:56
example-marc-xml-parser.php
<?php
// TODO
//
// Change dc:subject to tags as with OpenLearn
// Add notes at top of each output file
// Add namespaces at top of each output file
// Add Table of Contents?
$books = "";
$serials = "";
@felixlohmeier
felixlohmeier / bash-refine.md
Last active April 12, 2022 05:27
How to control OpenRefine 3.3+ with cURL (and jq) in Bash scripts

How to control OpenRefine 3.3+ with cURL (and jq) in Bash scripts

tested on Fedora 32 with bash 5.0.17 and curl 7.69.1

Quick start

  1. Clone this gist
git clone https://gist.github.com/d76bd27fbc4b8ab6d683822cdf61f81d.git bash-refine
@rtempleton
rtempleton / snowflake_database_ddl.py
Last active December 19, 2025 19:50
Sample Python script to loop through all the database objects and generate the DDL to replicate an environment prior to account replication being made available.
#!/usr/bin/env python
# Get all the database objects and permissions.
# Can be used after running snowflake_roles.py to create the required roles
# 2018-10-23 jfrink added ddl for roles, modified connection parameters
# 2019-01-15 jfrink added Roles and permissions report by object.
# 2019-03-07 jfrink added extract script to create a dump of all the tables to a stage
# and also the corresponding script to load all the data.
# Converted show tables over to using information schema for cases greater then 10k rows.
# Converted show views over to using information schema for cases greater then 10k rows.