Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Backups Folder
cd /backups/mysql/
# Get list of databases
LISTEBDD=$( echo 'show databases' | mysql -uroot -p'techbyvideo' )
# Save the current date
DATE=`date +%y_%m_%d`
@dideler
dideler / 0-startup-overview.md
Last active October 28, 2025 09:22
Startup Engineering notes
@mhawksey
mhawksey / gist:1442370
Last active July 9, 2025 12:26
Google Apps Script to read JSON and write to sheet
function getJSON(aUrl,sheetname) {
//var sheetname = "test";
//var aUrl = "http://pipes.yahoo.com/pipes/pipe.run?_id=286bbb1d8d30f65b54173b3b752fa4d9&_render=json";
var response = UrlFetchApp.fetch(aUrl); // get feed
var dataAll = JSON.parse(response.getContentText()); //
var data = dataAll.value.items;
for (i in data){
data[i].pubDate = new Date(data[i].pubDate);
data[i].start = data[i].pubDate;
}