Skip to content

Instantly share code, notes, and snippets.

View thabotitus's full-sized avatar
🤓

Thabo Titus thabotitus

🤓
View GitHub Profile
@thabotitus
thabotitus / Restore Local
Created February 20, 2023 11:50
Restore local DB with backup from S3
# frozen_string_literal: true
require 'rubygems/package'
require 'zlib'
namespace :maintenance do
desc 'Restore local with remote backup'
task restore_local: :environment do
lambda do
return unless Rails.env.development?

Keybase proof

I hereby claim:

  • I am thabotitus on github.
  • I am thabotitus (https://keybase.io/thabotitus) on keybase.
  • I have a public key ASBl679dxFWup_TP_hsaZoS_h6FBslpwLhEBPI0NnDavZgo

To claim this, I am signing this object:

<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Griffin UI | Grid</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@thabotitus
thabotitus / js_test_simple_case.js
Last active August 30, 2016 13:32
JS Test Example 1
it('returns true when a new date is the future', function() {
var tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1);
expect(self.disbursement_dates_valid(tomorrow)).toBe(true);
});