Skip to content

Instantly share code, notes, and snippets.

View rnagarajanmca's full-sized avatar

Nagarajan rnagarajanmca

View GitHub Profile
@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
@rnagarajanmca
rnagarajanmca / ubuntu_configure_noip.md
Created August 5, 2019 19:55
configure noip ( dynamic dns)

Install ddclient and configure noip dyn DNS


Install ddclient using following command

sudo apt-get install ddclient

Skip all installation steps (Don't worry we can configure after installation)

After successful installation open following file

@rnagarajanmca
rnagarajanmca / apk install from windows context menu.md
Last active October 24, 2023 18:07
Register windows context menu entry to install apk with adb
@rnagarajanmca
rnagarajanmca / format_sd_rpi.md
Created September 20, 2017 11:20
Format SD card for Raspberry pi using Windows CMD

Formatting SD card using diskpart


Insert the SD card into an card reader and plug it to the PC.

  • Open a Windows command prompt console and start Diskpart by typing following command.

    \>diskpart

  • List all of your disks.

@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.

@rnagarajanmca
rnagarajanmca / raspberrypi_usb_audio.md
Last active November 18, 2023 11:11
Configure Raspberry pi with USB Audio

Device specifications

List USB Device

Once you connected the USB Audio device with Raspberry pi use following command to see the list of connected USB device

Get Mac ID

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

Get Mac id of ESP8266

#include <Arduino.h>
#include <ESP8266WiFi.h>
void setup() {
    Serial.begin(115200);
    Serial.println("Mac address:"+WiFi.macAddress());
}
@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