var person = sequelize.define("person", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
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
# from http://blogs.msdn.com/b/dotnetinterop/archive/2008/04/21/powershell-script-to-batch-update-assemblyinfo-cs-with-new-version.aspx | |
# | |
# SetVersion.ps1 | |
# | |
# Set the version in all the AssemblyInfo.cs or AssemblyInfo.vb files in any subdirectory. | |
# | |
# usage: | |
# from cmd.exe: | |
# powershell.exe SetVersion.ps1 2.8.3.0 | |
# |
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
# ---------------------------------- | |
# USAGE | |
# ---------------------------------- | |
from unittest import TestCase | |
from testargs import TestArgs | |
class SampleTest(TestCase): | |
@TestArgs( | |
(None), |
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
# lighttpd configuration file | |
# | |
# use it as a base for lighttpd 1.0.0 and above | |
# | |
# $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $ | |
############ Options you really have to take care of #################### | |
## modules to load | |
# at least mod_access and mod_accesslog should be loaded |
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"?> | |
<xsl:stylesheet | |
version="2.0" | |
xmlns:dbml="http://schemas.microsoft.com/linqtosql/dbml/2007" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
> | |
<xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/> | |
<xsl:variable name="newline" select="'
'"/> | |
<xsl:template match="dbml:Database"> | |
<xsl:for-each select="dbml:Table"> |
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
using System; | |
using System.IO; | |
using CSharpMinifier; | |
namespace MinifySolution | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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"?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:cc="http://creativecommons.org/ns#" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | |
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" |
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin
and add the following group to the file /etc/cgconfig.conf
:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}
Click to toggle contents of `code`
``` CODE! ```Click to toggle contents of other `code`
```OlderNewer