Skip to content

Instantly share code, notes, and snippets.

View fernandokosh's full-sized avatar

Fernando Kosh fernandokosh

View GitHub Profile
<?php
// WordPress database connection test usingo mysqli
// Enable all messages
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$conn = mysqli_connect('localhost', 'username', 'password');
mysqli_select_db($conn, "my_wordpress_database");
@fernandokosh
fernandokosh / gist:4478679
Last active December 10, 2015 18:58
Simple script to check in DNS if a domain belongs to my server.
#!/bin/bash
### DNS server to check in whois result
server="ns1.mydomain.com"
### If will get by ls in folder
zones="/var/cache/bind/"
### One per line
zone_list="/var/cache/bind/domains.txt"
### Comment to use ls based