This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
def get_user_shell(): | |
USR_BIN_BASH = "/usr/bin/bash" | |
BIN_BASH = "/bin/bash" | |
default_shell = USR_BIN_BASH if os.path.exists(USR_BIN_BASH) else BIN_BASH if os.path.exists(BIN_BASH) else None | |
shell = os.environ.get("DEFAULT_SHELL", os.environ.get("SHELL", default_shell)) | |
if shell is None: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Fisa-vim-config | |
" http://fisadev.github.io/fisa-vim-config/ | |
" version: 8.3.1 | |
" ============================================================================ | |
" Vim-plug initialization | |
" Avoid modify this section, unless you are very sure of what you are doing | |
let vim_plug_just_installed = 0 | |
let vim_plug_path = expand('~/.vim/autoload/plug.vim') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gunicorn.app.base | |
from gunicorn.six import iteritems | |
class DashGunicornWrapper(gunicorn.app.base.BaseApplication): | |
def __init__(self, app, options=None): | |
self.options = options or {} | |
self.application = app.server | |
super(DashGunicornWrapper, self).__init__() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Following file take opencv mat file as an input and run inception model on it | |
Created by : Kumar Shubham | |
Date : 27-03-2016 | |
*/ | |
//Loading Opencv fIles for processing | |
#include <opencv2/opencv.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: nw_jenkins | |
# HWRP:: jenkins_saucelabs_password_credentials | |
# | |
# Author:: Mehmet Gerceker <[email protected]> | |
class Chef | |
class Resource::JenkinsSauceLabsPasswordCredentials < Resource::JenkinsPasswordCredentials | |
resource_name :jenkins_saucelabs_password_credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bah = '''SauceOnDemandSessionID=1d5073926956481086d9ed554a54354c job-name=verifyEmailInputTest | |
SauceOnDemandSessionID=3313a3618ef94cdc903c521245b8e8db job-name=verifyEmailInputTest | |
SauceOnDemandSessionID=750f845dd0a84553948842910e0d25f5 job-name=verifyEmailInputTest | |
SauceOnDemandSessionID=2c0b874d4ff040b18dc0c1834721058e job-name=verifyEmailInputTest | |
SauceOnDemandSessionID=49d2413dfab04cfb9033abef33251d15 job-name=verifyEmailInputTest''' | |
print(bah) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#This script is intended to be run from the root of the sauce connect package. | |
SCBIN="bin/sc" | |
LOGPREFIX="./tmp" | |
##Uncomment the lines below and set your credentials | |
#UNAME="" | |
#AKEY="" | |
function start_sauce_connect() { | |
tunnelId=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js | |
var q = require('q'); | |
var jasmineReporters = require('jasmine-reporters'); | |
exports.config = { | |
sauceUser: process.env.SAUCE_USERNAME, | |
sauceKey: process.env.SAUCE_ACCESS_KEY, | |
//seleniumAddress: 'http://ondemand.saucelabs.com:80/wd/hub', | |
specs: ['specs/*spec.js'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc qdisc del dev eth0 root |
NewerOlder