Commands to get commit statistics for a Git repository from the command line -
using git log
, git shortlog
and friends.
→ Great great documentation about all this (probably better): https://github.com/drduh/YubiKey-Guide
Documentation for PIV: https://github.com/Yubico/yubikey-piv-manager/tree/master/doc
To manage the certificates: https://www.yubico.com/support/knowledge-base/categories/articles/unpair-yubikey-piv-login-macos-sierra/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I've used the configuration below for all my nginx instances and gotten an A+ on the Qualys SSL Test | |
# (https://www.ssllabs.com/ssltest/index.html). It satisfies requirements for PCI Compliance and | |
# FIPS. Includes OCSP Stapling (http://en.wikipedia.org/wiki/OCSP_stapling) and HTTP Strict Transport | |
# Security (http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security). | |
# - Not vulnerable to the Heartbleed attack. | |
# - Not vulnerable to the OpenSSL CCS vulnerability (CVE-2014-0224) with OpenSSL v1.0.1i 6 Aug 2014 & Nginx 1.6.0 | |
# - SSL Handshake takes <80ms on most modern server hardware | |
# Use within the "server" scope among other directives |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Variables used in this script: | |
// $summary - text title of the event | |
// $datestart - the starting date (in seconds since unix epoch) | |
// $dateend - the ending date (in seconds since unix epoch) | |
// $address - the event's address | |
// $uri - the URL of the event (add http://) | |
// $description - text description of the event | |
// $filename - the name of this file for saving (e.g. my-event-name.ics) | |
// |
I hereby claim:
- I am poom on github.
- I am poom (https://keybase.io/poom) on keybase.
- I have a public key ASA5z5aJXkLVIDMAfip6n7dp4WckIhzBa_g0vEkpEK47Cgo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub docTest | |
set HotelList = ActiveDocument.Variables("LB276") | |
set Montyly = ActiveDocument.Variables("LB277") | |
HotelList.SetContent "Asoke" , true | |
'Montyly.SetContent "January" , true | |
'MsgBox getVariable("LB276") | |
end sub | |
function getVariable(varName) | |
set v = ActiveDocument.Variables(varName) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Refer: http://www.w3.org/TR/html-markup/input.email.html | |
/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/ |
- Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
- Take hot threads snapshots under read+write, read-only, write-only (TD - done)
- Adjust refresh time to 10s (from 1s) and see how load changes (TD)
- Measure time of a rolling restart doing
disable_flush
anddisable_recovery
(TD) - Specify routing on query -- make it choose same node for each shard each time (MD)
- GC new generation size (TD)
- Warmers
- measure before/after of client query time with and without warmers (MD)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArrayToXML | |
{ | |
/** | |
* The main function for converting to an XML document. | |
* Pass in a multi dimensional array and this recrusively loops through and builds up an XML document. | |
* Based on: http://snipplr.com/view/3491/convert-php-array-to-xml-or-simple-xml-object-if-you-wish/ | |
* | |
* @param array $data | |
* @param string $rootNodeName - what you want the root node to be - defaultsto data. | |
* @param SimpleXMLElement $xml - should only be used recursively |
NewerOlder