Skip to content

Instantly share code, notes, and snippets.

View AndreiD's full-sized avatar
🦄
🐦

Dan Ξ AndreiD

🦄
🐦
  • in front of a screen
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andreid on github.
  • I am andyx (https://keybase.io/andyx) on keybase.
  • I have a public key ASB34CD3TkjaUTEiiA9Oz2nuY-wKpo7JZqTW3bF7JZESXgo

To claim this, I am signing this object:

@AndreiD
AndreiD / error_500_page
Created October 31, 2018 21:12
cool error 500 page
<!DOCTYPE html><html><head><title>IGN Error 500 - Internal Server Problem</title><link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,800" rel="stylesheet"><style type="text/css">.cta,h1{letter-spacing:.5px}#wrapper,p{line-height:1.5em}h2,section.right{hyphens:auto}*{box-sizing:border-box;text-rendering:optimizeLegibility}body{background:#B97E39;grid-template-columns:auto;color:#252627;font-family:Montserrat,sans-serif}#wrapper{display:grid;font-size:16px;grid-template-columns:4fr 6fr;grid-gap:4em;height:100vh;padding:5% 10%}section.left,section.right{padding:4em 2em;align-self:center}section.left{border-right:1px solid rgba(255,255,255,.5);display:grid}.cta{text-align:center;display:inline-grid;align-content:center;align-items:center;padding:1em 3em;font-size:1em;border-radius:2em;margin-top:32px;text-decoration:none;transition:background .25s ease-in;position:relative;text-transform:uppercase;font-weight:700}.anotherquote,.anotherquote:hover{transition:background .25s ease-in-out}.secondar
@AndreiD
AndreiD / fdsa
Last active September 30, 2018 09:23
dsfa
package com.mex.integrationapp;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.squareup.okhttp.Call;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
@AndreiD
AndreiD / gistx
Created September 30, 2018 09:19
gistx
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.mex.integrationapp"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
@AndreiD
AndreiD / simplegoapp
Created September 30, 2018 09:18
simpleapp
package gotomobile
import "fmt"
func SayHello() {
fmt.Println("Hello!")
}
func SayHelloWithName(name string) {
fmt.Println("Hello! " + name)
@AndreiD
AndreiD / my_docker_cheetsheet.md
Last active June 1, 2019 12:58
My Docker Cheatsheet

Usefull

clear everything with docker

purge_docker.sh

docker system prune -a
docker images purge
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@AndreiD
AndreiD / MY NGINX CHEAT SHEET
Last active July 13, 2020 10:27
NGINX CHEAT SHEET
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=1r/s;
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 5M;
@AndreiD
AndreiD / electronen_popis_bulgaria.md
Last active August 28, 2018 18:28
braa.bg braa bulgaria electronen podpis instalatzya info notary

Instructions installing Electronic Podpis Bulgaria braa.bg braa bulgaria electronen podpis instalatzya info notary


Step #1: Required Software

download and install java8, both 32bits & 64bits write in google: "java8 jre install" and click the first link accept cookies, click on check radio button for accept license, download

@AndreiD
AndreiD / genesis_poa_geth.json
Last active September 13, 2018 07:54
genesis.json
{
"config": {
"chainId": 4340,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"clique": {
@AndreiD
AndreiD / gist:72dcc49965e4c51466428d5187faa288
Created July 19, 2018 07:01
Docker Compose Cheatsheet
Docker - Compose Cheatsheet
docker-compose logs --tail 100 rabbit. (rabbit is name of the instance)
docker-compose logs | grep error
The -f flag causes the docker logs command to act like the tail -f command and watch the container’s standard output.
docker-compose logs --tail="10" -f Service