Skip to content

Instantly share code, notes, and snippets.

Ed Cottrell edcottrell

View GitHub Profile
View randomSEHotLink.user.js
View StackOverflowElectionBadgeViewer.user.js
// ==UserScript==
// @name Stack Overflow Badge Info for Moderator Election Candidates
// @namespace https://github.com/edcottrell/
// @version 0.2.0
// @description Shows a prettier breakdown of the candidate's badges that contribute to candidate score
// @author Ed Cottrell
// @license MIT
// @match *://*.askubuntu.com/election*
// @match *://*.mathoverflow.net/election*
// @match *://*.serverfault.com/election*
@edcottrell
edcottrell / randomSortSOAnswers.user.js
Last active Nov 20, 2015
Stack Overflow Random Answer Sort Tab
View randomSortSOAnswers.user.js
// ==UserScript==
// @name Stack Overflow Random Answer Sort Tab
// @namespace https://github.com/edcottrell/
// @version 0.1.2
// @description Add a "random" tab for sorting Stack Overflow answers
// @author Ed Cottrell
// @license MIT
// @match *://*.askubuntu.com/*
// @match *://*.mathoverflow.net/*
// @match *://*.serverfault.com/*
@edcottrell
edcottrell / gist:590a7b5808dd6040f98b
Created Apr 26, 2015
Working SSL Config for MySQL
View gist:590a7b5808dd6040f98b
+---------------+---------------------------------------+
| Variable_name | Value |
+---------------+---------------------------------------+
| have_openssl | YES |
| have_ssl | YES |
| ssl_ca | /home/mysql/certs/ca-cert.pem |
| ssl_capath | |
| ssl_cert | /home/mysql/certs/server-cert.pem |
| ssl_cipher | DHE-RSA-AES256-SHA |
| ssl_key | /home/mysql/certs/server-key.pem |
View gist:e4433e7f9b9cd79509ed
[mysqld]
ssl
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca="/home/mysql/certs/ca-cert.pem"
ssl-cert="/home/mysql/certs/server-cert.pem"
ssl-ca="/home/mysql/certs/server-key.pem"
[client]
ssl-ca="/home/mysql/certs/ca-cert.pem"
ssl-cert="/home/mysql/certs/client-cert.pem"
@edcottrell
edcottrell / gist:20bb759c0a5efff8797a
Last active Aug 29, 2015
MySQL SSL Variables Output
View gist:20bb759c0a5efff8797a
+---------------+----------------------------+
| Variable_name | Value |
+---------------+----------------------------+
| have_openssl | DISABLED |
| have_ssl | DISABLED |
| ssl_ca | |
| ssl_capath | |
| ssl_cert | |
| ssl_cipher | |
| ssl_key | |
View gist:854056066f8196d925bf
mysql> SHOW VARIABLES LIKE '%ssl%';
View WebdesignerDepotFavoriteTweetsImageLinks.user.js
View Test real PHP timeout
<?php
$start = microtime();
while(microtime() - $start < 60000) {
echo (microtime() - $start)/1000 . " seconds elapsed<br/>";
sleep(500);
}
View AutoHotKey Toggle for Notepad++ Search Results Window
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Ed Cottrell's AutoHotKey script for toggling the "Find Results" pane/window in Notepad++
; Released under the MIT License (http://opensource.org/licenses/MIT)
; Version: 1.1
; Release Date: January 15, 2014
; Released on Superuser.com: http://superuser.com/questions/700357/create-a-hotkey-keyboard-shortcut-to-close-the-notepad-find-results-window
; Also released at www.edcottrell.com/2014/01/11/toggle-find-results-window-notepad-hotkey/
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Turn F7 into a toggle for the Notepad++ search results window; currently it shows it, but doesn't hide it.
You can’t perform that action at this time.