Skip to content

Instantly share code, notes, and snippets.

View rnagarajanmca's full-sized avatar

Nagarajan rnagarajanmca

View GitHub Profile
@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 / emulate_rpi_on_windows.md
Last active March 24, 2024 14:34
Raspberry pi emulator for windows

Emulate Raspberry pi on windows

Following files required to emulate raspberry pi on windows

  • QEMU Emulator
  • Raspberry pi kernel
  • Raspberry pi OS image

QEMU emulator

  • QEMU is an emulator
@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 / 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

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

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 / 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 / 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() }