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
/* | |
JB 20120724 - MS SQL SERVER 2008 R2 | |
Restore a database first making the database single user then rollingback other users transactions, then restoring the backup. | |
Notes: | |
- This script is stored and shared as is. | |
- Might Work on other versions. | |
- Need owner privileges over database. | |
*/ |
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
<html> | |
<head></head> | |
<body> | |
<h1>My Article</h1> | |
<h2>Introduction</h2> | |
<h3>Rationale</h3> | |
<h2>Background</h2> | |
<h1>My Article</h1> | |
<h2>Introduction</h2> | |
<h2>Introduction</h2> |
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
SELECT DB_NAME(dbid) AS DBName, hostname, program_name, cmd, nt_domain, nt_username, net_address, login_time, last_batch, net_library, loginame | |
FROM sys.sysprocesses | |
WHERE (DB_NAME(dbid) NOT IN ('master', 'tempdb', 'msdb')) | |
ORDER BY hostname |
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
/* Copyright (C) 2013, Uri Shaked, GDG Tel-Aviv Lead. */ | |
/* | |
- Open the attached file, copy all the text from it (or get it here) | |
- Go to http://www.google.com/ in Google Chrome, press Ctrl+Shift+J (or on Mac ⌥⌘J). | |
- Paste the text you copied in step 1 into the console Window | |
*/ | |
var jq = document.createElement("script"); | |
jq.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"); |
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
/* | |
Query that shows actual collation, changed collation and query for change column collation. | |
Special Thanks to Betsy Alanis for this query. | |
*/ | |
DECLARE @collation NVARCHAR(64) | |
SET @collation = 'Modern_Spanish_CI_AS' | |
SELECT COLLATION_NAME [Actual Collation], @collation [Destination Collation], | |
'ALTER TABLE [' + TABLE_SCHEMA + '].[' + TABLE_NAME + '] ' + 'ALTER COLUMN [' + COLUMN_NAME + '] ' + DATA_TYPE + '(' + |
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
/* Copyright Josue Basurto 2013 | @josuebasurto | http://josuebasurto.com */ | |
/* Este script tiene fallas no fue probado solo fue usado para demostracion de algoritmo de flexibilidad de campos y hace falta pruebas anti-SQLI */ | |
$consulta_alumno = "SELECT * FROM tbl_alumno "; | |
define('K_WHERE', ' where '); | |
function busqueda_alumno(string campo, string filtros, ) | |
{ | |
if (campos='') | |
return $consulta_alumno; |
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
<!-- | |
Copyright Josue bBasurto 2013 | @josuebasurto | http://josuebasurto.com | |
--> | |
<HTML> | |
<HEAD> | |
<!-- | |
Redirect to any url in some time. Just replace: | |
* seconds: for the number of seconds you want the visitor to see this page | |
* the-other-url: for the new url you want to redirect the client | |
--> |
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
/* Copyright Josue Basurto 2013 | @josuebasurto | http://josuebasurto.com */ | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace customnamespace | |
{ | |
internal class INIHelper | |
{ | |
#region Variables y constantes |
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
<a href="https://twitter.com/intent/tweet?button_hashtag=MejorAndroid" class="twitter-hashtag-button" data-lang="es" data-size="large">Tweet #MejorAndroid</a> | |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> |
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 string GetResourceText(string resourcekey) | |
{ | |
object resourceText = null; | |
if (this.ResourceFilePathExist || this.ResourceFilePathDefaultExist) | |
{ | |
resourceText = this.GetLocalResourceObject(resourcekey); | |
if (resourceText != null) | |
{ | |
return resourceText.ToString(); |
OlderNewer