Skip to content

Instantly share code, notes, and snippets.

@wavedocs
wavedocs / .gitconfig
Last active June 28, 2016 18:07
gitconfig
[user]
email = wavedocs@gmail.com
name = Nazar
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
@wavedocs
wavedocs / openssl.cnf.ini
Last active December 22, 2015 06:59 — forked from garethrees/openssl.cnf.ini
OpenSSL + Config
# Generate Private Key
$ openssl genrsa -out server.key 2048
# Generate CSR
$ openssl req -new -out server.csr -key server.key -config openssl.cnf
# => Fill in info
# Check CSR
$ openssl req -text -noout -in server.csr
# Sign Cert
$ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
@wavedocs
wavedocs / bacula_jobstatus
Created March 31, 2014 06:48
Bacula JobStatus
+-----------+---------------------------------+----------+
| JobStatus | JobStatusLong | Severity |
+-----------+---------------------------------+----------+
| C | Created, not yet running | 15 |
| R | Running | 15 |
| B | Blocked | 15 |
| T | Completed successfully | 10 |
| E | Terminated with errors | 25 |
| e | Non-fatal error | 20 |
| f | Fatal error | 100 |
@wavedocs
wavedocs / stash-install.sh
Last active August 29, 2015 14:23 — forked from nkt/stash-install.sh
Atlassian Stash Install
#!/bin/sh
STASH_VERSION='3.8.0'
wget "https://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-${STASH_VERSION}.tar.gz"
tar xvzf "atlassian-stash-${STASH_VERSION}.tar.gz"
sudo adduser --disabled-login --shell /bin/bash --gecos 'Stash' stash
sudo mv "atlassian-stash-${STASH_VERSION}" /home/stash/stash
@wavedocs
wavedocs / README.md
Last active November 21, 2022 12:06 — forked from mashdot/README.md
Bacula concurrent jobs multiple storage devices client labeled pools debian installation configuration.
Time-stamp: <2012-03-30 Fri 16:56 README.md>
Author....: 'Mash (Thomas Herbert)

TOSHINE-BACULA

Bacula concurrent jobs multiple storage devices client labeled pools Debian installation and configuration.
Please see http://toshine.org/etc for full article.

Bacula Debian Installation.

@wavedocs
wavedocs / mongo.md
Last active September 9, 2017 23:17
mongodb
Create User
db.createUser({
    user:"dbuser",
    pwd:"dbuserd12em3o4",
    roles:["readWrite"]
})

db.createUser(
 {
@wavedocs
wavedocs / sysctl.conf
Last active September 12, 2015 19:01 — forked from kgriffs/sysctl.conf
Linux Web Server Kernel Tuning
# Configuration file for runtime kernel parameters.
# See sysctl.conf(5) for more information.
# See also http://www.nateware.com/linux-network-tuning-for-2013.html for
# an explanation about some of these parameters, and instructions for
# a few other tweaks outside this file.
# Protection from SYN flood attack.
net.ipv4.tcp_syncookies = 1
@wavedocs
wavedocs / debbuild.md
Last active September 25, 2015 07:32
build deb package
# apt-get source nginx
# apt-get build-dep nginx
(поправить что там надо)
# dpkg-buildpackage -b
# dpkg -i nginx.deb
"\e[1~": beginning-of-line # Home key
"\e[4~": end-of-line # End key
"\e[5~": beginning-of-history # PageUp key
"\e[6~": end-of-history # PageDown key
"\e[3~": delete-char # Delete key
"\e[2~": quoted-insert # Insert key
@wavedocs
wavedocs / compile-php.md
Last active September 23, 2016 20:50
Configure php 5.5.9
sudo apt-get update && sudo apt-get install build-essential libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev libxml2-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6-dev libkrb5-dev libpq-dev libxml2-dev libxslt1-dev

wget http://de1.php.net/get/php-5.5.9.tar.bz2/from/this/mirror -O php-5.5.9.tar.bz2
tar xjf php-5.5.9.tar.bz2

./configure --prefix=/opt/php5.5.9 --with-config-file-path=/etc/php5.5.9/apache2 --with-config-file-scan-dir=/etc/php5.5.9/apache2/conf.d --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl=/usr --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-j