Skip to content

Instantly share code, notes, and snippets.

View kilatib's full-sized avatar

Vitalii Shtykhno kilatib

View GitHub Profile
#GoDaddy DDNS Update Script
#Test with RouterOS 6.45.2 (Minimum version RouterOS 6.44)
#Date:2019/08/02
#The read,write,policy,test that all of these policies need to be set in script for the global variable
#ref1 https://www.instructables.com/id/Quick-and-Dirty-Dynamic-DNS-Using-GoDaddy/
#ref2 http://www.minitw.com/post/2018/05/09/routeros-ddns-namecheap
#Easy Test
# /tool fetch url="https://api.godaddy.com/v1/domains/[domain]/records/A/[hostname]" http-method=put http-data="[{\"data\": \"10.10.10.10\"}]" http-header-field="content-type: application/json,Authorization: sso-key [API_KEY]:[API_SECRET]"
@kilatib
kilatib / .vimrc
Last active November 16, 2019 12:40
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'dracula/vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'scrooloose/nerdtree'
git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d
vim ~/.vim/vimrc
mkdir -p ~/.vim/bundle/
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# install plugins
vim +PluginInstall +qall
@kilatib
kilatib / vimrc
Last active September 12, 2018 07:51
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" common
Plugin 'scrooloose/nerdtree'
Plugin 'valloric/youcompleteme'
/ip address
add address=192.168.89.1/24 interface=ether2 network=192.168.89.0
/interface l2tp-server server
set default-profile=default enabled=yes ipsec-secret={secret_here} use-ipsec=yes
/ip pool
add name=vpn-pool ranges=192.168.89.2-192.168.89.14
/ppp profile
/ip service
set telnet address="" disabled=yes port=23
set ftp address="" disabled=yes port=21
set www address=192.168.88.0/24 disabled=no port=12345
set ssh address="" disabled=yes port=22
set www-ssl address="" certificate=none disabled=yes port=443
set api address="" disabled=yes port=8728
set winbox address="" disabled=no port=8291
blackfire:
image: blackfire/blackfire
environment:
# Exposes the host BLACKFIRE_SERVER_ID and TOKEN environment variables.
- BLACKFIRE_CLIENT_ID=5541d546-cce4-45ce-952d-3843d4f037c5
- BLACKFIRE_CLIENT_TOKEN=810e8329edbab151b766e9324d169caac5f6f4a841a4915d0758ac37c80c5b68
- BLACKFIRE_SERVER_ID=5969d91a-939b-4edd-a205-a1d429b279a9
- BLACKFIRE_SERVER_TOKEN=d7747d2a6330311dfd0cdbe71a2347ee10764768ebc781cbd379ed155679684b
# You can also use global environment credentials :
#\ BLACKFIRE_SERVER_ID: SERVER-ID
http://stackoverflow.com/questions/9258715/moving-app-to-production-mode-in-symfony-2
php app/console assets:install web --symlink
php app/console cache:clear --env=prod --no-debug
php app/console assets:install web_directory
php app/console assetic:dump web_directory