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=Last.fm scrobbler for MPD | |
After=multi-user.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/mpdas -c /etc/mpdasrc -d | |
[Install] | |
WantedBy=multi-user.target |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
## Exports | |
# Common | |
HISTFILESIZE=1000000000 | |
HISTSIZE=10000000 | |
# HISTCONTROL=ignoreboth:erasedups | |
HISTCONTROL=ignorespace:erasedups | |
## Colors |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_face": "Monaco", | |
"font_options": | |
[ | |
"gray_antialias" | |
], | |
"font_size": 12, |
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
server { | |
listen 80; | |
server_name zabbix.lan; | |
access_log /opt/brew/var/log/nginx/zabbix_access.log; | |
error_log /opt/brew/var/log/nginx/zabbix_error.log; | |
root /Users/xeron/workspace/devel/zabbix/frontends/php; | |
index index.php index.html index.htm; |
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
ASRock H97M PRO4 (mATX DDR3 LGA 1150 Motherboard) | |
Intel Core i7-4790K 4.0 GHz LGA 1150 (BX80646I74790K) | |
Crucial 16GB Kit DDR3 1600 MT/s PC3-12800 CL11 Desktop Memory (CT2KIT102464BA160B) | |
Noctua CPU Cooler NH-U12P SE2 | |
EVGA GTX 1080 Ti SC2 Graphics Card | |
Cooler Master V550 - Compact 550W 80 PLUS Gold Modular PSU | |
Fractal Design Define Mini System Cabinet Mini Tower Black | |
OLD REPLACED PARTS: |
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
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local0 notice | |
maxconn 4096 | |
nbproc 1 | |
pidfile /var/run/haproxy.pid | |
user haproxy | |
group haproxy |
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
#!/bin/sh | |
today=`date +%Y_%m_%d` | |
backdir=$HOME/mysql/$today | |
mkdir -p $backdir | |
for i in `echo "show databases" | mysql -uUser -pPassword | sed 1d`; do | |
mysqldump -uUser -pPassword $i | gzip > $backdir/$i.sql.gz; | |
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
#!/bin/bash | |
USER=backups | |
REMOTE_SERVER=example.com | |
PORT=22 | |
BACKUP_DIR=/home/backups | |
echo "rsync -a -r --delete $BACKUP_DIR/current/ $BACKUP_DIR/old" | ssh $USER@$REMOTE_SERVER | |
rsync -a -r --delete --rsh "ssh -p$PORT" /home/webmaster $USER@$REMOTE_SERVER:$BACKUP_DIR/current/ |
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
require 'rubygems' | |
require 'open-uri' | |
require 'nokogiri' | |
require 'iconv' | |
def download(url) | |
`wget -c --content-disposition http://slil.ru/#{url}` | |
end | |
if ARGV.length == 0 || ARGV[0].empty? |
NewerOlder