Skip to content

Developer's Closet

A place where I can put my code and discuss big data.

file_put_contents() Function for PHP 4

  • PHP
August 4, 2010August 4, 2010 kevin No comments

I needed to run code I wrote for PHP 5 on a PHP 4 installation. Everything worked except the file_put_contents function. I scoured the web […]

Continue reading

Terminate Connections to an SQL Database

  • SQL
  • Windows
August 2, 2010December 20, 2010 kevin No comments

Have you ever tried to restore a database to an SQL server with existing connections? Unless the connections are terminated, the database restore will fail […]

Continue reading

List all Connections to an SQL Database

  • SQL
  • Windows
August 1, 2010August 2, 2010 kevin No comments

A simple, but useful command, this script will show all connections to an SQL server. Replace Database Name with the name of the database and […]

Continue reading

Search for Orphaned Users After a Database Restore

  • SQL
  • Windows
July 29, 2010August 2, 2010 kevin No comments

After a database has been restored, users may become orphaned, or disconnected, from the database. You will see an entry for the user in the […]

Continue reading

Query Table Sizes from a SQL Database

  • SQL
  • Windows
July 26, 2010July 27, 2010 kevin No comments

I pulled apart a few stored procedures and ended up with this code. Very nice way to query the row count and size for each […]

Continue reading

Find string within files on a Linux Server

  • Linux
July 21, 2010February 16, 2019 kevin No comments

This is a very useful bit of code, used to search within files on a Linux server. Replace the . after find to search within […]

Continue reading

Recursively count the number of files on a Linux server

  • Linux
July 20, 2010July 23, 2010 kevin No comments

Simple script to recursively count the number of files on a Linux server. ls -laR | wc -l How this works: ls (lists folder contents), […]

Continue reading

VBScript and WMI to stop and restart a running service

  • VBScript
  • Windows
July 19, 2010April 15, 2013 kevin No comments

Option Explicit Dim objWMIService, objItem, objService Dim colListOfServices, strComputer, strService, intSleep strComputer = “.” intSleep = 15000 WScript.Echo “Click OK to begin” ‘On Error Resume […]

Continue reading

Simple MySQL Database Backup

  • Linux
  • MySQL
July 15, 2010 kevin 1 comment

Another simple backup script. This script builds on the rsync file backup to allow daily, monthly, and yearly incremental MySQL database backups. The backup will […]

Continue reading

Simple rsync Backup

  • Linux
July 15, 2010July 15, 2010 kevin 1 comment

This is a simple rsync backup that creates daily, monthly, and yearly incremental backups. This type of script would allow for recovery of just about […]

Continue reading

Posts pagination

«Previous Posts 1 … 10 11 12 13 14 … 17 Next Posts»

Pages

  • About
  • Accumulo
  • Ansible
  • Apt-Cacher
  • Azure API Management
  • Azure Cosmos DB
  • Azure Data Catalog
  • Azure Data Facory
  • Azure Data Lake Store
  • Azure Virtual Machine Scale Sets
  • Couchbase
  • Drill
  • Flume
  • HBase
  • HDFS
  • Hive
  • Hue
  • Impala
  • Kafka
  • Oozie
  • OpenTSDB: Timeseries Database
  • Redis
  • Solr
  • Sqoop
  • Yarn
  • ZooKeeper

Categories

  • Azure (1)
  • Bash (3)
  • C# (1)
  • Citrix (1)
  • Cloudera Manager (13)
    • HBase (5)
    • HDFS (4)
    • Kafka (1)
    • Solr (1)
    • Sqoop (1)
  • Continuous Delivery (1)
  • Drill (1)
  • JavaScript (3)
  • jQuery (2)
  • Linux (24)
    • Ubuntu (12)
  • MySQL (4)
  • Oracle (1)
  • PHP (5)
  • PowerShell (19)
  • SQL (48)
  • System Center (13)
    • DPM (1)
    • Ops Manager (1)
    • Orchestrator (9)
    • Virtual Machine Manager (1)
  • Uncategorized (4)
  • VBScript (19)
  • Visual Studio (4)
  • Windows (95)

Tags

Active Directory API Backup Bash Batch Connections Database Date Differential Disaster Recovery Email Event Viewer Excel Find Kill Linux Logs Microsoft MySQL Opalis Performance PHP Query Replication rsync Scheduled Tasks Script Shell Shortcut SQL SQL 2005 Stored Procedure String Sub T-SQL Table Terminate Users VBScript Windows WinZip WMI WScript wss2 wss3

Recent Posts

  • Azure Price Comparison Chart
  • HBase: ReplicationLogCleaner: Failed to get stat of replication rs node
  • HBase: Unable to start Master: TableExistsException: hbase:namespace
  • List DPM Backups
  • PowerShell Script to Query VMM

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Kevin Verhoeven
WordPress Theme: Occasio by ThemeZee.