- Boot from Microsoft Windows Server 2012R2 DVD/ISO.
- From the Windows Setup menu, click "Next".
- Select "Repair your computer".
- Click on "Troubleshoot".
- Under Advanced options, click "Command Prompt".
At the command prompt, run the following commands:
<?php | |
$data ='iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAD//0lEQVR42uy9B7hk2VUeuutUuLfq1s2xc/eMJidpRqOApEFCCGVAIIIAYUzQe/gzHwbzAJmHwcbmGfgINnwGbINFFkGAAIExyeT0PR7PPARYcUJ339D39s0Vzzlv/Wuvtfc+davDSKOpnu69Zk6fU+nUOaeq7v+v9K+SiRYtWrRo0aLdclYa9QFEixYtWrRo0Z59iwQgWrRo0aJFuwUtEoBo0UZsn/VF75jM83y2VCot081l2sZ6kW4vGCy5mTImr9N9WMZpKcuS0P2ZyUtpbvI+3e7Q8w9Nnh/S9i4tG7SvdaxpwfoCLat47Jd/+r+0R33e0aJFG61FAhAt2rNkb/nCr5ij1RkC9jsJmO+m9d10+1SpZE6XSsk8bdfpvlKSJITj9OOkf+iWSUryM+Xb+qO1/xLw0z85/qcl59tZRpwg40f4vizL7TPzPKVln5Y1uuMJWn+Q1u+n5e9lufjen/mR/qivU7Ro0Z4diwQgWrRPgBHYT9DqDloepuWFBOYP4jaB+4LF+JJJkrKplMumXMY6MeVKxVSwyH1l3EdrSwgsGaD/6Ucr4C/AnyEIQKAPoM+y1KRpRkvKS1/Wfsnovj6ThIy2M94HLyAGH6bdvp/Wf0Lrv6Tl737l3T+6M+prGS1atE+MRQIQLdozYAT4CM3fR8vLaHmMlucTaJ9LrDGYV8oVU61VTa1aNWNjNTNWwzLG2zXcT7erVZCAaoEEJCHwExEAYMPYu2fX34J/H4DugL9v+n1a9/qm1++bbq9nerJ0e13T6dJ2t2vv7/b5+SAHHD3wpOAJY4nA79Dyh7S8nwhBNuprHS1atGfGIgGIFu1jNAJ95OoB+K+n5RW03AWwh3dfBtgD6AnYx8fGTL0+bhr1umk06rRd59v1sXEH/vD8q7QkDPhlAvySDf0nwU9UoNeCfm69/tx78RbAiQBkNgIAMAcJYEIAMkBEwBKAnm |
<?php | |
$dbhost = "svr.kit-b.com"; | |
$dbuname = "kit-b_user"; | |
$dbpass = "kit-b_pass"; | |
$dbname = "kit-b_db"; | |
$prefix = "dbpref_"; | |
$user_prefix = "userpref_"; | |
$dbtype = "10002"; | |
?> |
//function to create a chart | |
var createChart = { | |
pie: function(){ | |
canvasContain.addClass('visualize-pie'); | |
if(o.pieLabelPos == 'outside'){ canvasContain.addClass('visualize-pie-outside'); } | |
var centerx = Math.round(canvas.width()/2); | |
var centery = Math.round(canvas.height()/2); |
//go to components/com_users/views/profile/tmpl/default.php | |
//add after the comments | |
#Start never show Joomla default profile page | |
$app = &JFactory::getApplication(); | |
$app->redirect(JURI::base()."path-to-jomsocial-menu-item/my-profile-page"); | |
#Stop never show Joomla default profile page |
$(document).ready(function(){ | |
// Add the class submit to your 'submit' button :) | |
$(".submit").on('click', function(){ | |
editor.post(); | |
}); | |
}); |
#!/usr/bin/env python | |
import urllib2 | |
from datetime import date | |
def main(): | |
today = date.today() | |
suffix = getDateSuffix(today) | |
fdate = "%s %s%s %s" % (today.strftime('%b'),today.strftime('%d'),suffix,today.strftime('%Y')) | |
print("Downloading Daily Nation...") |
#!/bin/bash | |
UP=$(pgrep mysql | wc -l); | |
if [ "$UP" -ne 1 ]; | |
then | |
echo "MySQL is down."; | |
sudo service mysql start | |
else | |
echo "All is well."; | |
fi |
<?php | |
/** | |
* handle the calculation | |
* @param integer $seconds [description] | |
* @return [type] [description] | |
*/ | |
function rkv_calc_read_time( $seconds = 0 ) { | |
// calc the minutes |
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |