- 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:
" Buffers: shared hit=55070798 read=303167" | |
" I/O Timings: read=113222.552" | |
"Planning:" | |
" Buffers: shared hit=52 read=3" | |
" I/O Timings: read=11.635" | |
"Planning Time: 12.147 ms" | |
"Execution Time: 430756.466 ms" |
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left) | |
// https://gist.github.com/JamieMason/7580315 | |
// | |
// 1. Go to https://twitter.com/YOUR_USER_NAME/following | |
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac) | |
// 3. Paste this into the Developer Console and run it | |
// | |
// Last Updated: 09 April 2020 | |
(() => { | |
const $followButtons = '[data-testid$="-unfollow"]'; |
#!/bin/bash | |
# Watch a directory and run a script every time inotify reports that something | |
# changed, followed by 10 seconds of no changes. Handy for responding to incoming | |
# rsync jobs or the like. | |
# | |
# Requires that inotify-tools is installed. | |
WATCHDIR=${1:./} | |
TRIGGERCOMMAND=${2:-echo fired} |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
Total props to Brian Cray: http://briancray.com/posts/estimated-reading-time-web-design/ |
<?php | |
/** | |
* handle the calculation | |
* @param integer $seconds [description] | |
* @return [type] [description] | |
*/ | |
function rkv_calc_read_time( $seconds = 0 ) { | |
// calc the minutes |
#!/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 |
#!/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...") |
$(document).ready(function(){ | |
// Add the class submit to your 'submit' button :) | |
$(".submit").on('click', function(){ | |
editor.post(); | |
}); | |
}); |