Skip to content

Instantly share code, notes, and snippets.

View innat's full-sized avatar
:octocat:
Working from home

Mohammed Innat innat

:octocat:
Working from home
View GitHub Profile
@innat
innat / Floyd_Cloud Set Up.md
Last active July 2, 2018 05:25
environment setup for floyd cloud

Login - Initialize - Run

Sign Up first

Optionally we can do all things to create a conda environment.

Login

  1. local installation using 'pip install -U floyd-cli'
  2. floyd login -u <user_name>
@innat
innat / Syntax_Highlight_Jekyll.md
Last active June 24, 2021 21:31
Decent and Elegant Way To Highlight Code Syntax In Jekyll

All we need to worry about _sass/_highlights.scss.

First visit This web page to see live example.

Copy the following piece of code and paste or replace all code there in _highlights.scss file.

Approach_One

highlight { 
  background-color: #ffffff;
@innat
innat / env_anaconda_set.md
Last active June 6, 2018 13:45
Setting up anaconda environment and necessary packages

Open up the terminal and type following command

conda create -n <env_name> python=<version_no.>

To activate environment type following -

activate <env_name> [ for windows ] source activate <env_name> [ linux , Mac OS ]

@innat
innat / OpenCV_3_Python_3x.md
Last active November 24, 2018 15:53
Installing OpenCV3 for Python3x

Supported Python versions

Python 2.7 is the only supported version in 2.x series. Python 3.x releases follow Numpy releases. For example Python 3.3 is no longer supported by Numpy so support for it has been dropped in opencv-python, too.

Currently, builds for following Python versions are provided:

  • 2.7
  • 3.4
  • 3.5
@innat
innat / FFmpeg | Basic Operation on Subtitles.md
Last active March 4, 2026 20:48
Remove hard subtitles from video file || Integrate subtitles into a video file || Generate .srt file from a video file.

Download FFmpeg for Windows

Steps

  • Download FFmpeg
  • Extract it and save it to C drive ( choose any location - it's optional )
  • Set environment variable - copy the location of bin folder which is inside the extracted file and set the location on system path variable.
  • Done!
@innat
innat / Pig Latin.py
Created May 14, 2018 13:32
encrypt language :P
# One Way
word_string = input("Input a word: ")
while word_string[0].lower() not in ['a','e','i','o','u']:
word_string = word_string[1:] + word_string[0:1]
else:
print(word_string + 'ay')
@innat
innat / capture _events.py
Created May 9, 2018 20:30
Capture the mouse click events in Python and OpenCV
# Capture the mouse click events in Python and OpenCV
'''
-> draw shape on any image
-> reset shape on selection
-> crop the selection
run the code : python capture_events.py --image image_example.jpg
'''

General Commands

  • apt-get update

    Synchronizes the list of packages on your system to the list in the repositories. Use it before installing new packages to make sure you are installing the latest version.

  • apt-get upgrade

    Upgrades all of the software packages you have installed.

  • clear

    Clears previously run commands and text from the terminal screen.

@innat
innat / X11 Forwarding using Putty on Windows.md
Created May 8, 2018 15:23
Setting show to execute Linux GUI apps remotely using ssh - putty client and forwarding X11 content to a local windows Xming

Necessary Softwar

Install all of them and using putty remotely access to raspberry pi. We need to configure something.Type following command to edit a config file.

sudo nano /etc/ssh/ssh_config

following item need to change..

@innat
innat / Gennymotion.md
Last active May 2, 2018 00:10
Google_App_On_GennyMotion

Step One : Download Gennymotion

Step Two : Download Genymotion-ARM-Translation and drag and drop on the running enulator. Sometimes you need to do it manually.

Step Three : Downlaod following Droid infd app , then drag and drop on the emulator - it should open properly. Then tab to 'System' tab and see 'Instruction set' - it might be x86 architecture.

Step Four : Ddownload proper GAPPS packages by seleting the proper paremeter such as 'Platform' 'Android' 'Variant' and donload the file - then drag and drop it on the emulator. It should successfully flash. Reboot emulator.