Clone private
git clone [email protected]:silas/dotfiles.git dotfiles.git
Or public repository
git clone https://github.com/silas/dotfiles.git dotfiles.git
| import java.io.InputStream | |
| import org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils | |
| import org.apache.spark.sql.{ DataFrame, Row } | |
| import org.postgresql.copy.CopyManager | |
| import org.postgresql.core.BaseConnection | |
| val jdbcUrl = s"jdbc:postgresql://..." // db credentials elided | |
| val connectionProperties = { |
Clone private
git clone [email protected]:silas/dotfiles.git dotfiles.git
Or public repository
git clone https://github.com/silas/dotfiles.git dotfiles.git
| Country | Alpha-2 code | Alpha-3 code | Numeric code | Latitude (average) | Longitude (average) | |
|---|---|---|---|---|---|---|
| Afghanistan | AF | AFG | 4 | 33 | 65 | |
| Åland Islands | AX | ALA | 248 | 60.116667 | 19.9 | |
| Albania | AL | ALB | 8 | 41 | 20 | |
| Algeria | DZ | DZA | 12 | 28 | 3 | |
| American Samoa | AS | ASM | 16 | -14.3333 | -170 | |
| Andorra | AD | AND | 20 | 42.5 | 1.6 | |
| Angola | AO | AGO | 24 | -12.5 | 18.5 | |
| Anguilla | AI | AIA | 660 | 18.25 | -63.1667 | |
| Antarctica | AQ | ATA | 10 | -90 | 0 |
| import yaml | |
| import yaml.constructor | |
| def load(data): | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement |
| var httpProxy = require('http-proxy'); | |
| // | |
| // Addresses to use in the round robin proxy | |
| // | |
| var addresses = [ | |
| { | |
| host: 'ws1.0.0.0', | |
| port: 80 | |
| }, |
| require 'rubygems' | |
| require 'sinatra' | |
| require 'net-ldap' | |
| require 'digest/sha1' | |
| require 'base64' | |
| require 'haml' | |
| LDAP_HOST = 'localhost' | |
| ADMIN_DN = 'cn=admin,dc=company,dc=com' |
| #!/usr/bin/env bash | |
| DST_PATH="${DST_PATH:-/tmp}" | |
| backup() { | |
| uuid="$1" | |
| label_name=$( xe vm-list uuid="$uuid" | grep 'name-label' | cut -b 24- ) | |
| snapshot_uuid=$( xe vm-snapshot vm="$uuid" new-name-label=backup_vm ) | |
| xe template-param-set is-a-template=false ha-always-run=false uuid="$snapshot_uuid" |