The commands below assume you're using a user that can use sudo
, you're not logged in as root are you!?
First create a btsync user:
sudo useradd -M --shell /bin/false --home /var/lib/btsync
commands: | |
halt_if_cache_exists: | |
description: Halt a build if a cache already exists, without downloading the entire cache. Match only exact key. Pair with mark_cache_existence. | |
parameters: | |
category: | |
description: friendly name of the sort of cache (e.g. bundle, src) | |
type: string | |
key: | |
description: hash key where underlying data would be stored |
import os | |
from unittest import mock | |
import grpc | |
from google.auth.credentials import Credentials | |
from google.cloud import firestore | |
from google.cloud.firestore_v1.gapic import firestore_client | |
from google.cloud.firestore_v1.gapic.transports import firestore_grpc_transport |
find . -name "node_modules" -exec rm -rf '{}' +; find . -name "package-lock.json" -exec rm -rf '{}' +; |
import pandas as pd | |
def _map_to_pandas(rdds): | |
""" Needs to be here due to pickling issues """ | |
return [pd.DataFrame(list(rdds))] | |
def toPandas(df, n_partitions=None): | |
""" | |
Returns the contents of `df` as a local `pandas.DataFrame` in a speedy fashion. The DataFrame is | |
repartitioned if `n_partitions` is passed. |
//import the selenium web driver | |
var webdriver = require('selenium-webdriver'); | |
var chromeCapabilities = webdriver.Capabilities.chrome(); | |
//setting chrome options to start the browser fully maximized | |
var chromeOptions = { | |
'args': ['--test-type', '--start-maximized'] | |
}; | |
chromeCapabilities.set('chromeOptions', chromeOptions); | |
var driver = new webdriver.Builder().withCapabilities(chromeCapabilities).build(); |
# Download and install cygwin and some packages | |
function Install-Cygwin { | |
param ( $TempCygDir="$env:temp\cygInstall" ) | |
if(!(Test-Path -Path $TempCygDir -PathType Container)) | |
{ | |
$null = New-Item -Type Directory -Path $TempCygDir -Force | |
} | |
$client = new-object System.Net.WebClient | |
$client.DownloadFile("http://cygwin.com/setup.exe", "$TempCygDir\setup.exe" ) | |
# This does a vanilla installation of Cygwin |
--- | |
language: objective-c | |
before_script: | |
- ./scripts/travis/add-key.sh | |
after_script: | |
- ./scripts/travis/remove-key.sh | |
after_success: | |
- ./scripts/travis/testflight.sh | |
env: | |
global: |