- Create an executable script to run in foreground and manage colima:
cat <<-EOF | sudo tee /usr/local/bin/colima-start-fg
#!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/* Drop all non-system stored procs */ | |
DECLARE @name VARCHAR(128) | |
DECLARE @SQL VARCHAR(254) | |
SELECT @name = (SELECT TOP 1 [name] FROM sysobjects WHERE [type] = 'P' AND category = 0 ORDER BY [name]) | |
WHILE @name is not null | |
BEGIN | |
SELECT @SQL = 'DROP PROCEDURE [dbo].[' + RTRIM(@name) +']' | |
EXEC (@SQL) | |
PRINT 'Dropped Procedure: ' + @name |
I hereby claim:
To claim this, I am signing this object:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
1. Install spf13 | |
2. To enable copy paste: | |
sudo apt-get install vim-gnome | |
// and in vimrc.local: | |
map <C-c> "+y | |
3. vi .vim/bundle/vim-colors-solarized/colors/solarized.vim | |
// find the commented lines and either comment them or change them accordingly: | |
" MLM: CHANGED THIS ONE: | |
" exe "let s:fmt_revbb = ' ".s:vmode."=NONE".s:r.s:bb. " term=NONE".s:r.s:bb."'" |
type:bug -state:unscheduled,accepted |
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
git pull origin {tracking branch} # ie 'dev' | |
git checkout my-feature | |
git rebase {tracking branch} | |
#resolve conflicts | |
git checkout {tracking branch} | |
git merge my-feature | |
git push origin {tracking branch} |
var inherits = require('util').inherits; | |
var EventEmitter = require('events').EventEmitter; | |
module.exports = TEMPLATE; | |
function TEMPLATE (opts) { | |
EventEmitter.call(this); | |
var self = this; | |
if (!(self instanceof TEMPLATE)) return new TEMPLATE(opts); //If you don't use the 'new', I will for you. |
diff -Naur '--exclude-from=../patches/exclude' sequelize_git/lib/dao-factory.js sequelize/lib/dao-factory.js | |
--- sequelize_git/lib/dao-factory.js 2013-02-21 14:48:41.968230261 +0000 | |
+++ sequelize/lib/dao-factory.js 2013-02-21 16:08:29.181145551 +0000 | |
@@ -61,6 +61,9 @@ | |
if ((attributeName !== 'id') && (dataTypeString.indexOf('PRIMARY KEY') !== -1)) { | |
self.primaryKeys[attributeName] = dataTypeString | |
+ } //MLM: pgxc: | |
+ else if((attributeName == 'id') && (self.options.pgxc == true)){ | |
+ self.primaryKeys[attributeName] = dataTypeString |