Search This Blog

Friday, April 24, 2020

Simplest netcat


Receiver
nc -l -p 1234 -q 1 > something.zip < /dev/null
Sender
cat something.zip | netcat server.ip.here 1234

Tuesday, April 21, 2020

VScode and GIT setup

git config --global user.email "email@example.com"
git config --global user.name "name"

#Password prompt issue fix

git config --global credential.helper cache

git config --global credential.helper 'cache --timeout=360000'     // 100 hours 

Saturday, April 18, 2020

Debug bash in VScode and pass variables in launch.json

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "bashdb",
"request": "launch",
"name": "Bash-Debug (simplest configuration)",
"program": "${file}",
"terminalKind": "external",
"args":"start"
}
]
}

Sunday, April 5, 2020

Run jupyter on ubuntu 18

dont do apt install jupyter

go with pip3 install jupyter 

pip3 install pandas if require pandas on jupyter notebook