Skip to content

Instantly share code, notes, and snippets.

View sirusdas's full-sized avatar
😎
Think Interesting!!!

Suresh sirusdas

😎
Think Interesting!!!
View GitHub Profile
@sirusdas
sirusdas / readMe.md
Created August 5, 2018 15:21
Removed Kali from a Dual Boot with Windows

Procedure

Login to Kali Open Terminal with root access cd /boot/grub/ cp grub.cfg grub.bak.cfg vim grub.cfg Search for ###BEGIN Make sure Kali Linux is listed inside it. Don't delete Windows Data. Remove everthing from it until you reached ###END >type :w! to save the data and :q to quit the editor.

@sirusdas
sirusdas / Magento.md
Last active September 5, 2018 11:12
Magento Technical Doc

Re-index your code!

  php bin/magento indexer:reindex

When in trouble try this code

    rm -rf generated
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
@sirusdas
sirusdas / Ubuntu Install Apache2, Mysql, PhpMyAdmin and Php.md
Last active August 20, 2018 12:15
Ubuntu Install Apache2, Mysql, PhpMyAdmin and Php

Doing shits without xampp or lampp For Php use goole For Apache 2 use google. For Mysql Use Google. For PhpMyAdmin use google.

Once this are done! You may need to do this codes below

sudo a2enmod rewrite
@sirusdas
sirusdas / useful_terminal_cmd.md
Last active August 8, 2021 15:37
Useful terminal commands( Ubuntu and other..)

Get a running process details

ps -fax | grep node

Froce a process to kill itself( Zombie Kill )

kill -9 process_id

Finding the PID of the process using a specific port?

$ sudo ss -lptn 'sport = :80' or $ sudo netstat -nlp | grep :80

@sirusdas
sirusdas / python-commands.md
Created March 5, 2018 05:56
A list of few useful python commands

#Find power

  >>> pow(2,3)
  8

#Find max

@sirusdas
sirusdas / Vim-commands.md
Last active March 8, 2018 14:23
List of useful Vim commands

#indent paragraphs

Step 1:

> CODE: :'<,'> norm I    
> Get into visual mode by pressing v.
> Select the paragraph to indent.
> Press :
&gt; You will see a code like :'&lt;,'&gt; in that type norm I followed by how many spaces you required.
@sirusdas
sirusdas / ADB Commands
Created February 15, 2018 20:39
Helpful ADB(Android Debuggind Bridge) Commands
>adb devices
>adb reboot-bootloader //boots into fastboot mode
>fastboot flash recovery twrp.img //flashing a recovery image
>fastboot boot twrp.img //boots recovery which can be used to flash custom rom
@sirusdas
sirusdas / Vim-plugins commands.md
Last active April 29, 2018 18:16
Vim plugins commands

#scrooloose/nerdtree

Description: A tree file structure for easy access in VIM.


Git Link: https://github.com/scrooloose/nerdtree


Commands: 1. Switch NERDTree on and off: + " or NERDTreeToggle 2. Open file in a new tab: t NOTE: Press ? for all the available commands

@sirusdas
sirusdas / rtmpdump.txt
Last active April 6, 2023 11:27
A way to download videos hosted on Amazon Web Services.
rtmpdump -v -r "rtmps://53c7c8e287199.streamlock.net/vods3/mp4:amazons3/coursekart/videos/1521/topics/Introduction to Compilers - Part - 1 of 1_qtp.mp4" -y "mp4:amazons3/coursekart/videos/1521/topics/Introduction to Compilers - Part - 1 of 1_qtp.mp4" -W "http://d2190hpfa85jkd.cloudfront.net/v11/student/swf/flowplayer-3.2.18.swf" -o Introduction to Compilers.mp4
or
rtmpdump -r "rtmpe://s2s984nlpdzqvb.cloudfront.net/cfx/st/mp4:gate/published/ap_tp_lecture_2017-12-19-17-00_Digital_Electronics_Karth_b9542f91-7f5c-4bf3-a3e5-7b0914db6ae8_11-32-54_2017-12-19-12.36.16.498-UTC_mnhj.mp4" -y "mp4:gate/published/ap_tp_lecture_2017-12-19-17-00_Digital_Electronics_Karth_b9542f91-7f5c-4bf3-a3e5-7b0914db6ae8_11-32-54_2017-12-19-12.36.16.498-UTC_mnhj.mp4" -W "https://doubtpoint.tv/gate/vendor/libs/jwplayer.flash.swf" -o abc.mp4 -e -b 12000
NOTE- 12000 is changed by the video length in seconds.
@sirusdas
sirusdas / Using GIT from CMD.md
Last active May 23, 2018 11:47
How to upload files to github using Git for Windows.

How to upload files to github using Git for Windows.

  1. Download Git for windows Google it
  2. Create a GitHub account on GitHub.com
  3. Once it is all setup and you have your GH account created create a repository.
  4. If you are using Processing like I will be choose it in your Git ignore. For example if you are using Unity you would search for Unity.
  5. For you license choose MIT. Then create!