Skip to content

Instantly share code, notes, and snippets.

View nikodemrafalski's full-sized avatar

Nikodem Rafalski nikodemrafalski

  • Poznań, Poland
  • 18:31 (UTC +01:00)
View GitHub Profile
@Shoozza
Shoozza / agent.cmd
Last active April 20, 2022 02:45
Make Cmder work with ssh-agent
@ECHO OFF
SETLOCAL
GOTO:MAIN
REM
REM Info functions start
REM
REM Display version and copyright information
:VERSION
@asleepysamurai
asleepysamurai / plv8-install-ubuntu.md
Created June 1, 2013 15:56
Install plv8 on Ubuntu
  1. Install and configure Postgres [https://library.linode.com/databases/postgresql/ubuntu-12.04-precise-pangolin]
  2. Download latest stable version of plv8 [https://code.google.com/p/plv8js/wiki/PLV8]
  3. Extract plv8.zip and cd into it.
  4. sudo apt-get install subversion
  5. sudo make static
  6. Copy plv8.so to /usr/lib/postgres/9.1/lib
  7. Copy plv8--(version).sql and plv8.control to /usr/share/postgres/9.1/extension
  8. psql -d dbName
  9. CREATE EXTENSION plv8;
  10. Repeat 6-8 for plls (livescript) and plcoffee (coffeescript) if required
@sibartlett
sibartlett / fnh-ForeignKeyConstraintNameConvention.cs
Created March 24, 2011 12:52
Fluent NHibernate - Foreign key constraint name convention
using System.Linq;
using System.Reflection;
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;
using FluentNHibernate.MappingModel;
using FluentNHibernate.MappingModel.ClassBased;
using FluentNHibernate.MappingModel.Collections;
public class ForeignKeyConstraintNameConvention : IClassConvention, ISubclassConvention, IJoinedSubclassConvention
{