Skip to content

Instantly share code, notes, and snippets.

View Anu-cool-007's full-sized avatar
😎
Working

Anuranjan Srivastava Anu-cool-007

😎
Working
View GitHub Profile
@Anu-cool-007
Anu-cool-007 / create-swap.sh
Created November 16, 2022 15:10
Create swapfile on linix systems
# first check if any
swapon -s
# then add some if not
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
@Anu-cool-007
Anu-cool-007 / ubuntu-nextjs-nginx-config-file
Created November 16, 2022 10:44 — forked from oelbaga/01 - Setup Nextjs site on Ubuntu Server - Terminal commands
Setup NextJS app on Digital Ocean Ubuntu server Full Terminal Commands Step by Step
#nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name domainname.com;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;
{
"id": 101,
"name": "India",
"iso3": "IND",
"iso2": "IN",
"numeric_code": "356",
"phone_code": "91",
"capital": "New Delhi",
"currency": "INR",
"currency_name": "Indian rupee",
@Anu-cool-007
Anu-cool-007 / typescriptreact.json
Created September 18, 2022 08:17
VSCode snippets for Typescript functional components
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
<scheme name="Visual Studio Dark copy" version="142">
<metaInfo>
<property name="created">2016-11-23T10:08:43</property>
<property name="ide">Rider</property>
<property name="ideVersion">1.0.0.0</property>
<property name="modified">2016-11-23T10:15:18</property>
<property name="originalScheme">Visual Studio Dark</property>
</metaInfo>
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_LIGATURES" value="true" />
@Anu-cool-007
Anu-cool-007 / .gitignore
Created October 24, 2017 07:31 — forked from FullStackForger/.gitignore
.gitignore for Unity3d project
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/