Skip to content

Instantly share code, notes, and snippets.

View rahulmr's full-sized avatar
🏠
Working from home

Rahul Raut rahulmr

🏠
Working from home
View GitHub Profile
#!ipxe
menu iPXE Installation for Ubuntu Trusty and Fedora
item ubuntui386 Ubuntu Trusty i386 Installation
item ubuntuamd64 Ubuntu Trusty x86_64 Installation
item fedora20i386 Fedora 20 i386 Installation
item fedora21server Fedora 21 x86_64 Server Installation
item --gap
item back Go To Main Menu
choose --timeout 20000 --default back target && goto ${target} || goto menu
@rahulmr
rahulmr / SlipStreamVirtioDriversWindows10.md
Last active November 15, 2015 03:41
Slipstream virtio win drivers in Windows 8.1 Pro ISO

Adding instructions for Windows 10 Ent version.

Slipstream of particular version can be done only using the same version of Windows. Say Windows 8.1 for Slip Streaming Windows 8.1 and so this applies to Windows 10 as well.

dism /Mount-Wim /WimFile:c:\iso\ms-iso\sources\install.wim /index:1 /MountDir:c:\iso\ms-mount  
dism /Image:c:\iso\ms-mount /Add-Driver /Driver:c:\iso\virtio-iso\Balloon\w8.1\amd64 /recurse  
dism /Image:c:\iso\ms-mount /Add-Driver /Driver:c:\iso\virtio-iso\NetKVM\w8.1\amd64 /recurse  

dism /Image:c:\iso\ms-mount /Add-Driver /Driver:c:\iso\virtio-iso\pvpanic\w8.1\amd64 /recurse

@rahulmr
rahulmr / commands.md
Last active August 29, 2015 14:18
Shell scripts for qemu kvm

Install kvm qemu-utils qemu

apt-get install qemu-kvm qemu-utils qemu

To create image with qcow2 format

qemu-img create -f qcow2 win7x86.qcow2 20G

@rahulmr
rahulmr / angular.page.js
Last active November 30, 2016 10:46
Protractor example suite using page objects
'use strict';
var AngularPage = function () {
browser.get('http://www.angularjs.org');
};
AngularPage.prototype = Object.create({}, {
todoText: { get: function () { return element(by.model('todoList.todoText')); }},
addButton: { get: function () { return element(by.css('[value="add"]')); }},
yourName: { get: function () { return element(by.model('yourName')); }},
#!/bin/bash
apt-get -y install curl wget sudo
apt-get -y update
apt-get -y upgrade
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@rahulmr
rahulmr / .travis.linux.yml
Created March 21, 2017 11:20 — forked from chitoku-k/.travis.linux.yml
ChromeDriver on Travis CI
os: linux
node_js: '7'
sudo: required
env: DISPLAY=':99.0'
dist: trusty
addons:
apt:
sources:
- google-chrome
packages:
@rahulmr
rahulmr / Jenkinsfile
Created April 25, 2017 05:20 — 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 {
}
@rahulmr
rahulmr / browse.tpl
Created May 1, 2017 21:01 — forked from peterhellberg/browse.tpl
Code7 template used by the Caddy browse directive
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<link rel="stylesheet" href="http://c7.se/css/main.css">
<style>
body { font-family: 'Helvetica Neue', Sans-serif; }
#list {
width: 100%;
}
[Appium] Welcome to Appium v1.6.4 (REV 9e4c8e6b084f4fdc8f000f09ab87b7ede8ac6723)
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] sessionOverride: true
[Appium] debugLogSpacing: true
[Appium] defaultCommandTimeout: 30000
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[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":"com.rau.rahuldroid.am","appActivity":"com.rau.rahuldroid.am.activity.LandingActivity","noReset":true,"requestOrigins":{"url":"http://webdriver.io","version":"4.6.2","name":"webdriverio"}}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"j