This file contains hidden or 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
| #Enable Gzip compressed. | |
| gzip on; | |
| # Enable compression both for HTTP/1.0 and HTTP/1.1. | |
| gzip_http_version 1.1; | |
| # Compression level (1-9). | |
| # 5 is a perfect compromise between size and cpu usage, offering about | |
| # 75% reduction for most ascii files (almost identical to level 9). | |
| gzip_comp_level 5; |
This is not a fix, but a workaround for repositories not on HTTPS yet. Use with caution.
[ERROR] (...) Could not transfer artifact no.whatever:whatever-client:pom:3.1 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases (http://unportected.com/nexus/content/repositories/releases, defaul)] -> [Help 1]
First, install the following libraries:
$ brew install unixodbc
$ brew install freetds --with-unixodbc
FreeTDS should already work now, without configuration:
$ tsql -S [IP or hostname] -U [username] -P [password]
locale is "en_US.UTF-8"
locale charset is "UTF-8"
This file contains hidden or 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
| ;; output example: "2022-11-25T08:30:05.417+00:00" | |
| (defn now->iso8601-str | |
| [] | |
| (let [tz (java.util.TimeZone/getTimeZone "UTC") | |
| df (new java.text.SimpleDateFormat "yyyy-MM-dd'T'HH:mm:ss.SSS'+00:00'")] | |
| (.setTimeZone df tz) | |
| (.format df (new java.util.Date)))) | |
| ;; other possible solution with "Z" instead of "+00:00" but(!) I don't like symbol "Z" anymore :-( |
Adapted from caddy systemd Service Unit
The provided file should work with systemd version 219 or later. It might work with earlier versions.
The easiest way to check your systemd version is to run systemctl --version.
We will assume the following:
This file contains hidden or 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
| FROM photon | |
| MAINTAINER Roman Tarnavski | |
| WORKDIR /node | |
| RUN tdnf install -y tar gzip xz | |
| RUN curl -O https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-x64.tar.xz && \ | |
This file contains hidden or 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
| FROM photon | |
| MAINTAINER Roman Tarnavski | |
| WORKDIR /node | |
| RUN tdnf install -y tar gzip xz | |
| RUN curl -O https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-x64.tar.xz && \ | |
This file contains hidden or 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
| curl --include \ | |
| --no-buffer \ | |
| --header "Connection: Upgrade" \ | |
| --header "Upgrade: websocket" \ | |
| --header "Host: example.com:80" \ | |
| --header "Origin: http://example.com:80" \ | |
| --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
| --header "Sec-WebSocket-Version: 13" \ | |
| http://example.com:80/ |
NewerOlder