Kurinchi Blogger Scribbles …


Archive for December, 2016

Dec 29
2016

Git error: src refspec master does not match any

Last updated: December 29th, 2016

Point 1) Check if you have followed the below sequence of steps when setting up git in your local workstation

$ git init

$ git add .

$ git commit -am “name of the commit”

$ git remote add origin https://github.com/username/repository.git

$ git push -u origin master

Point 2) Check if .git/config file has the following parameters in it

[branch “master”]

remote = origin

merge = refs/heads/master

Dec 21
2016

Python PIP install: Insecure platform warning

Last updated: December 21st, 2016

Normally, installing a python module and its dependencies is done via Pip. If HTTPS is blocked in private networks, then things might get tricky and you get the following message.

InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.

To bypass this, you can issue the below command to trust pypi.python.org

$ pip install –trusted-host pypi.python.org Flask

To make sure that the needed module is installed, check it by

$ pip freeze

Dec 17
2016

Git: error: RPC failed; curl 55 SSL_write() returned SYSCALL,

Last updated: December 16th, 2016

Git uses “Transfer-encoding” in POST requests and some proxy servers do not support this encoding by default. When large files are pushed, the git client requires higher http.postBuffer setting.

Increase the buffer size to see if the issue is related to it.

$ git config –global http.postBuffer 134217728

Dec 16
2016

Git: SSL certificate problem: unable to get local issuer certificate

Last updated: December 16th, 2016

You get this message when the system is behind a firewall and when the security certificates are blocked.

There are two ways to overcome this message and to enable a git pull or git clone.

i) Issue the below command from git bash

$ git config –global http.sslVerify false

OR

ii) Add http block in “gitconfig” file to avoid ssl verification

[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt

Dec 01
2016

Kilobytes to Bytes to Mega Bytes

Last updated: December 16th, 2016

A useful online calculator to do the size calculation

whatsabyte.com Byte Converter


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict