Skip to content

Instantly share code, notes, and snippets.

@gekola
gekola / Gemfile
Last active Jul 27, 2016
Paperclip/Carrierwave configuration for Bluemix object space
View Gemfile
source 'https://rubygems.org'
gem 'fog-openstack', github: 'fog/fog-openstack'
gem 'fog'
gem 'carrierwave'
gem 'paperclip'
gem 'pry-byebug'
View duckduckgoogle.user.js
// ==UserScript==
// @name DuckDuckGoogle
// @description Add Google search button to DuckDuckGo search form
// @namespace github.com/gekola
// @version 0.1.2
// @author Nick H
// @license WTFPL
// @released 2016-03-12
// @updated 2017-04-16
// @match *://duckduckgo.com/*
@gekola
gekola / CopyTable.sql
Created Nov 7, 2013
TSQL deep table copy procedure example.
View CopyTable.sql
USE [AdventureWorks2012];
GO
ALTER PROCEDURE [dbo].[CopyTable]
@src_name nvarchar(4000)
, @dst_name nvarchar(4000)
AS
BEGIN
DECLARE @sql nvarchar(4000)
, @src_schema nvarchar(4000) = OBJECT_SCHEMA_NAME(OBJECT_ID(@src_name))