Skip to content

Instantly share code, notes, and snippets.

Avatar

Denis Proskurin dpvpro

  • S-Pb
View GitHub Profile
@dpvpro
dpvpro / crontab_exemple_with_variable.sh
Last active Jan 9, 2019
crontab_exemple_with_variable
View crontab_exemple_with_variable.sh
TIME="date +%Y%m%d_%H%M"
2 6 * * * rsync -av --delete ~/Code /home/backup/ > /home/backup/backup_log_$($TIME) 2>&1
9 9 * * 1-6 cd /home/dp/Code/mashtab/veil-repo/devops/veil-vagrantfile; vagrant box update
@dpvpro
dpvpro / pycharm-education.desktop
Created Aug 26, 2018
pycharm-education.desktop
View pycharm-education.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Pycharm Community
Exec=/snap/bin/pycharm-community
Icon=/snap/pycharm-community/current/bin/pycharm.png
Comment=Pycharm Community
Categories=Development
@dpvpro
dpvpro / goland.desktop
Last active Aug 26, 2018
decktop shortcuts for jetbrains
View goland.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=GoLand
Exec=/snap/bin/goland
Icon=/snap/goland/current/bin/goland.png
Comment=Goland
Categories=Development
@dpvpro
dpvpro / perl: warning: setting locale failed.
Last active Sep 27, 2018
perl: warning: setting locale failed.
View perl: warning: setting locale failed.
locale-gen en_US.UTF-8
export LC_ALL="en_US.UTF-8"
sudo dpkg-reconfigure locales
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8
View sublime.settings
Work:
{
"theme": "Material-Theme.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"fallback_encoding": "Cyrillic (Windows 1251)",
"font_size": 12,
"index_files": false,
"show_encoding": true,
"update_check": false,
@dpvpro
dpvpro / backup_jenkins.sh
Last active Apr 14, 2017
Backup Jenkins on Linux
View backup_jenkins.sh
#!/bin/bash
#set -x
COUNT_OLD_TAR=10
# example name backup_20170404_1553.tar.gz
TIME=$(date +%Y%m%d_%H%M)
FILENAME=backup_$TIME.tar.gz
SRCDIR=/var/lib/jenkins
#DESTDIR=~/jenkins_backup
#cd $DESTDIR
You can’t perform that action at this time.