Skip to content

Instantly share code, notes, and snippets.

BeerVPN

<Типо вступительные слова про RC v0.1>. Итак, поехали.

Создаём Telegram бота

  • пишем @botfather
  • Вводим /newbot
  • Отвечаем на вопросы
@egeneralov
egeneralov / full-daemon.json
Created November 17, 2018 15:04
Docker daemon.json
{
"authorization-plugins": [],
"data-root": "",
"dns": [],
"dns-opts": [],
"dns-search": [],
"exec-opts": [],
"exec-root": "",
"experimental": false,
"features": {},
[Service]
Environment="DOCKER_OPTS= --data-root=/var/lib/docker --log-opt max-size=50m --log-opt max-file=5 --iptables=false -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock --insecure-registry 0.0.0.0/0"
@egeneralov
egeneralov / README.md
Created April 22, 2019 09:02
The Creation of the UNIX* Operating System
@egeneralov
egeneralov / Dockerfile
Created June 24, 2019 20:07
build eos.io image for docker right way
# ===============================================================
# base image
FROM debian:9.9
RUN \
apt-get update -q && \
apt-get install -yq \
--no-install-recommends \
@egeneralov
egeneralov / Jenkinsfile
Created June 25, 2019 00:07
Jenkinsfile examples
/*
Example Jenkinsfile for build docker images.
Just place inside VCS and use multibranch project.
*/
node('master') {
checkout scm
stage("build") {
/* build it */
@egeneralov
egeneralov / README.md
Last active June 25, 2019 05:50
pkg your applications

pkg your applications

  • run install.sh
  • write contents from profile.sh to ~/.bash_profile
  • use like pkgapp /Applications/Apple\ Configurator\ 2.app
  • OR pkgapp Apple\ Configurator\ 2.app
  • OR pkgapp Apple\ Configurator\ 2
  • search dmg on your desktop
#!/bin/sh
# Random UUID for this config
vpnUuid=``
# Address of VPN server
serverName=""
# The group of usernames that is allowed in
groupName=""
# The name of connection type displayed in GUI
labelName=""
@egeneralov
egeneralov / fast_copy_vm_to_new_vm.sh
Created July 3, 2019 09:20
Just note for juniors
# variables for run
NAME=cloudflare.com
SRCIP=1.1.1.1
# delete droplet
doctl compute droplet delete "${NAME}" --force
# create new droplet
doctl compute droplet create \
#!/bin/bash -xe
# debian[-based]
apt-get update -q
apt-get install -yq gnupg2 curl apt-transport-https default-jre
curl -sL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" > /etc/apt/sources.list.d/elastic.list