Skip to content

Instantly share code, notes, and snippets.

View jspw's full-sized avatar
🔧
Learning & Exploring

MH Shifat jspw

🔧
Learning & Exploring
View GitHub Profile
@jspw
jspw / create_hotspot.md
Created March 20, 2020 11:30
Manually create a hotspot in your linux(debian) machine

Manually create a hotspot in your linux(debian) machine :

  • Install hostapd(hotspot server) and dnsmasq (dns dhcp server) : sudo dhclient eth0 or sudo dhclient wlan0
  • Prevent the installed services starting at the start up :
    • sudo service hostapd stop
    • sudo service dnsmasq stop
    • sudo update-rc.d hostapd disable
    • sudo update-rc.d dnsmasq disable
  • Setup the configuration file of dnsmasq : sudo gedit /etc/dnsmasq.conf
  • paste the code below :
@jspw
jspw / tasks.json
Created March 20, 2020 11:33
task.json file config for vs code for competitive programming (linux users)
//Author : 5hfT
//data:11th Feb,2020
//Task:shortcut to run a cpp file which will take input and show output of the programme automatically with programme runtime status such as memory comsume and execution time
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "",
@jspw
jspw / resources.md
Last active February 27, 2021 01:33
Things I Have Learned Yet and Learing with resources
@jspw
jspw / hadoop.md
Created March 21, 2020 10:01
What is Hadoop and how to Install Hadoop : Setting up a Single Node Hadoop Cluster

Test-Hadoop

The Apache Hadoop software library is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage. Rather than rely on hardware to deliver high-availability, the library itself is designed to detect and handle failures at the application layer, so delivering a highly-available service on top of a cluster of computers, each of which may be prone to failures.

There are two ways to install Hadoop, i.e. Single node and Multi node.

Single node cluster means only one DataNode running and setting up all the NameNode, DataNode, ResourceManager and NodeManager on a single machine. This is used for studying and testing purposes. For example, let us consider a sample data set inside a healthcare industry. So, for testing whether the Oozie jobs have scheduled all the processes like collecting,

@jspw
jspw / Xfce4_Bluetooth.md
Last active May 4, 2024 11:03
Setting up Bluetooth on Kali Linux 2020.1 (Xfce4)

Setting up Bluetooth on Kali Linux

  • Make sure bluetooth is enabled(at boot) and started

    • sudo systemctl enable bluetooth
    • sudo systemctl start bluetooth
  • Install blueman

    • sudo apt install blueman
  • Check the settings and task bar. You should see the bluetooth icon now !

@jspw
jspw / django.md
Created March 25, 2020 11:16
How To Start Web Development With Django 3.0.4

Django 3 !

Creating a virtual setup for Django

About Virtual Environment :

  • Check virtual environment list : conda info --envs
  • Viewing a list of the packages in an environment : conda list -n envirnment_name or
@jspw
jspw / Vjudge template.md
Created April 1, 2020 13:07
This is a problem set template for vjudge contests

Problem Details :

  • Judge Name : judge_name
  • Problem Name : problem_name
  • Problem Number : problem_number
  • Problem Link
@jspw
jspw / WSGI configuration file.py
Last active August 12, 2020 20:09
Host Your Django project in pythoneverywhere.com
import os
import sys
## assuming your django settings file is at '/home/jspw/mysite/mysite/settings.py'
## and your manage.py is is at '/home/jspw/mysite/manage.py'
path = '/home/jspw/mysite' #path of your project
if path not in sys.path:
sys.path.append(path)
os.chdir(path)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', "food_menu_project.settings") #projectname.settings
import django
@jspw
jspw / README.MD
Created April 25, 2020 12:11
Crack-WIFI-WPA2 usinng aircrack-ng

Crack-WIFI-WPA2

Lets capture the flag (I mean Handshake):

Terminal-1:

  1. Detect your wireless network interface :

    ifconfig

    if coudn't find command then try :

@jspw
jspw / PPPoE.md
Last active July 8, 2020 09:48
How to create a PPPoE/DSL connection !

PPPoE refers to Point-to-Point Protocol over Ethernet is a network protocol for encapsulating PPP frames inside Ethernet frames. It appeared in 1999, in the context of the boom of DSL as the solution for tunneling packets over the DSL connection to the ISP's IP network, and from there to the rest of the Internet.

In Ubuntu 20.04LTS I have found that in setting>network you just cant setup a new connection of dsl/ppoe type (I don't know why!) So you can use nmcli(network managerment command line)!

  • Name DSL/PPPoE connection : nmcli con edit type pppoe con-name "Your DSL name"

  • IPS provided username : set pppoe.username your_username