Skip to content

Instantly share code, notes, and snippets.

View oridonner's full-sized avatar

Ori Donner oridonner

View GitHub Profile
@oridonner
oridonner / 0_reuse_code.js
Created July 16, 2017 12:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@oridonner
oridonner / data-duplicator.sql
Created August 30, 2016 08:06 — forked from timabell/data-duplicator.sql
Script for copying data between databases
/*
Script for copying data between databases
Howto:
* Duplicate your database schema, but with all the FK constraints and identity specs removed (see below).
* Update the config at the top of this file.
* Connect to the target database.
* Run this script.
SELECT
SERVERPROPERTY('ProductLevel') AS ProductLevel,
SERVERPROPERTY('ProductUpdateLevel') AS ProductUpdateLevel,
SERVERPROPERTY('ProductBuildType') AS ProductBuildType,
SERVERPROPERTY('ProductUpdateReference') AS ProductUpdateReference,
SERVERPROPERTY('ProductVersion') AS ProductVersion,
SERVERPROPERTY('ProductMajorVersion') AS ProductMajorVersion,
SERVERPROPERTY('ProductMinorVersion') AS ProductMinorVersion,
SERVERPROPERTY('ProductBuild') AS ProductBuild
GO
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="WhereAmI">
<Message Text=" Here I Am " />
<Exec Command="dir ." />
<Message Text=" " />
</Target>