Skip to content

Instantly share code, notes, and snippets.

View ervitis's full-sized avatar
👺

ervitis ervitis

👺
View GitHub Profile
# Todo Projects
Projects to develop
- Get crossfit schedules and training from their twitter account and add it in my google calendar
- VPN in raspberry
Optional:
- Earthquakes bot using telegram
@ervitis
ervitis / .env
Last active February 20, 2021 18:44
automute-us
DISCORD_BOT_TOKEN= # include the bot token https://github.com/denverquane/automuteus#self-hosting
POSTGRES_ADDR=postgres:5432
POSTGRES_USER=postgres
POSTGRES_PASS=My_p4Ssw0rd!
AUTOMUTEUS_TAG=6
BROKER_PORT=8123
AUTOMUTEUS_REDIS_ADDR=redis:6379
GALACTUS_REDIS_ADDR=redis:6379
GALACTUS_TAG=2.4.1
GALACTUS_HOST=
@ervitis
ervitis / main.go
Created January 7, 2021 12:08
hennge test
package main
import (
"bufio"
"bytes"
"io"
"io/ioutil"
"log"
"os"
"strconv"
@ervitis
ervitis / Application.java
Last active April 8, 2020 14:21
UnkownProducerIdException
package app.java.kafka.poc;
import org.apache.kafka.common.KafkaException;
import org.apache.kafka.common.errors.UnknownProducerIdException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
FROM alpine:3.10
ARG MECAB_VERSION="0.996"
ARG IPADIC_VERSION="2.7.0-20070801"
ARG USERNAME="nroot"
ENV CGO_LDFLAGS -L/usr/lib/x86_64-linux-gnu -lmecab -lstdc++
ENV CGO_CFLAGS -I/usr/include
RUN apk add --no-cache alpine-sdk --virtual .builddeps
@ervitis
ervitis / telepresence.log
Created December 17, 2018 14:59
telepresence
0.0 TEL | Telepresence 0.95 launched at Mon Dec 17 15:56:32 2018
0.0 TEL | /usr/bin/telepresence
0.0 TEL | Platform: linux
0.0 TEL | Python 3.6.7 (default, Oct 22 2018, 11:32:17)
0.0 TEL | [GCC 8.2.0]
0.0 TEL | [1] Running: uname -a
0.0 1 | Linux azurite 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
0.0 TEL | BEGIN SPAN main.py:47(main)
0.0 TEL | BEGIN SPAN startup.py:55(__init__)
0.0 TEL | [2] Capturing: kubectl version --short
package main
import (
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"log"
"time"
)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from argparse import ArgumentParser
LAPTOP_POSITIONS = dict(LAPTOP_SCREEN_HOME_POSITION='1920x0', LAPTOP_SCREEN_WORK_POSITION='0x1080')
SCREENS_OPTIONS = dict(
@ervitis
ervitis / disable-touchscreen.py
Created February 24, 2018 08:51
Script disable touchscreen
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import subprocess
import re
COMMAND_XINPUT = 'xinput'
ARG_COMMAND_XINPUT_DISABLE = 'disable'
PATTERN_TOUCHSCREEN = 'Touchscreen\s+id=\d+'
@ervitis
ervitis / packer virtualbox
Created November 1, 2015 14:20
Packer virtualbox ssh handshake failing
2015/11/01 15:07:39 [INFO] Packer version: 0.8.6 f8f7b7a34c1be06058f5aca23a51247db12cdbc5+CHANGES
2015/11/01 15:07:39 Packer Target OS/Arch: linux amd64
2015/11/01 15:07:39 Built with Go Version: go1.5
2015/11/01 15:07:39 [DEBUG] Discovered plugin: amazon-chroot = /opt/packer/packer-builder-amazon-chroot
2015/11/01 15:07:39 [DEBUG] Discovered plugin: amazon-ebs = /opt/packer/packer-builder-amazon-ebs
2015/11/01 15:07:39 [DEBUG] Discovered plugin: amazon-instance = /opt/packer/packer-builder-amazon-instance
2015/11/01 15:07:39 [DEBUG] Discovered plugin: digitalocean = /opt/packer/packer-builder-digitalocean
2015/11/01 15:07:39 [DEBUG] Discovered plugin: docker = /opt/packer/packer-builder-docker
2015/11/01 15:07:39 [DEBUG] Discovered plugin: file = /opt/packer/packer-builder-file
2015/11/01 15:07:39 [DEBUG] Discovered plugin: googlecompute = /opt/packer/packer-builder-googlecompute