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
| #!/bin/bash | |
| # Script to set up repositories, projects and issues in GitLab and GitHub from CLI | |
| # Following the flow: GitLab repo → GitHub repo → GitHub issues & project | |
| # Prerequisites: gh, glab, git, curl, jq | |
| # Display help text | |
| show_help() { | |
| echo "Usage: $0 [options]" | |
| echo "Options:" |
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 net = require('net'); | |
| var sys = require('sys'); | |
| // START setConnTimeout hack | |
| net.Stream.prototype._orig_connect = net.Stream.prototype.connect; | |
| net.Stream.prototype.connect = function () { | |
| var self = this; | |
| if (typeof self.conn_timeout !== 'undefined' && self.conn_timeout > 0) { | |
| self.addListener('connect', function () { | |
| clearTimeout(self.conn_timer); |