Skip to content

Instantly share code, notes, and snippets.

Working from home

Rahul Raut rahulmr

Working from home
Block or report user

Report or block rahulmr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rahulmr / hello.ps1
Created Jul 29, 2018 — forked from lukesampson/hello.ps1
A simple example for Scoop documentation.
View hello.ps1
$name = split-path (whoami) -leaf
"Hello, $name!"
rahulmr / hello.ps1
Last active Jul 29, 2018
hello of my own
View hello.ps1
$name = split-path (whoami) -leaf
"Hello, $name!"
View Bootstrap-EC2-Windows-CloudInit.ps1
# install 7-zip, curl and vim
# (Windows 2012 comes with .NET 4.5 out-of-the-box)
# Then use the EC2 tools to create a new AMI from the result, and you have a system
# that will execute user-data as a PowerShell script after the instance fires up!
# This has been tested on Windows 2012 64bits AMIs provided by Amazon (eu-west-1 ami-a1867dd6)
# Inject this as user-data of a Windows 2012 AMI, like this (edit the adminPassword to your needs):
# <powershell>
# Set-ExecutionPolicy Unrestricted
rahulmr / cloud-init-ms-windows.txt
Created Aug 4, 2017
Cloud Init MS Windows Poor Man Script Install Chocolatey and packages
View cloud-init-ms-windows.txt
script: |
Try {
(new-object Net.WebClient).DownloadString("") | iex
import-module PsGet
Install-Module PowerYaml
$userdata = (Get-Yaml (Invoke-RestMethod http://instance-data/latest/user-data))
rahulmr / phantomjsGoogleSearch
Created Jul 20, 2017 — forked from ndhu/phantomjsGoogleSearch
phantomjs. example on how to search google, collect links of search result and scrape multiple pages of the search result
View phantomjsGoogleSearch
* Created by andy hulstkamp
var webpage = require("webpage"),
fs = require("fs");
var debug = false,
pageIndex = 0,
allLinks = [],
rahulmr /
Created Jun 1, 2017 — forked from addyosmani/
So, you want to run Chrome headless.

Update May 2017

Eric Bidelman has documented some of the common workflows possible with headless Chrome over in


If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome:

Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.

View appium_logs.log
[Appium] Welcome to Appium v1.6.4 (REV 9e4c8e6b084f4fdc8f000f09ab87b7ede8ac6723)
[Appium] Non-default server args:
[Appium] address:
[Appium] sessionOverride: true
[Appium] debugLogSpacing: true
[Appium] defaultCommandTimeout: 30000
[Appium] Appium REST http interface listener started on
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"browserName":"","appiumVersion":"1.6.3","deviceName":"HUAWEI Y330-U01","platformName":"android","platformVersion":"4.2.2","app":"./app-country-qa-debug.apk","waitforTimeout":30000,"commandTimeout":30000,"androidDeviceReadyTimeout":60,"readyTimeout":120000,"launchTimeout":120000,"appPackage":"","appActivity":"","noReset":true,"requestOrigins":{"url":"","version":"4.6.2","name":"webdriverio"}}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"j
rahulmr / browse.tpl
Created May 1, 2017 — forked from peterhellberg/browse.tpl
Code7 template used by the Caddy browse directive
View browse.tpl
<!DOCTYPE html>
<meta charset='utf-8'>
<link rel="stylesheet" href="">
body { font-family: 'Helvetica Neue', Sans-serif; }
#list {
width: 100%;
rahulmr / Jenkinsfile
Created Apr 25, 2017 — 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.
View Jenkinsfile
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
rahulmr / .travis.linux.yml
Created Mar 21, 2017 — forked from chitoku-k/.travis.linux.yml
ChromeDriver on Travis CI
View .travis.linux.yml
os: linux
node_js: '7'
sudo: required
env: DISPLAY=':99.0'
dist: trusty
- google-chrome
You can’t perform that action at this time.