Skip to content

Instantly share code, notes, and snippets.

View siumhossain's full-sized avatar
🥱
?

sium_hossain siumhossain

🥱
?
View GitHub Profile
@siumhossain
siumhossain / gist:c422a77e764b1be893e5baa25c9294b4
Last active June 26, 2021 18:02
Stremio installation error in pop os

In pop os,missing some dependencies to run stremio.

That's why ubuntu newest source list should be in pop os source list.

  nano /etc/apt/sources.list

Here is the source list of ubuntu latest version,and this sources.list

```bash deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
@siumhossain
siumhossain / gist:7edb45a6de360c869fa75ba911297f53
Created November 25, 2020 16:19
Django application secret key modify
with open('/etc/secret_key.txt') as f:
SECRET_KEY = f.read().strip()
@siumhossain
siumhossain / gist:9185d4c2a4a0151a2324ed35392086c1
Created December 14, 2020 19:46
Bring up amar pay track id from server post request
import requests
import re
url = " https://sandbox.aamarpay.com/index.php"
myobj ={
'store_id':'aamarpaytest',
'tran_id':'a8r4yjrhkflndcjs4',
'success_url':'www.succes.com',
@siumhossain
siumhossain / gist:148c210cb41879c0db95e7a3f4152c9a
Last active December 16, 2020 20:39
make root permission to an application
$sudo chown root:root application_name
make run from anywhere
---------------------------
sudo mv app_name usr/local/bin
------------------------------
check
which app_name
@siumhossain
siumhossain / gist:fc1642cd7d461ca7c0936ff070cb2d37
Created December 21, 2020 17:36
make all card-img-top size same in bootstrap
.card-img-top {
width: 100%;
height: 15vw;
object-fit: cover;
}
@siumhossain
siumhossain / gist:3683585e5448a804369691593aa083ab
Created January 2, 2021 17:43
install package founder in linux
find /usr/share/applications -maxdepth 1 -type f -exec basename {} .desktop \; | sort
@siumhossain
siumhossain / gist:0057676059277ce2e46278dbe02ec0f2
Created January 27, 2021 17:32
a important comment view for me
def post_single(request, post):
post = get_object_or_404(Post, slug=post, status='published')
comments = post.comments.filter(status=True)
user_comment = None
if request.method == 'POST':
comment_form = NewCommentForm(request.POST)
@siumhossain
siumhossain / gist:d80bcb69f4ab4e2ebcd52d4ebcbe273d
Created January 30, 2021 07:14
keep update fork project with main project
$ git remote add upstream [link]
$ git branch
$ git fetch --all
$ git pull --rebase upstream master
$ git push origin master
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(
home: Home(),
));
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
import 'package:flutter/material.dart';
void main() => runApp(MaterialApp(
home: NinjaCard(),
));
class NinjaCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(