Skip to content

Instantly share code, notes, and snippets.

View infoslack's full-sized avatar
🏠
Working from home

Daniel Romero infoslack

🏠
Working from home
View GitHub Profile
@infoslack
infoslack / Dockerfile
Created July 5, 2017 20:58
minimal Dockerfile
FROM microsoft/dotnet:1.1.2-runtime
ADD . /app/Service.Authentication.Identity
COPY appsettings.json /var/cedro/configs/
ENTRYPOINT dotnet /app/Service.Authentication.Identity/Service.Authentication.Identity.dll
@infoslack
infoslack / demo.yml
Created April 22, 2017 18:45
LinuxKit Example
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:63eed9ca7a09d2ce4c0c5e7238ac005fa44f564b
- linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
- linuxkit/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
onboot:
- name: sysctl
@infoslack
infoslack / install.sh
Created March 15, 2017 02:15 — forked from marklit/install.sh
Bot Detection Script. Works with Apache and Nginx Log Files.
sudo apt-get update
sudo apt-get install \
python-dev \
python-pip \
python-virtualenv
virtualenv findbots
source findbots/bin/activate
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
@infoslack
infoslack / keybase.md
Created January 20, 2017 20:44
keybase

Keybase proof

I hereby claim:

  • I am infoslack on github.
  • I am infoslack (https://keybase.io/infoslack) on keybase.
  • I have a public key whose fingerprint is 0A8E 272F E908 7839 39B9 01AC 37D6 BB52 CE7B ED4D

To claim this, I am signing this object:

@infoslack
infoslack / rumrun-setdns.c
Created January 24, 2016 17:54
Rump Kernel set dns module
#include <err.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
int main(int argc, char *argv[])
{
@infoslack
infoslack / nginx.conf
Last active August 29, 2015 14:22 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@infoslack
infoslack / postgres.md
Last active August 29, 2015 14:21
Postgres - trabalhando com users

Criar super usuário:

$ sudo -u postgres createuser --superuser $USER

Adicionar extensões:

$ sudo -u postgres psql template1 -c 'create extension if not exists "hstore"'
@infoslack
infoslack / sumario.md
Last active December 2, 2015 11:22
Livro de Docker
  1. Introdução
  • O que é Docker ?
  • O que diferencia um container de uma máquina virtual ?
  • O que são Namespaces ?
  • Para que serve o Cgroups ?
  • O que é Union file systems ?
  1. Explorando o Docker
  • Instalação
  • Hello, Docker!