Skip to content

Instantly share code, notes, and snippets.

💪
On learning spree!

Rahul Patil r4hulp

💪
On learning spree!
Block or report user

Report or block r4hulp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@r4hulp
r4hulp / GetPathToImage.cs
Created Oct 26, 2015
Our Implementation GetPathToImage - Part 2
View GetPathToImage.cs
private string GetPathToImage(Android.Net.Uri uri)
{
ICursor cursor = this.ContentResolver.Query(uri, null, null, null, null);
cursor.MoveToFirst();
string document_id = cursor.GetString(0);
if (document_id.Contains(":"))
document_id = document_id.Split(':')[1];
cursor.Close();
cursor = ContentResolver.Query(
View gist:78982bddd652a87a7527
### Keybase proof
I hereby claim:
* I am rahulrulez on github.
* I am rahulp (https://keybase.io/rahulp) on keybase.
* I have a public key whose fingerprint is CFA1 E40A B805 96F2 2E97 370E F5F6 A19D 1D07 07C7
To claim this, I am signing this object:
View installhomebrew.sh
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
View wrapcode-install-openssl.sh
brew install openssl
brew link openssl --force
@r4hulp
r4hulp / wrapcode-install-npm.sh
Created Jul 10, 2016
Install NPM using Homebrew
View install-vsts-agent.txt
~/$ mkdir vstsagent && cd vstsagent
~/vstsagent tar xzf ~/Downloads/vsts-agent-osx.10.11-x64-2.102.1.tar.gz
@r4hulp
r4hulp / wrapcode-configure-vsts.sh
Created Jul 10, 2016
Configure VSTS agent on Mac OSX
View wrapcode-configure-vsts.sh
~/vstsagent ./config.sh
@r4hulp
r4hulp / wrapcode-configure-vsts-step2.sh
Last active Jul 10, 2016
Configuring VSTS agent on Mac OSX
View wrapcode-configure-vsts-step2.sh
>> Connect:
Enter server URL > https://{{your-tenant}}.visualstudio.com
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Connecting to server ...
Saving credentials...
>> Register Agent:
View wrapcode-install-vsts-as-service.sh
$ ./svc.sh install
...
Creating runsvc.sh
Creating .Service
svc install complete
You can’t perform that action at this time.