Skip to content

Instantly share code, notes, and snippets.

View kapoorlakshya's full-sized avatar
🙃

Lakshya Kapoor kapoorlakshya

🙃
View GitHub Profile
// Build Cucumber Report
post {
always {
dir(path: 'cucumber-watir') {
cucumber(classifications: [
[
key: 'App Node',
value: '${app_node}'
],
[
switches = %w(--ignore-certificate-errors)
opts = { timeout: 120,
url: 'http://localhost:4444/wd/hub',
switches: switches,
tz: 'America/Los_Angeles' }
Watir::Browser.new(:chrome, opts)
@kapoorlakshya
kapoorlakshya / Enable Casting in SRWare Iron
Last active October 14, 2020 13:00
Enable Casting in SRWare Iron
If your SRWare Iron fails to detect your Chromecast, modify the following flags in `chrome://flags`:
1. Cast Streaming hardware video encoding - Disabled
2. Load Media Router Component Extension - Enabled
3. Media Remoting during Cast Tab Mirroring - Enabled
Restart the browser and you should now be able to cast to your Chromecast!
Source: Figured out this working combination after reading through countless forum posts, Chromecast help pages, and playing with the flags.
@kapoorlakshya
kapoorlakshya / fork_updater.rb
Created June 8, 2018 08:50 — forked from Skarlso/fork_updater.rb
Ruby script to update all your forked repositories
#!/usr/bin/env ruby
require 'octokit'
require 'logger'
@logger = Logger.new("output.log")
def update_fork(repo)
repo_name = repo.name
# clone the repository -- octokit doesn't provide this feature as it's a github api library

Questions to ask potential employers

  • How long do you expect it would take me to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
  • What's the longest tenure of a developer at this company?
  • How long has the top quarter of the developers been here?
  • What fraction of the developers have been here less than 6 months?
  • How long does it take to do a complete deployment?
  • How large are PRs? For a "big" PR, how many lines of code? How long is it open?
  • About what fraction of their time are developers given (implicitly or explicitly) the freedom to explore?
# 1 - 'Intranet'
# 2 - 'Trusted Sites'
# 3 - 'Internet'
# 4 - 'Restricted Sites
zones = [1, 2, 3, 4]
# @see https://superuser.com/questions/1031225/what-is-the-registry-setting-to-enable-protected-mode-in-a-specific-zone
mode = 0 # Enable
# mode = 3 # Disable