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
| ;@echo off &title Files.html listing from directory context-menu by AveYo v1.0 | |
| ;if not exist "%~1" ( goto :setup ) else pushd "%~1\.." &echo Listing "%~1" - please wait... &set "fn=%~nx1 Files.html" | |
| ;del /f/q "%fn%" >nul 2>nul &cd.>"%fn%" 2>nul | |
| ;if exist "%fn%" ( set "files=%CD%\%fn%" ) else set "files=%USERPROFILE%\Desktop\%fn%" | |
| ;pushd "%~1" | |
| ;set "ampersand=&" &set "escape=&" | |
| ;> "%files%" findstr -bv ; "%~f0" | |
| ;>>"%files%" echo ^<p^>%DATE%, %TIME%^</p^>^<div class="filetree"^> | |
| ;>>"%files%" <nul set/p="<ul class="main-tree"><li class="tree-title">%~1</li>" | |
| ;>>"%files%" echo. |
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
| create table "Tickers_Data" | |
| ( | |
| ticker integer not null | |
| constraint tickers_data_ticker_foreign | |
| references "Tickers", | |
| time date not null, | |
| low double precision not null, | |
| high double precision not null, | |
| open double precision not null, | |
| close double precision not null, |
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
| package com.company.mapping; | |
| import io.confluent.common.config.ConfigException; | |
| import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient; | |
| import io.confluent.kafka.serializers.AbstractKafkaAvroDeserializer; | |
| import io.confluent.kafka.serializers.KafkaAvroDeserializerConfig; | |
| import org.apache.kafka.common.serialization.Deserializer; | |
| import java.util.Collections; | |
| import java.util.List; |
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
| # Encrypt | |
| curl -sbiL -X POST http://localhost:8888/encrypt -d '[the value you want to encrypt]' | |
| # Decrypt | |
| curl -sbiL -X POST http://localhost:8888/decrypt -d '[the encrypted value, without the "{cipher}" prefix]' |
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: | |
| plex: | |
| image: linuxserver/plex | |
| container_name: plex | |
| volumes: | |
| - /path/to/plex/config:/config | |
| - /path/to/plex/Movies:/data/movies | |
| - /path/to/plex/Shows:/data/tvshows | |
| - /path/to/plex/transcode:/data/transcode |
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 alpine:3.7 | |
| RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/community/' >> /etc/apk/repositories | |
| ENV PYTHON_VERSION=2.7.14-r2 | |
| ENV PY_PIP_VERSION=9.0.1-r1 | |
| ENV SUPERVISOR_VERSION=3.3.1 | |
| ENV NGINX_VERSION=1.12.2-r3 | |
| RUN mkdir /www && mkdir /www/myapp/ |
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
| import org.apache.avro.Schema; | |
| import org.apache.avro.generic.GenericData; | |
| import org.apache.avro.generic.GenericRecord; | |
| import org.apache.avro.reflect.ReflectData; | |
| import java.util.Arrays; | |
| public class GenericRecordFixtureFactory { | |
| public static GenericRecord createFromEvent(String siteId, String visitorId, String timestampMs) { | |
| EventMock eventMock = new EventMock(); |
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
| #!/bin/bash | |
| # Taken from http://rustyautopsy.github.io/rabbitholes/2014/10/21/vmcreate/ | |
| # Original author: Travis Dolan | |
| DEFAULT_DISK_SIZE=32 | |
| DEFAULT_MEMORY=2048 | |
| DEFAULT_SOCKETS=1 | |
| DEFAULT_CORES=2 | |
| DEFAULT_ISO='ubuntu-14.04-server-amd64.iso' |
Here I have 2 methods for running portainer on windows, a quick, preferred method only requiring a fairly recent version of docker, or a more complicated method to try if that does not work.
This setup will let you run Portainer on windows by using the host.docker.internal endpoint (docker.for.win.localhost is depricated since docker version 3.2.1, but older versions may use this instead).
Please note: