This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-slow-queries=/var/log/whereever/slow_queries.log | |
long_query_time = 1 #one second | |
log-queries-not-using-indexes | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<!DOCTYPE hibernate-configuration PUBLIC | |
"-//Hibernate/Hibernate Configuration DTD 3.0//EN" | |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> | |
<hibernate-configuration> | |
<session-factory> | |
<!-- Database connection settings --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="whatever"> | |
<property name="hibernate.version" value="3.5.6-Final"/> | |
<!-- ================================= | |
target: resolve | |
================================= --> | |
<target name="resolve" description="--> retrieve dependencies with ivy"> | |
<ivy:retrieve /> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
f = File.new ARGV[0] | |
lineend = ARGV[1].to_i | |
counter = 0 | |
while(line = f.gets and counter<lineend) | |
puts line | |
counter += 1 | |
end | |
f.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="foobar" default="build" basedir="."> | |
<description>foobar</description> | |
<target name="build" description="Compile Web Site."> | |
<exec basedir="." | |
program="msbuild.exe" | |
commandline=" MySite.csproj /nologo | |
/t:Rebuild | |
/t:ResolveReferences;_CopyWebApplication | |
/p:OutDir=..\..\deploymentdir\bin\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <Bram@vim.org> | |
" Last change: 2008 Jul 02 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc | |
" for OpenVMS: sys$login:.vimrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: vim-keys.conf,v 1.2 2010/09/18 09:36:15 nicm Exp $ | |
# | |
# vim-keys.conf, v1.2 2010/09/12 | |
# | |
# By Daniel Thau. Public domain. | |
# | |
# This configuration file binds many vi- and vim-like bindings to the | |
# appropriate tmux key bindings. Note that for many key bindings there is no | |
# tmux analogue. This is intended for tmux 1.3, which handles pane selection | |
# differently from the previous versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TemplatesExport family="Live Templates"> | |
<Template uid="4ff078ab-cd76-4daa-a18a-5442545ae610" shortcut="basectx" description="base bdd context" text="[TestFixture]
 public abstract class $FILENAME$TestsBaseContext
 {
 $END$
 [SetUp]
 public void SetUp()
 {
 SpecificSetUp(); 
 }

 protected abstract void SpecificSetUp();
 
 
 }" reformat="True" shortenQualifiedReferences="True"> | |
<Context> | |
<CSharpContext context="Everywhere" minimumLanguageVersion="3.0" /> | |
</Context> | |
<Categories /> | |
<Variables> | |
<Variable name="FILENAME" expression="getFileNameWithoutExtension()" initialRange="0" /> | |
</Variables> | |
<CustomProperties /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ActiveDirectoryGroupFinder | |
{ | |
public string GetPrimaryGroup(DirectoryEntry aEntry) | |
{ | |
var primaryGroupID = (int)aEntry.Properties["primaryGroupID"].Value; | |
var objectSid = (byte[])aEntry.Properties["objectSid"].Value; | |
var escapedGroupSid = new StringBuilder(); | |
// Copy over everything but the last four bytes(sub-authority) | |
// Doing so gives us the RID of the domain | |
for (uint i = 0; i < objectSid.Length - 4; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"tabs and other goods taken from web | |
set hidden | |
set expandtab | |
set nowrap " don't wrap lines | |
set tabstop=4 " a tab is four spaces | |
set shiftwidth=4 " number of spaces to use for autoindenting | |
set backspace=indent,eol,start | |
" allow backspacing over everything in insert mode | |
set autoindent " always set autoindenting on | |
set copyindent " copy the previous indentation on autoindenting |
OlderNewer