ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Fun with mac addresses 

Categories: Network

Just easier to remember when you need to map them to your internal virtual network or have to spoof them for whatever reason...

  • 0xBADB00BFEED1
  • 0xCAFEC0FFEE00
  • 0xDEADBEEFFEED
  • 0xDEFACEDBABE1

or make up your own: add, babe, bad, bed, beef, cafe, dead, deaf, decaf, deed, defaced, facade, face, fade, feed.

Delete database with name containing (c#) 

Categories: SQL Server
using (var con = new SqlConnection("Data Source=.; Integrated Security=True;"))
{
con.Open();
var databases = con.GetSchema("Databases");
foreach (DataRow row in databases.Rows)
{
var databaseName = (String)row["database_name"];
if (databaseName.Contains(MockPrefix))
{
var command = String.Format("ALTER DATABASE [{0}] SET SINGLE_USER WITH ROLLBACK IMMEDIATE; DROP DATABASE [{0}]", databaseName);
new SqlCommand(command, con).ExecuteNonQuery();
Debug.WriteLine(String.Format("Removed : {0}", databaseName));
}
}
}

Phonetic alphabet 

Categories: Security
  • A : Alpha
  • B : Bravo
  • C : Charlie
  • D : Delta
  • E : Echo
  • F : Foxtrot
  • G : Golf
  • H : Hotel
  • I : India
  • J : Juliett
  • K : Kilo
  • L : Lima
  • M : Mike
  • N : November
  • O : Oscar
  • P : Papa
  • Q : Quebec
  • R : Romeo
  • S : Sierra
  • T : Tango
  • U : Uniform
  • V : Victor
  • W : Whiskey
  • X : X-ray
  • Y : Yankee
  • Z : Zulu
  • - : Dash
  • _ : Underscore
Page 7 of 40 << < 1 2 3 4 5 6 7 8 9 10 20 > >>