View default
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
# Set-up menu as default | |
DEFAULT vesamenu.c32 | |
PROMPT 0 | |
# Menu config | |
MENU INCLUDE pxelinux.cfg/graphics.conf | |
MENU TITLE ReadyNAS PXE Boot Menu | |
MENU BACKGROUND pxelinux.cfg/background.png | |
# Function Keys |
View DisposablePattern.DotSettings
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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=8E61C859EB76F74A941E057B7CA12454/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=8E61C859EB76F74A941E057B7CA12454/Shortcut/@EntryValue">DisposablePattern</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=8E61C859EB76F74A941E057B7CA12454/Description/@EntryValue">Skeleton implementation for Disposable pattern</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=8E61C859EB76F74A941E057B7CA12454/Text/@EntryValue">private bool disposed;
 | |

 | |
/// <summary>
 | |
/// Releases unmanaged resources and performs other cleanup operations before t |
View MegaAnimatedSprite.java
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
package org.sebazzz.anddev; | |
import org.andengine.entity.Entity; | |
import org.andengine.entity.sprite.Sprite; | |
import android.util.Log; | |
import android.util.SparseArray; | |
/** | |
* Represents a sprite that supports displaying several large textures for animation |
View gist:5151351
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
Server Error in '/' Application. | |
An item with the same key has already been added. | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. | |
Exception Details: System.ArgumentException: An item with the same key has already been added. | |
Source Error: | |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
View Run.bat
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
@echo off | |
csc Test.cs /target:library /debug+ /debug:full /reference:nunit.framework.dll | |
nunit3-console.exe Test.dll |
View limetorrents.py
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
# coding=utf-8 | |
# | |
# This file is part of SickGear. | |
# | |
# SickGear is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# SickGear is distributed in the hope that it will be useful, |
View CollationBugRepro.sql
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
/****** Object: Database [CollationTest] Script Date: 14-1-2017 12:40:46 ******/ | |
CREATE DATABASE [CollationTest] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'CollationTest', FILENAME = N'C:\Users\Sebastiaan\CollationTest.mdf' , SIZE = 4096KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) | |
LOG ON | |
( NAME = N'CollationTest_log', FILENAME = N'C:\Users\Sebastiaan\CollationTest_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) | |
GO | |
ALTER DATABASE [CollationTest] SET COMPATIBILITY_LEVEL = 110 | |
GO |
View defragment-identity-fk.sql
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
----------------------------------------- | |
-- Script to "defragment" identity values in tables of the current database | |
-- | |
-- Author: Sebastiaan Dammann | |
-- | |
-- Global overview: | |
-- This script generates SQL statements you can use to remove gaps in identity | |
-- values in your SQL database. This script only operates on the dbo schema. | |
-- You can exclude tables for defragmenting via @tablesToSkip (LIKE query pattern). | |
-- |
View reindex-all-indexes.sql
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
DECLARE @TableName nvarchar(255) | |
DECLARE TableCursor CURSOR FOR | |
SELECT table_name FROM information_schema.tables | |
WHERE table_type = 'base table' And TABLE_SCHEMA = 'dbo' | |
OPEN TableCursor | |
FETCH NEXT FROM TableCursor INTO @TableName | |
WHILE @@FETCH_STATUS = 0 | |
BEGIN | |
PRINT CONCAT('Reindexing: ',@TableName,'...') |
View config-backup.sh
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
#!/bin/bash | |
DATE=$(date +%F) | |
TARGET_FILENAME=edgeos-backup-$DATE.tar.gz | |
TARGET_DIR=/tmp | |
TARGET_PATH=$TARGET_DIR/$TARGET_FILENAME | |
SOURCE_DIR=/config | |
DATE_OFFSET_SCRIPT=/config/user-data/date-offset.pl | |
BACKUP_RETENTION=3 |
OlderNewer