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 | |
if [ -e 'filelist' ] | |
then | |
files=`cat filelist` | |
for file in $files | |
do | |
if [ -e $file ] | |
then | |
tar czf backup.tar.gz $file |
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.ComponentModel.DataAnnotations; | |
namespace NanoTaboada.GitHub.Gist | |
{ | |
public class Book | |
{ | |
[Key] | |
public string Isbn { get; set; } |
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
<conf | |
host="localhost" | |
init="northwind" | |
auth="false" | |
user="foo" | |
pass="bar" | |
file="northwind.mdf" | |
/> |
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
#region License | |
// Copyright (c) 2011 Nano Taboada, http://openid.nanotaboada.com.ar | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
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
/// <summary> | |
/// This is the Book class, it represents a book. | |
/// </summary> | |
[DataContract, Serializable, XmlRoot("book")] | |
public class Book | |
{ | |
#region Properties | |
[DataMember, XmlAttribute("isbn")] | |
public string Isbn { get; set; } | |
[DataMember, XmlAttribute("title")] |
NewerOlder