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 / js-ajax-php-json-return.html
Created February 15, 2016 13:59 — forked from jonsuh/js-ajax-php-json-return.html
jQuery AJAX Call to PHP Script with JSON Return
<div class="the-return">
[HTML is replaced when successful.]
</div>
@sirusdas
sirusdas / 0_reuse_code.js
Created February 15, 2016 14:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sirusdas
sirusdas / MobileConfig.txt
Created July 21, 2016 04:06
Useful Mobile Config Check
Mobile Config:
1. Processor
2. Ram
3. Sensors(4-5)
4. Camera Quality
5. Built
6. Accessories
7. Display
8. Display Protection
9. SIM support
@sirusdas
sirusdas / Show-Hide Blocks in Html Automated
Last active July 30, 2016 10:03
Show-Hide Blocks in Html using Jquery and exapand when you hit + and close when you hit -
<!DOCTYPE html>
<html>
<head>
<style>
sh{
display: none;
}
.wpe-box .sh0{
float: right;
@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!
@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 / 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 / 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-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 / python-commands.md
Created March 5, 2018 05:56
A list of few useful python commands

#Find power

  >>> pow(2,3)
  8

#Find max