This file contains 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
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains 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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
This file contains 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
diff --git a/Boot/Windows/BootMain.cpp b/Boot/Windows/BootMain.cpp | |
index 5d4b942..0b6e6a6 100644 | |
--- a/Boot/Windows/BootMain.cpp | |
+++ b/Boot/Windows/BootMain.cpp | |
@@ -75,7 +75,9 @@ static void PrintMainMenu () | |
#endif // TC_WINDOWS_BOOT_RESCUE_DISK_MODE | |
- PrintEndl (3); | |
+ PrintEndl (2); |
This file contains 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
--- Boot/Windows/BootMain.cpp Mon Jan 19 14:26:12 1970 | |
+++ Boot/Windows/BootMain.cpp Mon Jan 19 14:26:12 1970 | |
@@ -75,7 +75,9 @@ | |
#endif // TC_WINDOWS_BOOT_RESCUE_DISK_MODE | |
- PrintEndl (3); | |
+ PrintEndl (2); | |
+ Print ("WARNING: Using TrueCrypt is not secure"); | |
+ PrintEndl (2); |
This file contains 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
# mail.example.com should be one of the results of a `dig +short mx example.com` | |
# Note that your provider might block all port 25. | |
# If STARTTLS header is missing or mangled, but https://starttls.info/ shows example.com as supporting STARTTLS, | |
# there might be a downgrade going on. | |
(echo EHLO foo ; sleep 3) | nc mail.example.com 25 |
This file contains 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
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
}; | |
NodeList.prototype.__proto__ = Array.prototype; |
This file contains 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
man() { | |
env \ | |
LESS_TERMCAP_mb=$(printf "\e[1;31m") \ | |
LESS_TERMCAP_md=$(printf "\e[1;31m") \ | |
LESS_TERMCAP_me=$(printf "\e[0m") \ | |
LESS_TERMCAP_se=$(printf "\e[0m") \ | |
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ | |
LESS_TERMCAP_ue=$(printf "\e[0m") \ | |
LESS_TERMCAP_us=$(printf "\e[1;32m") \ | |
man "$@" |
This file contains 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
### set environment variables | |
DTR_URL="ddcbeta.mac" | |
# Make sure you have downloaded DTR's CA (if the certs are not trusted by valid root CA on your client already) and are placed in the path specified by --tlscacert | |
# The DTR's CA cert can be downloaded from https://${DTR_URL}/ca | |
# If it is already trusted, you can leave of the --tlscacert argument | |
alias notary="notary -s https://${DTR_URL} -d ~/.docker/trust --tlscacert ~/.docker/tls/${DTR_URL}/ca.crt" | |
REPO="admin/signtest" | |
USERNAME="admin" | |
### admin |