Skip to content

Instantly share code, notes, and snippets.

@gekola
gekola / Gemfile
Last active July 27, 2016 21:20
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'
@gekola
gekola / duckduckgoogle.user.js
Last active April 16, 2017 11:39
DuckDuckGoogle
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 November 7, 2013 05:00
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))