Skip to content

Instantly share code, notes, and snippets.

View lucax88x's full-sized avatar

Luca Trazzi lucax88x

View GitHub Profile
@lucax88x
lucax88x / docker-compose.prod.yml
Created October 6, 2017 11:03
docker-compose with proxy -> api / app -> postgres / redis / elasticsearch
version: '3'
services:
proxy:
build:
context: ./src
dockerfile: dockerfile.proxy
links:
- api
- app
ports:
@lucax88x
lucax88x / dockerfile.write.migrations
Created October 10, 2017 17:25
dockerfile.write.migrations
FROM microsoft/dotnet:2.0-sdk AS build-env
LABEL Luca Trazzi
COPY ./src /build
WORKDIR /build/Memore.Infrastructure.Write.Migrations
RUN dotnet restore
RUN dotnet build -c Release -o ../out
WORKDIR /build/Memore.Migrator
version: '3'
volumes:
pgdata:
esdata:
redisdata:
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:5.6.1"
ports:
FROM ubuntu:16.04
RUN apt-get update
#&& apt-get upgrade \
RUN apt-get install -y sudo apt-utils curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
RUN apt-get install -y nodejs tesseract-ocr
RUN mkdir -p /data/ocr
WORKDIR /data/ocr
COPY samples/* samples/
COPY gulpfile.js .
# compiles & run charon
FROM microsoft/dotnet:2.2-sdk AS compiler
COPY src /build
WORKDIR /build/codebase/DAP.Console.Charon
RUN dotnet restore
RUN dotnet publish -c Release -o out
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/lucatrazzi/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
Chain INPUT (policy ACCEPT 36 packets, 1296 bytes)
num pkts bytes target prot opt in out source destination
1 7439 1348K LOG all -- any any 65.12.12.12/24 anywhere LOG level debug prefix "**SUSPECT**"
2 13M 17G ufw-before-logging-input all -- any any anywhere anywhere
3 13M 17G ufw-before-input all -- any any anywhere anywhere
4 31328 4189K ufw-after-input all -- any any anywhere anywhere
5 21308 1823K ufw-after-logging-input all -- any any anywhere anywhere
6 21308 1823K ufw-reject-input all -- any any anywhere anywhere
7 21308 1823K ufw-track-input all -- any any anywhere anywhere
@lucax88x
lucax88x / shortcuts
Last active February 13, 2020 16:54
VSCODE
ALT+1 focus explorer
GENERAL
SHIFT+ENTER adds a new line after current
CTRL+ALT+ENTER start New Line Before Current
EMACS
@namespace url(http://www.w3.org/1999/xhtml);
.type-articolo .container .container-header-article .article-label,
.type-articolo .container .container-header-article .article-title,
.type-articolo .container .container-header-article .article-subtitle,
.type-articolo .container .container-body-article .chapter,
.type-articolo .container .container-body-article .article-signature,
.container .container-center-side .side_content,
.type-articolo .container .container-body-article,
.type-articolo .container .container-header-article,
.type-articolo .container .container-header-article .web_widget_giornalista {
@lucax88x
lucax88x / stop.js
Created January 29, 2020 15:48
remove gazzetta.it adblock
$('.bck-adblock').classList.remove('is--active');$('html').classList.remove('has--adblock');