Skip to content

Instantly share code, notes, and snippets.

View rnagarajanmca's full-sized avatar

Nagarajan rnagarajanmca

View GitHub Profile
Install AWS CLI using following command
>pip install awscli
Integrated shell for AWS CLI, Can be used for tab completion, Command suggestions
>pip install aws-shell
@rnagarajanmca
rnagarajanmca / opencv_guide.md
Created August 4, 2017 13:26
Open CV Reference

Install OpenCV under windows environment

  • Install anaconda
  • Create anaconda environment
  • Use conda install -c menpo opencv3 to install opencv
@rnagarajanmca
rnagarajanmca / install_ffmpeg_ubuntu.md
Created August 12, 2017 03:41
Install FFMPEG in ubuntu

Install FFMPEG in ubuntu

sudo add-apt-repository ppa:mc3man/trusty-media

sudo apt-get update
sudo apt-get dist-upgrade

sudo apt-get install ffmpeg

Get Mac id of ESP8266

#include <Arduino.h>
#include <ESP8266WiFi.h>
void setup() {
    Serial.begin(115200);
    Serial.println("Mac address:"+WiFi.macAddress());
}

Get Mac ID

#include <Arduino.h>
#include <ESP8266WiFi.h>
void setup() {
    Serial.begin(115200);
    Serial.println("Mac address:"+WiFi.macAddress());
}
@rnagarajanmca
rnagarajanmca / jenkins_guideline.md
Created September 7, 2017 06:42
Jenkins setup Guidelines

Clear Jenkins build history

Use the following script to clear the build history from jenkins. Goto Manage Jenkins > Script Console and type the following script

// change this variable to match the name of the job whose builds you want to delete
def jobName = "Your Job Name"
def job = Jenkins.instance.getItem(jobName)

job.getBuilds().each { it.delete() }
@rnagarajanmca
rnagarajanmca / jenkins_ios_setup.md
Last active September 12, 2017 10:44
Setting up jenkins for ios build

Troubleshooting

  • When jenkins build throws following error
     Going to invoke xcodebuild:target: Sampleapp, sdk: DEFAULT, workspace: Sampleapp, clean: YES, archive:NO, symRoot: DEFAULT, buildDir: DEFAULT, developmentTeamID: XXXXXXX
    [Sampleapp] $ /usr/bin/xcodebuild -target Sampleapp -workspace Sampleapp.xcworkspace clean build DEVELOPMENT_TEAM=XXXXXXX
    xcodebuild: error: You cannot specify targets with a workspace.

xcodebuild: error: If you specify a workspace then you must also specify a scheme. Use -list to see the schemes in this workspace.

Preparing RPi to connect with AWS IoT

Follow the steps to setup RPi as AWS IoT thing Do a Raspbian update by using following command

>sudo apt-get update
>sudo apt-get upgrade

Minimum Requirements

@rnagarajanmca
rnagarajanmca / aws_cli_iot.md
Last active May 22, 2019 18:27
Instructions to use AWS IoT through CLI
Create a Thing
>aws iot create-thing --thing-name Thing1
 {
    "thingArn": "arn:aws:iot:us-west-2:747839..:thing/Thing1",
    "thingName": "Thing1"
}
List all Things
@rnagarajanmca
rnagarajanmca / ubuntu_networking.md
Created August 30, 2019 16:23
Frequently used netwro

Netcat : To Listen packet recieved in specific port Sample usecases

:\> nc -v -l 8089 ## Listen to the port 8089
:\> nc -v 127.0.0.1 8089