Skip to content

Instantly share code, notes, and snippets.

View yugander-krishan-singh's full-sized avatar
🎯
Focusing

Yugander Krishan Singh yugander-krishan-singh

🎯
Focusing
  • India
View GitHub Profile
/*
*
* #####Problem Statement:#####
*This problem was asked by Spotify.
*You are the technical director of WSPT radio, serving listeners nationwide. For simplicity's sake we can consider each
*listener to live along a horizontal line stretching from 0 (west) to 1000 (east).
*
*Given a list of N listeners, and a list of M radio towers, each placed at various locations along this line, determine

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
@yugander-krishan-singh
yugander-krishan-singh / Jenkinsfile
Created January 10, 2018 06:52 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage concurrency constraints, ...
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
/*
Please make sure to add the following environment variables:
HEROKU_PREVIEW=<your heroku preview app>
HEROKU_PREPRODUCTION=<your heroku pre-production app>
HEROKU_PRODUCTION=<your heroku production app>
@yugander-krishan-singh
yugander-krishan-singh / Jenkinsfile
Created August 10, 2017 17:40 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}