Skip to main content

Posts

Showing posts from June, 2015

Windows Auto Login

In the registry editor go to HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Winlogon    On right side pane look for these values AutoAdminLogon, DefaultPassword and DefaultUsername.  If the above values aren’t there, then right click on empty area in the right pane select New>String Value and enter the value name such as AutoAdminLogon. Repeat this step for each value.

Mounting a Clonezilla Image

Prepare a large disk in Linux Say if your image is /home/partimag/YOURIMAGE/, and the image is /home/partimag/YOURIMAGE/hda1.ntfs-img.aa, hda1.ntfs-img.ab... run   file /home/partimag/YOURIMAGE/hda1.ntfs-img.aa to see it's gzip, bzip or lzop image. Say it's gzip, then you can run   cat /home/partimag/YOURIMAGE/hda1.ntfs-img.* | gzip -d -c | ntfsclone --restore-image -o hda1.img - Then you will have a "hda1.img" which you can mount it by   mount -o loop -t ntfs hda1.img /mnt Then all the files are in /mnt/

Find a field in a MSSQL database

looking for a database field and you're not sure where it is ? Try this, the stuff in yellow highlight needs to be changed for your situation.... USE AdventureWorks GO SELECT t.name AS table_name , SCHEMA_NAME ( schema_id ) AS schema_name , c.name AS column_name FROM sys.tables AS t INNER JOIN sys.columns c ON t. OBJECT_ID = c. OBJECT_ID WHERE c.name LIKE '%EmployeeID%' ORDER BY schema_name , table_name ;   From http://blog.sqlauthority.com/2008/08/06/sql-server-query-to-find-column-from-all-tables-of-database/

Ever need to reset a password in Bonobo Git Server ?

So, you've forgotten your password to bonobo git. Step 1: Get access to the sqlite file, probably called something like  Bonobo.Git.Server.db, sitting in the "wwwroot\Bonobo.Git.Server\App_Data" directory. Step 2: Using another tool, generate an md5 hash of your new desired password (as far as I know, sqlite does not have md5 capability) Step 3: Back in sqlite, using SQL, update the relevant user record, something like update User set Password = UPPER( 'thenewMD5hash') where Username = 'admin' ; Step 4: That's it, you are done, log in with your newly found password.