Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!perl | |
use 5.014; | |
use warnings; | |
use lib::abs './Here-Template/lib'; | |
use Here::Template; | |
use Text::Xslate; | |
use Benchmark qw(cmpthese); | |
my %vpath = ( 'test.tx' => <<'XSLATETT' ); | |
Hello, my pid is <: $a :> |
diff -Naur rsync-3.0.6/Makefile.in rsync-3.0.6-sleepflag/Makefile.in | |
--- rsync-3.0.6/Makefile.in 2009-04-11 03:24:49.000000000 +0400 | |
+++ rsync-3.0.6-sleepflag/Makefile.in 2010-08-05 22:05:32.000000000 +0400 | |
@@ -35,7 +35,7 @@ | |
OBJS1=flist.o rsync.o generator.o receiver.o cleanup.o sender.o exclude.o \ | |
util.o main.o checksum.o match.o syscall.o log.o backup.o | |
OBJS2=options.o io.o compat.o hlink.o token.o uidlist.o socket.o hashtable.o \ | |
- fileio.o batch.o clientname.o chmod.o acls.o xattrs.o | |
+ fileio.o batch.o clientname.o chmod.o acls.o xattrs.o sleeper.o | |
OBJS3=progress.o pipe.o |
#!/bin/bash | |
echo "Generating an SSL private key to sign your certificate..." | |
openssl genrsa -des3 -out myssl.key 1024 | |
echo "Generating a Certificate Signing Request..." | |
openssl req -new -key myssl.key -out myssl.csr | |
echo "Removing passphrase from key (for nginx)..." | |
cp myssl.key myssl.key.org | |
openssl rsa -in myssl.key.org -out myssl.key |
#!/bin/bash | |
# Script to automate PhpMyAdmin updates | |
# To manually switch to another version, use... | |
# bash pma-auto-update.sh version_number | |
### Variables | |
[email protected] | |
SITESDIR=${HOME}/sites |
#!/bin/bash | |
set -e | |
# Usage: | |
# rsync_parallel.sh [--parallel=N] [rsync args...] | |
# | |
# Options: | |
# --parallel=N Use N parallel processes for transfer. Defaults to 10. | |
# | |
# Notes: |
- http://www.coffeepowered.net/2009/06/13/fine-tuning-your-garbage-collector/ | |
- http://snaprails.tumblr.com/post/241746095/rubys-gc-configuration | |
article’s settings: ("spec spec" took 17-23!sec) | |
export RUBY_HEAP_MIN_SLOTS=1250000 | |
export RUBY_HEAP_SLOTS_INCREMENT=100000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=30000000 | |
export RUBY_HEAP_FREE_MIN=12500 |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $exclude_list_path_static = "/etc/ovznodes_backup_rsync_exclude_list.static"; | |
my $exclude_list_path_dynamic = "/etc/ovznodes_backup_rsync_exclude_list.dynamic"; | |
my $config_file_path = '/etc/ovznodes_backup_config'; | |
# должна объявляться в конфиге |
#!/bin/sh | |
cd /root/backup || exit | |
date=`date +%F` | |
days=10 | |
host=`hostname` | |
nice rsync -aR --delete --link-dest=$PWD/$host.current --exclude-from=exclude.list \ | |
/etc/apache2 \ |
[ | |
{ | |
"keys": ["super+k", "super+c", "super+l"], | |
"command": "toggle_color_scheme", | |
"args":{ | |
"options": [ | |
{ | |
"color_scheme": "Packages/User/Flatland Monokai (SL).tmTheme" , | |
"theme": "Spacegray.sublime-theme" | |
}, |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)