Skip to content

Instantly share code, notes, and snippets.

View siumhossain's full-sized avatar
🥱
?

sium_hossain siumhossain

🥱
?
View GitHub Profile
@siumhossain
siumhossain / fileup.vue
Created November 16, 2021 18:23
vue3 file upload via axios [short_note]
<template>
<div class="container">
<div class="large-12 medium-12 small-12 cell">
<label>File
<input type="file" id="file" ref="file" v-on:change="handleFileUpload($event)"/>
</label>
<button v-on:click="submitFile()">Submit</button>
</div>
</div>
</template>
@siumhossain
siumhossain / celery.md
Last active October 8, 2021 19:56
How to setup celery with django

Suppose we want to store crypto coin value information every 30 sec or 10 sec whatever and as well as we want to check whether

the price rasie or fall from previous price. And this type of functionality we have to outside from our network. So we need celery

which is help us to run this kind of functionality. And for running celery we need radis server..

Redis surver can run by

redis-server

Vue, vuex and axios pocket note ✍

Using axios - note axios base url declare by

import axios from 'axios'
axios.defaults.baseURL  =  "http://127.0.0.1:8000/"

And for default header for every request declare by :

axios.defaults.headers.common['Authorization'] =  "Token "  +  localStorage.getItem('token')
@siumhossain
siumhossain / django_signals.md
Last active November 15, 2021 16:16
django signals demo
from django.db.models.signals import post_save
from django.dispatch import receiver
@receiver(post_save, sender=User)
def post_user_created_signal(sender,instance,created,**kwargs):
  if created:
      print('hello user created')
@siumhossain
siumhossain / How to install kite in ubuntu which its not available on website.md
Last active January 4, 2024 16:43
How to install kite in ubuntu when its not available on website

👉 Create a .sh script by

nano kite.sh

👉 Paste it via ctrl+shift+v

#!/usr/bin/env bash
set -e
@siumhossain
siumhossain / how.md
Created August 9, 2021 19:19
Node install correctly on pop OS

Download node js from official website

tar -xf node-v#.#.#-linux-x64.tar.xz
sudo mv node-v#.#.#-linux-x64/bin/* /usr/local/bin/
sudo mv node-v#.#.#-linux-x64/lib/node_modules/ /usr/local/lib/

#.#.# means the version number of node.

@siumhossain
siumhossain / solve.md
Last active August 4, 2021 16:25
Kde connect doesn't work after on firewall
sudo apt install gufw

Open gufw from app launcher

Go to the Rules tab

Click the [+] button to add a new rule

Select the direction "Both"

@siumhossain
siumhossain / sources_list.md
Created June 29, 2021 18:10
Ubuntu source list
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
@siumhossain
siumhossain / readme.md
Last active June 16, 2025 21:34
How to install selenium chrome web driver in linux

Download chrome webdriver from

Click here for download

Make sure driver version match your chrome browser version

Open folder where chrome driver downloaded and open terminal & run one by one

sudo chmod +x chromedriver