Set up project:
mkdir project
cd project
npm init -y| "use strict"; | |
| const Nightmare = require('nightmare'); | |
| const url = "http://www.apple.com"; | |
| //just an example | |
| const path = "./testfile.png"; | |
| //we'll save the screenshot in the same directory | |
| const userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10A5376e"; | |
| //make sure we load the mobile version |
| const keyPublishable = process.env.PUBLISHABLE_KEY; | |
| const keySecret = process.env.SECRET_KEY; | |
| const app = require("express")(); | |
| const stripe = require("stripe")(keySecret); | |
| app.set("view engine", "pug"); | |
| app.use(require("body-parser").urlencoded({extended: false})); | |
| app.get("/", (req, res) => |
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service| version: '2.1' | |
| services: | |
| transmission: | |
| container_name: transmission | |
| image: dperson/transmission | |
| restart: unless-stopped | |
| depends_on: | |
| - plex | |
| network_mode: host | |
| environment: |
| #!/usr/bin/env bash | |
| # | |
| # Description: Auto test download & I/O speed script | |
| # | |
| # Copyright (C) 2015 - 2016 Teddysun <i@teddysun.com> | |
| # | |
| # Thanks: LookBack <admin@dwhd.org> | |
| # | |
| # URL: https://teddysun.com/444.html | |
| # |
| { | |
| "log": { | |
| "loglevel": "none" | |
| }, | |
| "inbound": { | |
| "port": 23456, | |
| "listen": "127.0.0.1", | |
| "protocol": "socks", | |
| "settings": { | |
| "udp": true |