Skip to content

Instantly share code, notes, and snippets.

View Anant-mishra1729's full-sized avatar
:electron:
Focusing

Forklore Anant-mishra1729

:electron:
Focusing
  • India
  • 09:52 (UTC +05:30)
View GitHub Profile
@Anant-mishra1729
Anant-mishra1729 / remote-jupyter.md
Last active April 26, 2023 12:52
Running jupyter notebook in background on remote server

Running Jupyter notebook in background mode on a remote server

⚙️ Setting up the remote connection

  • Login into the server
ssh user@ip
  • Run this command to start Jupyter notebook at port 8888 with no-browser mode
nohup jupyter-notebook --no-browser --port=8888 &
@Anant-mishra1729
Anant-mishra1729 / Get username.md
Created March 18, 2023 07:30
How to recover PyPi username ?
  • Go to forgot password
  • Write your email
  • Pypi will send you the password reset request along with 'username'
@Anant-mishra1729
Anant-mishra1729 / dct.py
Created March 6, 2023 02:24
Compute discrete cosine transform
import cv2
# Using OpenCV
def _dct(image):
result = cv2.dct(np.float32(image)/255.0)
return (result * 255.0)
# Using Scipy
from scipy.fftpack import dctn
dctn(image, norm = "ortho")