Skip to content

Instantly share code, notes, and snippets.

View d3vlopes's full-sized avatar

Leandro Lopes d3vlopes

View GitHub Profile
@YuMS
YuMS / update-git.sh
Created June 29, 2016 09:28
Update git to latest version on Ubuntu
#!/bin/bash
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git -y
@tdshipley
tdshipley / get_using_httpclient.cs
Last active March 10, 2023 16:17
An example of GET request using HttpClient in C#
namespace API.Controllers
{
public class GithubController : ApiController
{
private const string _address = "https://api.github.com/users/tdshipley";
private const string _userAgent = "TestApp";
// GET api/<controller>
public async Task<string> Get()
{