Skip to content

Instantly share code, notes, and snippets.

View chayandatta's full-sized avatar
🚢
Harbored⛵are safe; but that's not their purpose.

Chayan Datta chayandatta

🚢
Harbored⛵are safe; but that's not their purpose.
View GitHub Profile
@chayandatta
chayandatta / steps.md
Created May 7, 2023 07:42
How to start a Go project after cloning into your machine

go mod init <package-name>

go mod tidy

go build

go run [if this doesn't work then do the next step]

go run main.go

First activate virtual env, common choice is to call it .venv

python3 -m venv <.venv> source .venv/bin/activate

It'll show something like this in terminal, which means venv is activated

(.venv)>

Now inside the virtual env activated window, install django/drf

pip install django djangorestframework

@chayandatta
chayandatta / nest.md
Last active September 8, 2020 08:19
nestJs

npm i -g @nestjs/cli nest --version

7.5.1

nest new

⚡  We will scaffold your app in a few seconds..

? What name would you like to use for the new project? iluvcoffee
@chayandatta
chayandatta / nvm.md
Last active September 8, 2020 08:14
npm update
@chayandatta
chayandatta / no_pubkey.md
Created September 8, 2020 06:24
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <key>

Problem

Reading package lists... Done 
W: GPG error: http://deb.fdmpkg.org bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY <key>
E: The repository 'http://deb.fdmpkg.org bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Solution

@chayandatta
chayandatta / UnityFix.md
Last active April 26, 2020 09:31
Make Unity UI Stable and match with eos theme
GTK_CSD=0 /home/chayan/Unity/Hub/Editor/2019.3.11f1/Editor/./Unity -projectPath /home/chayan/unity/DemoTest -manualLicenseFile '/home/chayan/Downloads/Unity_v2017.x.ulf' 

Type this in terminal

change your paths

  • 1st path is for Unity file it's running as ./Unity
@chayandatta
chayandatta / readme.md
Created January 27, 2020 13:02
How to remove node_modules

How to remove node_modules

Create a .gitignore file in the git repository if it does not contain one

touch .gitignore -- Open up the .gitignore and add the following line to the file

.gitignore
node_modules 
@chayandatta
chayandatta / fix.md
Created January 9, 2020 07:20
Elementaryos not showing minimize button in some applications

To get started, first install Dconf Editor.

run below command in terminal

sudo apt-get install dconf-tools

Open dconf-tools

Navagate to org > gnome > desktop > wm > preferences.

@chayandatta
chayandatta / Error_manuelschneid3r.md
Last active May 20, 2024 10:48
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.04 Release: The following signatures were invalid: EXPKEYSIG 1488EB46E192A257 home:manuelschneid3r OBS Project <home:manuelschneid3r…

Problem:

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.04  Release: The following signatures were invalid: EXPKEYSIG 1488EB46E192A257 home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>
E: http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_18.04  Release.gpg is not (yet) available (The following signatures were invalid: EXPKEYSIG 1488EB46E192A257 home:manuelschneid3r OBS Project <home:manuelschneid3r@build.opensuse.org>)

Solution

repo

@chayandatta
chayandatta / django-react.md
Last active October 31, 2019 13:05
django-react-config

FOR BACKEND

pip3 install coverage==4.5.4

pip3 install Django==2.2.6

pip3 install djangorestframework==3.10.3

pip3 install pytz==2019.3