97 Followers
·
Follow

Github

Today I noticed that my github account has marked Github Arctic Code Vault Contributor. Let’s find out what it is.

Image for post
Image for post
Photo by Daiwei Lu on Unsplash

Your code is safe and sound in the Arctic

Github took a snapshot of all active public repositories to archive in the vault, located in the Arctic, about 21TB of repository data to 186 reels of piqlFilm (digital photosensitive archival film).

Image for post
Image for post
Github piql

Now we are assured that our code will live securely. :)

~~PEACE~~


Proxy server

for understanding how proxy server works.

There are reverse proxy and forward proxy. Reverse proxy handle the request coming to your server, manipulate it and then send to your server. Forward proxy, handle the request you sent from your side to the target site, manipulate it. In short, proxy work as the middle man.

In this post we will implement forward proxy.

The code:

Now we’re done with building a proxy server. Let’s call some requests from the client.

Image for post
Image for post
Forward proxy

And calling to localhost:33333 will actually forward request to ncbi.nlm.nih.gov, and we got the response data from the ncbi site.

~~PEACE~~


Bitbucket

It’s a convenient way for doing repetitive tasks for collecting information about the repositories, commits, branches ..

Image for post
Image for post
Photo by William Bout on Unsplash

Bitbucket API now has REST API version 2.0 but in this post, we will go with version 1.0 since I do not have bitbucket server for version 2.0 now. But it’s ok. The idea is showing you guys some functionalities that Bitbucket API supports.

First, to be able to retrieve sensitive data about projects, you will need the access token. The access token you can get from the user profile settings in Bitbucket site.

Image for post
Image for post
Powerful Token

There are some role with token specific to your needs : admin / read / write. In this example I’m using admin role.

  • Get all repositories in a…

About

Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store