This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Place it to your .vimrc file | |
" Set ctags files path | |
set tags=tags;/ | |
" Upate Tags | |
function UpdateTags() | |
execute(':!echo "Updating ctags..." ; ctags -R') | |
endfunction | |
command UpdateTags call UpdateTags() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
redis-cli KEYS "*" | awk "{print \"echo \\\"RESTORE \"\$1\" 0 \`redis-cli --csv DUMP \\\"\"\$1\"\\\"\` \\\" \"}" | bash > dump.bkp | |
# to restore use: cat dump.bkp | redis-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Ivan Zinovyev <vanyazin@gmail.com> | |
# based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pgadmin4 by Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | |
# To reset settings/access rights remove .pgadmin folder in the home directory of the user who is launching the pgamdin4 script | |
# The service will be abailable at localhost:5050 and can be opened by the browser | |
pkgname=pgadmin4 | |
pkgver="1.1" | |
pkgrel=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker images | awk '{if ($1 == "<none>") print "docker rmi "$3" -f"}' | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a slack-desktop package. | |
# It is built from the official .deb package from the slack web site. | |
pkgname=slack-desktop | |
pkgver=2.3.3 | |
pkgrel=1 | |
epoch= | |
pkgdesc="" | |
arch=('x86_64') | |
url="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
while true; do $@; sleep 1; clear; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Redmine server | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
User=nginx | |
Group=nginx | |
ExecStart=/bin/bash -c 'source /usr/local/rvm/scripts/rvm && ruby /opt/redmine/bin/rails server unicorn -eproduction' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Git Repositories Server Daemon | |
Documentation=man:git-daemon(1) | |
[Service] | |
# Ignore non-zero exit status, access error makes git-daemon return them | |
ExecStart=/usr/bin/git daemon \ | |
--user=git --group=git \ | |
--reuseaddr \ | |
--base-path=/opt/git/ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VBoxManage clonemedium [/path/to/vagrant.vmdk] [/path/to/vagrant.vdi] --format vdi # Clone to vdi cause VBox can not resize vmdk format | |
VBoxManage modifyhd [/path/to/vagrant.vdi] --resize 30000 # Resize to 30Gb | |
VBoxManage modifyvm [wbox-name] --hda [/path/to/vagrant.vdi] # Attach to VM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Vagrant nginx & php-fpm | |
# Vagrant basic bootstrap.sh file configuration for getting a ready to use dev solution | |
# | |
# Ivan Zinovyev <vanyazin@gmail.com> | |
# | |
# (The "ubuntu/trusty64" box was used and tested) | |
# |