This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 <[email protected]> | |
# based on https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pgadmin4 by Jan Alexander Steffens (heftig) <[email protected]> | |
# 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 hidden or 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 hidden or 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 hidden or 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 | |
pandoc "$1.md" -o "$1.html" | |
echo -e "<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>$1</title></head><body>\n$(cat $1.html)\n</body></html>" > "$1.html" |
This file contains hidden or 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
sudo pacman -S openssl-1.0 | |
cd /path/to/your/ruby/sources | |
CPPFLAGS="-I/usr/include/openssl-1.0" LIBS="-L/usr/lib/openssl-1.0" ./configure && make | |
sudo make install |
This file contains hidden or 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
" Format JSON | |
function JsonFormat() | |
execute(':%! ruby -rjson -e "print JSON.pretty_generate(JSON.parse(ARGF.read))"') | |
endfunction | |
command JsonFormat call JsonFormat() |