Skip to content

Instantly share code, notes, and snippets.

View nithin69's full-sized avatar
🎯
Focused

nithin69

🎯
Focused
View GitHub Profile
@nithin69
nithin69 / cmd hacks
Created February 7, 2021 08:05
hacks to be used in cmd (command prompt)
help color (to find colors)
color 04 (to set color 0 for background 4 is font color)
help prompt (get prompt information)
prompt nithin@windows$G (to change cmd prompt)
title title you want (changes title of cmd)
telnet towel.blinkenlights.nl (to watch starwars movie from cmd telnet has to be configured)
Attrib +h +s +r <folder name> (to hide the folder)
Attrib -h -s -r <folder name> (to unhide the folder)
command | clip (to copy command output to clipboard)
eg: ipconfig | clip
@nithin69
nithin69 / kali on windows 10
Created August 1, 2020 06:21
install kali on windows 10 without vm
1. INSTALL WSL 2
RUN POWERSHELL as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
RESTART
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
@nithin69
nithin69 / gist:0debfe230394f47e2c35042fa4cb6d73
Created May 1, 2020 06:11
docker commands and their usages
docker run – Runs a command in a new container.
docker start – Starts one or more stopped containers
docker stop – Stops one or more running containers
docker build – Builds an image form a Docker file
docker pull – Pulls an image or a repository from a registry
docker push – Pushes an image or a repository to a registry
docker export – Exports a container’s filesystem as a tar archive
docker exec – Runs a command in a run-time container (Usage: docker exec -it <container id> bash/shell)
docker search – Searches the Docker Hub for images
docker attach – Attaches to a running container
sqlAlchemy Connection URIs: http://flask-sqlalchemy.pocoo.org/2.1/config/#conn...
Free MySQL Hosting: https://www.freemysqlhosting.net/
@nithin69
nithin69 / axios.txt
Created April 10, 2020 10:40
using of axios
const url = ""
const fetchDetails = async () => {
try {
const { data } = await Axios.get(url);
console.log({ data });
// Do Something
} catch (eror) {
// DoSomethong
}