Skip to content

Instantly share code, notes, and snippets.

View obakfahad's full-sized avatar

Fahad Ahammed obakfahad

View GitHub Profile
@microlinux
microlinux / sping.sh
Created February 12, 2015 08:02
Ping IPs by subnet and show simple up/down status
#!/bin/bash
# [user@server ~]$ sping.sh 70.120.121.0/29
# 70.120.121.1 down
# 70.120.121.2 up
# 70.120.121.3 up
# 70.120.121.4 up
# 70.120.121.5 up
# 70.120.121.6 up
@k0nsl
k0nsl / php-ping.php
Created January 21, 2015 17:19
PHP ping script
<?php
/*
*
* Use the examples below to add your own servers. Coded by clone1018 [?]
*
*/
$title = "Simple Server Status"; // website's title
$servers = array(
'Google Web Search' => array(
@horsley
horsley / vps_status.php
Last active December 12, 2015 05:19
A simple PHP script to get vps's status from solus api
<?php
/**
* A simple PHP script to get vps's status from solus api
*
*/
set_time_limit(180);
$serv_array = array(
array(//an vps
'api_server' => 'https://solus.hostigation.com:5656', //panel login page
@tjstein
tjstein / nginx-vhost.conf
Created April 5, 2011 00:47
nginx vhost config for WordPress + PHP-FPM
upstream php-fpm {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
server_name www.example.com;
rewrite ^ http://example.com$request_uri?;
}