Skip to content

Instantly share code, notes, and snippets.

View redsox2002's full-sized avatar

Sudhir Ganesan redsox2002

View GitHub Profile
### Keybase proof
I hereby claim:
* I am redsox2002 on github.
* I am sudhirganesan (https://keybase.io/sudhirganesan) on keybase.
* I have a public key ASDVb6QwHAQMXJwHCJc_IeGa9z5Fu8QNtx7l4nLD7W3gLQo
To claim this, I am signing this object:
@redsox2002
redsox2002 / cloudSettings
Last active December 23, 2018 00:40
test
{"lastUpload":"2018-12-23T00:40:50.253Z","extensionVersion":"v3.2.4"}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@redsox2002
redsox2002 / cp-local-development-instructions.md
Last active July 17, 2017 14:10
Community Platform (Zen) Local Development Setup
  1. Use below Vagrantfile, this will install a Ubuntu 16.04 box and update the server and install git and the build-essential packages.
  Vagrant.configure("2") do |config|
   config.vm.box = "bento/ubuntu-16.04"
   config.vm.network "forwarded_port", guest: 80, host: 10301
   config.vm.network "private_network", ip: "192.168.33.10"
   config.vm.provision "shell", inline: <<-SHELL
     apt-get update
     apt-get install git build-essential 
 SHELL
# Setup NDT Server on Ubuntu 14.04
##### Server Configuration in OpenStack:
- Comcast Cloud Ubuntu 14.04 x86_64 v2.5
- m1.medium (4GB RAM/2 CPU)
- ndt-group security group
- Ports opened (below):
```
3001 TCP NDT data
3002 TCP NDT data
@redsox2002
redsox2002 / jenkins_user.sh
Last active March 28, 2017 15:03
This will get the user who kicked off the Jenkins job using the Jenkins API
#!/bin/bash
# This script will get the pipeline user who kicked off the job in Jenkins. This is useful if you want to display that user in Slack or another notification system
# Insert your Jenkins URL in the $JENKINS_URL variable
export URL=https://$JENKINS_URL/$BUILD_NUMBER/api/xml
# Insert your GitHub organization as well as the repo name
export WORKSPACE=/srv/jenkins/workspace/Organization/project-pipeline-master
cd $WORKSPACE