Skip to content

Instantly share code, notes, and snippets.

View augusteo's full-sized avatar

Vin Astralis augusteo

  • Zaibatsu Heavy Industries
  • Silicon Valley
View GitHub Profile
Apr 13 23:33:26 rc_service: httpd 545:notify_rc start_vpnclient1
Apr 13 23:33:28 openvpn[28750]: OpenVPN 2.4.0 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 29 2017
Apr 13 23:33:28 openvpn[28750]: library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.08
Apr 13 23:33:28 openvpn[28751]: WARNING: --ping should normally be used with --ping-restart or --ping-exit
Apr 13 23:33:28 openvpn[28751]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Apr 13 23:33:28 openvpn[28751]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 13 23:33:28 openvpn[28751]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 13 23:33:28 openvpn[28751]: TCP/UDP: Preserving recently used remote address: [AF_INET]103.231.89.34:1194
Apr 13 23:33:28 openvpn[28751]: Socket Buffers: R=[122880->122880] S=[122880->122880]
Apr 13 23:33:28 openvpn[287
image: augusteo/centos-rsync-openssh
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
staging-deployment:
stage: deploy
FROM centos:latest
MAINTAINER Augusteo
RUN yum -y update; yum clean all
RUN yum -y install openssh openssh-server openssh-clients openssl-libs rsync which; yum clean all
image: centos:latest
before_script:
- yum install -y which
- 'which ssh-agent || ( yum install -y openssh openssh-server openssh-clients openssl-libs )'
- 'which rsync || ( yum install -y rsync )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
//
// BeaconManager.swift
// Keno
//
// Created by Victor Augusteo on 17/8/16.
// Copyright © 2016 Tabcorp. All rights reserved.
//
import Foundation
import ReactiveCocoa
func location() {
locationManager.delegate = self
locationManager.allowsBackgroundLocationUpdates = true
locationManager.desiredAccuracy = kCLLocationAccuracyBest
locationManager.requestAlwaysAuthorization()
locationManager.startUpdatingLocation()
}
<?xml version="1.0" encoding="UTF-8"?>
<gpx>
<wpt lat="-37.8114622" lon="144.9647283"><time>2010-01-01T00:00:00Z</time></wpt>
...
<wpt lat="-37.8116487" lon="144.9645996"><time>2010-01-01T01:19:44Z</time></wpt>
</gpx>
<?xml version="1.0" encoding="UTF-8"?>
<gpx>
<trkpt lat="-37.8117843" lon="144.9566173">
<ele>62.000000</ele>
<time>2010-01-01T00:00:00Z</time>
</trkpt>
...
<trkpt lat="-37.8118521" lon="144.9564456">
<ele>59.000000</ele>
<time>2010-01-01T03:27:06Z</time>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpsies="http://www.gpsies.com/GPX/1/0" creator="GPSies http://www.gpsies.com - GPSies Track" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.gpsies.com/GPX/1/0 http://www.gpsies.com/gpsies.xsd">
<metadata>
<name>GPSies Track</name>
<link href="http://www.gpsies.com/">
<text>GPSies Track on GPSies.com</text>
</link>
<time>2016-07-10T05:47:48Z</time>
</metadata>
<trk>
<name>GPSies Track on GPSies.com</name>
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:gpsies="http://www.gpsies.com/GPX/1/0" creator="GPSies http://www.gpsies.com - GPSies Track" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.gpsies.com/GPX/1/0 http://www.gpsies.com/gpsies.xsd">
<metadata>
<name>GPSies Track</name>
<link href="http://www.gpsies.com/">
<text>GPSies Track on GPSies.com</text>
</link>
<time>2016-07-10T05:47:48Z</time>
</metadata>
<trk>