Skip to content

Instantly share code, notes, and snippets.

View fagnercarvalho's full-sized avatar

Fagner Nunes Carvalho fagnercarvalho

View GitHub Profile
@fagnercarvalho
fagnercarvalho / europe.json
Created April 13, 2016 06:59
Snippet to list all countries in Europe using return from https://restcountries.eu/
[
{
"name": "Åland Islands",
"capital": "Mariehamn",
"altSpellings": [
"AX",
"Aaland",
"Aland",
"Ahvenanmaa"
],
git log --all --grep='criteria'
@fagnercarvalho
fagnercarvalho / commands.sh
Last active December 10, 2020 22:24
Useful Windows/Linux prompt commands
# Windows
# Reset TCP/IP configuration to try to fix faulty NIC
# Removes all user-configured IPv4 (Internet Protocol version 4) settings
netsh int ip reset resetlog.txt
# Check if port is binded to another service in the machine
Get-Process -Id (Get-NetTCPConnection -LocalPort YourPortNumberHere).OwningProcess
Get-Process -Id (Get-NetUDPEndpoint -LocalPort YourPortNumberHere).OwningProcess