Skip to content

Instantly share code, notes, and snippets.

View sanjaykrishnan's full-sized avatar

sanjay krishnan sanjaykrishnan

  • Sayone Technologies
  • Kerala
View GitHub Profile
@sanjaykrishnan
sanjaykrishnan / scp_command
Created May 21, 2021 10:50
Command to copy file from a different server
scp ubuntu@<ip_address>:<path_of_file> /home/sanjay/Desktop/
@sanjaykrishnan
sanjaykrishnan / models.py
Created June 8, 2021 06:07 — forked from niktto/models.py
Using Django Rest Framework to ease csv generation
from django.db import models
class SomeModel(models.Model):
email = models.EmailField()
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
Run this command when time is not update with elastic search and it shows this error TransportError(403, u'{"message":"Signature expired:
sudo ntpdate ntp.ubuntu.com
@sanjaykrishnan
sanjaykrishnan / node_install.txt
Created April 7, 2023 08:13
NPM latest install
curl -sL https://deb.nodesource.com/setup_19.x | sudo -E bash -
sudo apt-get install -y nodejs