Skip to content

Instantly share code, notes, and snippets.

@ecylmz
ecylmz / paket-gem-yükle.sh
Created October 6, 2012 11:23
Lab/19 Paket Kurulumları
#!/bin/bash
for gem in `cat gemler.txt`; do
gemler="$gemler $gem"
done
gem install $gemler
for paket in `cat paketler.txt`; do
paketler="$paketlerler $paket"
@ecylmz
ecylmz / Deb paketleri
Created October 4, 2012 15:21
19/x paketleri
aptitude
at
bash-completion
bmon
bzip2
ccze
console-setup
console-terminus
curl
dnsutils
@ecylmz
ecylmz / teamocil_autocomplete.sh
Created August 2, 2012 14:40
autocomplete for teamocil gem
{ [ -d ~/.teamocil ] &&
_teamocil()
{
local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
local files=$(for f in ~/.teamocil/*; do f=$(basename $f); echo ${f%.*}; done)
COMPREPLY=($(compgen -W "${files}" $cur))
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<!--
This file is part of avahi.
avahi is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
@ecylmz
ecylmz / ssh.service
Created July 31, 2012 10:10
avahi-publish ssh
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">SSH de %h</name>
<service protocol="any">
<type>_ssh._tcp</type>
<port>22</port>
</service>
<service protocol="any">
@ecylmz
ecylmz / iptables-limit.sh
Created July 27, 2012 10:40
Limit Connections Per Second
#!/bin/bash
# Source: http://www.cyberciti.biz/faq/iptables-connection-limits-howto/
IPT=/sbin/iptables
# Max connection in seconds
SECONDS=100
# Max connections per IP
BLOCKCOUNT=10
# ....
@ecylmz
ecylmz / README.md
Created July 26, 2012 12:14 — forked from roktas/README.md
  • Yapılandırmalar eski yerinde /etc/unicorn
  • unicorn-multi.sh (şimdilik) /etc/unicorn altında (executable olması gerekmiyor
  • unicorn-multi betiği /etc/init.d altında
  • Bu sistemin çalışması için mevcut unicorn betiğini kaldırmak gerekmiyor ama kaldırılırsa daha güvenli olabilir.
@ecylmz
ecylmz / unicorn
Created July 24, 2012 14:30
init script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/ecylmz
# based on http://gist.github.com/504875 by http://github.com/jaygooby
#
## A sample /etc/unicorn/my_app.conf
##
@ecylmz
ecylmz / unicorn
Created July 24, 2012 14:13
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@ecylmz
ecylmz / unicorn
Created July 24, 2012 14:13
/etc/init.d script for unicorn
#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##