Skip to content

Instantly share code, notes, and snippets.

View barendb's full-sized avatar
😊

Barend Bootha barendb

😊
  • Auckland, New Zealand
View GitHub Profile
@barendb
barendb / gist:b4ac733b80f0142ac720
Created May 14, 2014 19:54
Stored proc to search an MSSQL DB to find where data is stored
CREATE PROC SearchAllTables
(
@SearchStr nvarchar(100)
)
AS
BEGIN
CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
SET NOCOUNT ON
@barendb
barendb / gist:8730a15f558838b1338a
Created June 21, 2014 01:49
Modified highcharts-ng.js
'use strict';
angular.module('highcharts-ng', []).factory('highchartsNGUtils', function () {
return {
indexOf: function (arr, find, i) {
if (i === undefined)
i = 0;
if (i < 0)
i += arr.length;
if (i < 0)
i = 0;
@barendb
barendb / jquery_boilerplate.js
Created October 21, 2014 19:44
Tried and trusted plugin boilerplate for jQuery
// http://stefangabos.ro/jquery/jquery-plugin-boilerplate-revisited/
(function($) {
$.pluginName = function(element, options) {
var defaults = {
foo: 'bar',
onFoo: function() {}
};
@barendb
barendb / run_script.tf
Created May 21, 2021 02:07
Run Bash script in Terraform
/*
example of executing a bash script in tf
*/
locals {
tables = [
aws_dynamodb_table.organization.name
]
}