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
| wget https://dl.pstmn.io/download/latest/linux64 -O /tmp/postman.tar.gz | |
| rm -rf /usr/bin/postman/* | |
| tar --wildcards -C /usr/bin/postman -xf /tmp/postman.tar.gz Postman/* --strip 1 | |
| mv /usr/bin/postman/Postman /usr/bin/postman/postman |
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
| public class DateTimeConverter implements AttributeConverter<DateTime, Date> { | |
| @Override | |
| public Date convertToDatabaseColumn(DateTime attribute) { | |
| return attribute == null ? null: new Date(attribute | |
| .withZone(DateTimeZone.UTC) | |
| .withZoneRetainFields(DateTimeZone.getDefault()) | |
| .getMillis()); | |
| } | |
| @Override |
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
| version: '2' | |
| services: | |
| db: | |
| image: mariadb:latest | |
| restart: unless-stopped | |
| container_name: ttrss_db | |
| mem_limit: 512m | |
| volumes: | |
| - ./database:/var/lib/mysql |
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
| for(int i = 126; i < 130; i++) { | |
| Integer n1 = i; | |
| Integer n2 = i; | |
| System.out.println(String.format("%d => %b", i, n1 == n2)); | |
| } | |
| /* Out : | |
| 126 => true | |
| 127 => true |
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
| version: '2' | |
| services: | |
| dnscrypt: | |
| image: gists/dnscrypt-proxy | |
| restart: unless-stopped | |
| container_name: dnscrypt | |
| ports: | |
| - "127.0.0.1:53:5353/udp" | |
| - "127.0.0.1:53:5353/tcp" |
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
| #!/usr/bin/env python | |
| import sys | |
| import qarnot | |
| import os | |
| import operator | |
| # Edit 'samples.conf' to provide your own credentials | |
| # Create a connection, from which all other objects will be derived |
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
| public class Main { | |
| public static void main(String[] args) { | |
| new SubClass(); | |
| } | |
| } |
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 ubuntu:16.04 | |
| MAINTAINER Nicolas Barranger <[email protected]> | |
| USER root | |
| RUN mkdir /monero && cd /monero && mkdir data | |
| RUN apt update && apt install -y wget ca-certificates openssl bzip2 | |
| WORKDIR /monero | |
| RUN wget -O monero.tar.bz2 https://downloads.getmonero.org/linux64 |
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
| #!bash | |
| ./gradlew -Pcoverage clean connectedDebugAndroidTest | |
| #build.gradle | |
| testCoverageEnabled (project.hasProperty('coverage') ? true : false) |
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
| sudo start-stop-daemon --start --chuid www-data --background --exec /usr/bin/php -- /var/www/tt-rss/update_daemon2.php --feeds --quiet |
NewerOlder