たとえばbitbucketのプライベートリポジトリ。URLを入力すると認証エラーがでる・・・
Failed to connect to repository : Command "git ls-remote -h https://[email protected]/username/repo-name.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed
require 'twitter' | |
client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = 'xxx' | |
config.consumer_secret = 'xxx' | |
config.access_token = 'xxx' | |
config.access_token_secret = 'xxx' | |
end | |
client.filter(track: 'xxx') do |obj| |
require 'aws-sdk' | |
print "Enter target stream name: " | |
stream_name = gets.chomp | |
begin | |
client = AWS::Kinesis.new( | |
access_key_id: ENV['AWS_ACCESS_KEY_ID'], | |
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] | |
).client |
require 'aws-sdk' | |
require 'parallel' | |
print "Enter target stream name:" | |
stream_name = gets.chomp | |
abort if stream_name.empty? | |
begin | |
client = AWS::Kinesis.new( |
'use strict'; | |
var fs = require('fs'); | |
var body = ''; | |
var line = {ids:[]}; | |
for (var i = 1; i <= 1000000; i++) { | |
line.ids.push(''+zeroPadding(i, 36)) | |
if (i % 100 === 0) { | |
body = body + JSON.stringify(line) + '\n'; |
'use strict'; | |
var fs = require('fs'); | |
var csv = 'Header\r\n'; | |
for (var i = 1; i <= 1000000; i++) { | |
csv = csv + '"' + zeroPadding(i, 36) + '"'; | |
if (i % 100 === 0) { | |
csv = csv + '\r\n'; | |
} else { |
export PS1='[\W] $ ' | |
export CLICOLOR=1 | |
export LSCOLORS=DxGxcxdxCxegedabagacad |
// PEM形式のファイルから証明書の情報を取得 | |
var pem = require('pem'); | |
var fs = require('fs'); | |
fs.readFile('test.pem', 'utf-8', function (err, data) { | |
pem.readCertificateInfo(data, function (err, data) { | |
console.log(data); | |
}); | |
}); |
たとえばbitbucketのプライベートリポジトリ。URLを入力すると認証エラーがでる・・・
Failed to connect to repository : Command "git ls-remote -h https://[email protected]/username/repo-name.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed