Skip to content

Instantly share code, notes, and snippets.

View fagnercarvalho's full-sized avatar

Fagner Nunes Carvalho fagnercarvalho

View GitHub Profile
@fagnercarvalho
fagnercarvalho / shortcuts
Created September 29, 2020 02:23
Useful Windows/Linux shortcurts
- Scroll up or down in command prompt
- CTRL + Shift + (Up/Down OR PgUp/PgDown)
@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
git log --all --grep='criteria'
@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"
],