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
| # how to block IE in nginx: | |
| if ($http_user_agent ~* 'MSIE ([1-9]|10)\.') { | |
| return 302 https://www.microsoft.com/en-us/WindowsForBusiness/End-of-IE-support; | |
| } |
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
| "use strict"; | |
| const Gpio = require("onoff").Gpio; | |
| // some kind of debouncing wrapper for watch | |
| Gpio.prototype.watchFilter = function (callback) { | |
| const that = this; | |
| if (!this.watchFilterData) { |
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
| # Docker PS prettifier | |
| # revision 6 | |
| # https://gist.github.com/GottZ/4a6c2af314d73cd8b71d | |
| dps() { | |
| docker ps $@ --format "table{{ .Image }}\\t{{ .Names }}\\t{{ .Status }}\\t{{ .Ports }}" | awk ' | |
| NR % 2 == 0 { | |
| printf "\033[0m"; | |
| } | |
| NR % 2 == 1 { |
NewerOlder