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
| oc new-project dns-checker | |
| oc new-app nginx:1.12~https://github.com/sclorg/nginx-container.git --context-dir=1.12/ | |
| oc expose svc/nginx-container | |
| cat <<EOF | oc apply -f - | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: dns-checker |
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
| var extend_keyboard_event_with_keycode = function(original_event_name) { | |
| var $fn_original = $.fn[original_event_name]; | |
| var keyboard_event_function_wrapper = function(keycodes, handler) { | |
| return function(e) { | |
| if(keycodes.indexOf(e.which) != -1) | |
| return handler(e); | |
| } | |
| } |
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
| /** | |
| * CSS image crop. Forces image to 4:3 aspect ratio cropping at the middle. | |
| * http://dabblet.com/gist/4711695 | |
| */ | |
| .img-crop, | |
| .img-crop img{ | |
| width: 100%; /* gotta be responsive these days */ | |
| } | |
| .img-crop{ | |
| background-color: #ededed; /* some background color for short images */ |