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
#!/bin/bash | |
## Get the list of all the projects from Bitbucket account across all the pages | |
get_total_project_list () { | |
start=0 | |
total_project_list=() | |
is_last_page=false | |
while ! $is_last_page | |
do | |
response=$(curl -k -u $u -X GET -H "Content-type: application/json" $bitbucket_url/rest/api/1.0/projects?start=$start) 2>&1 |
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
var credential = "YOUR-APP-CONFIGURATION-CREDENTIAL-ID"; | |
var secret = "YOUR-APP-CONFIGURATION-CREDENTIAL-VALUE"; | |
function signRequest(host, | |
method, // GET, PUT, POST, DELETE | |
url, // path+query | |
body, // request body (undefined of none) | |
credential, // access key id | |
secret) // access key value (base64 encoded) | |
{ |
Here are several different ways to test a TCP port without telnet.
BASH (man page)
$ cat < /dev/tcp/127.0.0.1/22
SSH-2.0-OpenSSH_5.3
^C
$ cat < /dev/tcp/127.0.0.1/23
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
gem install --http-proxy http://user:password@some.proxy.com:8080 bundler |