A Pen by Ruiwen Chua on CodePen.
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
angular.module('utils') | |
.directive('sq-content', [ | |
'$log' | |
'$window' | |
($log, $window) -> | |
restrict: 'A' | |
link: (scope, elem, attrs) -> | |
# Calculates and sets the height of element to fully take up | |
# the rest of the vertical height in a page | |
# Mainly used for activating overflow: scroll for md-content |
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
# Obtaining server certificate | |
openssl s_client -CAfile ca.crt -connect "server.domain.com:443" < /dev/null 2> /dev/null | openssl x509 -outform PEM > server.crt | |
# You may get an error like the following | |
# CONNECTED(00000003) | |
# 140048174458520:error:140790E5:SSL routines:ssl23_write:ssl handshake failure:s23_lib.c:177: | |
# --- | |
# no peer certificate available | |
# --- | |
# No client certificate CA names sent |
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
# Bash function to translate redis commands to their pipelined equivalent | |
# | |
# eg. | |
# | |
# $ redis_p HMSET key value key1 value1 | |
# *5 | |
# $5 | |
# HMSET | |
# $3 | |
# key |
I hereby claim:
- I am ruiwen on github.
- I am ruiwen (https://keybase.io/ruiwen) on keybase.
- I have a public key ASC6hOGJ6j8XRLof2za5Fe_gXhtXOOo42WrNt_6tH-W3Bwo
To claim this, I am signing this object:
I hereby claim:
- I am ruiwen on github.
- I am ruiwen (https://keybase.io/ruiwen) on keybase.
- I have a public key ASC6hOGJ6j8XRLof2za5Fe_gXhtXOOo42WrNt_6tH-W3Bwo
To claim this, I am signing this object:
OlderNewer