(for Apple macOS / Mac OSX)
Date: Thursday, May 4 2017
Related search: thrift "syntax error near unexpected token `QT,'"
Getting errors like this when running ./configure ...?
| FROM debian:latest | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| wget \ | |
| python3 | |
| WORKDIR /build |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "os" | |
| "strings" |
| var jsSha1 = require("js-sha1") | |
| function go(config) { | |
| function check() { | |
| var userAgent = window.navigator.userAgent, | |
| checkFlags = ['Phantom']; | |
| for (var i = 0; i < checkFlags.length; i++) { | |
| if (userAgent.indexOf(checkFlags[i]) != -1) { | |
| return true; | |
| } |
| package main | |
| import ( | |
| "encoding/binary" | |
| "errors" | |
| "fmt" | |
| "io" | |
| "net" | |
| ) |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "net" | |
| "runtime" | |
| "sync" | |
| "sync/atomic" | |
| "time" |
| // Please use the package https://github.com/chmike/domain as is it maintained up to date with tests. | |
| // checkDomain returns an error if the domain name is not valid. | |
| // See https://tools.ietf.org/html/rfc1034#section-3.5 and | |
| // https://tools.ietf.org/html/rfc1123#section-2. | |
| func checkDomain(name string) error { | |
| switch { | |
| case len(name) == 0: | |
| return nil // an empty domain name will result in a cookie without a domain restriction | |
| case len(name) > 255: |
| #! /bin/bash | |
| # [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69) | |
| # Download latest Golang release for AMD64 | |
| # https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
| set -euf -o pipefail | |
| # Install pre-reqs | |
| sudo apt-get install python3 git -y | |
| o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') |
| SELECT table, | |
| formatReadableSize(sum(bytes)) as size, | |
| min(min_date) as min_date, | |
| max(max_date) as max_date | |
| FROM system.parts | |
| WHERE active | |
| GROUP BY table |
| FROM ubuntu | |
| RUN apt-get update -y \ | |
| && apt-get install -y wget \ | |
| && wget -O netselect.deb http://http.us.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-28+b1_`dpkg --print-architecture`.deb \ | |
| && dpkg -i netselect.deb \ | |
| && rm netselect.deb \ | |
| && sed -r -i -e "s#http://(archive|security)\.ubuntu\.com/ubuntu/?#$(netselect -v -s1 -t20 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "http://[^\"]*"`|grep -P -o 'http://.+$')#g" /etc/apt/sources.list |
(for Apple macOS / Mac OSX)
Date: Thursday, May 4 2017
Related search: thrift "syntax error near unexpected token `QT,'"
Getting errors like this when running ./configure ...?