Skip to content

Instantly share code, notes, and snippets.

View arifsuhan's full-sized avatar

Arif Suhan arifsuhan

View GitHub Profile
@arifsuhan
arifsuhan / brainf.py
Created February 27, 2018 19:13
BrainF*ck
def loopRunner(loop,endChar):
s=""
for i in loop:
s+=">"
for j in range(0,i):
s+="+"
s+=endChar+"\n"
return s
@arifsuhan
arifsuhan / Flutter101.md
Last active January 17, 2022 14:58
Android SDK CLI flutter

Flutter Installation

Flutter Setup

flutter create my_app
flutter run
@arifsuhan
arifsuhan / bdixTest.sh
Last active May 31, 2019 06:00
bdix site connection check
function check_ping () {
ping -q -c1 $1 > /dev/null
if [ $? -eq 0 ]
then
echo "(!)" $1 "is connected"
else
echo "(x)" $1 "is not connected"
@arifsuhan
arifsuhan / practice001.dart
Last active May 4, 2019 14:17
Bangla Book List & Rating
// Add a new route to hold the favorites.
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
@arifsuhan
arifsuhan / Sum Elements of Any Dimensional Array
Last active May 6, 2019 11:26
Sum elements of nd-array (Python)
def sum_without_loop(array, sum ):
if( type(array) == int or type(array) == float ):
sum += array
else:
for i in array:
sum = sum_without_loop(i,sum)
return sum
@arifsuhan
arifsuhan / wget.sh
Last active November 17, 2023 08:58
Wget Download website
wget -p -k [domain]
#base
url=""
wget -r -np --cut-dirs=2 $url
# skip exist
wget -r -np -nc --cut-dirs=2 $url
# only meta data
@arifsuhan
arifsuhan / ubuntu_14.06_driver.md
Last active November 27, 2019 07:12
ubuntu 14.06 driver setup

Step 1: Add the Official Nvidia PPA to Ubuntu

To add the drivers repository to Ubuntu, run the commands below:

sudo add-apt-repository ppa:graphics-drivers/ppa

When you run the commands above, you should get a prompt to accept the repository signing key as well.. accept and continue installing the PPA…

Step 2: Update and Install Nvidia Drivers

Now that the PPA is installed, run the commands below to install the current latest drivers for your system.

@arifsuhan
arifsuhan / cuda_path.txt
Created November 28, 2019 09:05
Ubuntu 18.04 Cuda Path
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@arifsuhan
arifsuhan / adb_tut.md
Last active November 16, 2021 19:25
All About ADB Logcat & Android App

Use All Command from Main Terminal

File Transfer

1. adb push [localmachine path] [emulator/phone path]
2. adb pull [emulator/phone path] [localmachine path]

Install App

An API Testing Framework: cmtestrunner

Steps Command
Create Virtual Env python3 -m venv [env_name]
Then activate the Env source [env_name]/bin/activate
Install dependency pip install -r requirements.txt
Create Django Project django-admin startproject [name]
Check pip packages pip list
Create utils directory python manage.py iwanttotest