Skip to content

Instantly share code, notes, and snippets.

View finger-berlin's full-sized avatar

Alexander Finger finger-berlin

View GitHub Profile
@finger-berlin
finger-berlin / smb.conf
Created February 2, 2012 10:00
general samba config (just global) ... Ubuntu... works fine for MacOS/OSX and Win Clients...
[global]
workgroup = WORKGROUP
server string = %h server (Samba)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 9
@finger-berlin
finger-berlin / nginx_test.conf
Created February 8, 2012 14:49
Ubuntu Setup for nginx + php5 fastcgi
server {
listen [::]:80;
server_name "" localhost 127.0.0.1;
access_log /var/log/nginx/test.access.log;
root /home/crowdpark/test/htdocs;
location / {
index index.php index.html;
}
@finger-berlin
finger-berlin / setup_macosx.sh
Created February 18, 2012 20:28 — forked from FrancisVarga/setup_macosx.sh
setup a virgin mac osx
#!/bin/bash
function test_setup () {
PASS=1
for b in \
/usr/bin/ruby \
/usr/bin/make \
/usr/bin/gcc
do
@finger-berlin
finger-berlin / my.cnf
Created February 20, 2012 13:55
very very simple mysql conf... good to start.
[mysqld]
join_buffer_size = 4M
character-set-server = utf8
table_cache = 512
table_definition_cache = 2048
table_open_cache = 2048
innodb_file_per_table
innodb_additional_mem_pool_size = 2M
skip-ssl
innodb = ON
@finger-berlin
finger-berlin / beanstald.sh
Created February 29, 2012 16:35
OSX script for easy start & stop beanstalkd (brew version)
#!/bin/sh
daemon=beanstalkd
executable=/usr/local/bin/$daemon
port=11300
waldir=/usr/local/var/beanstalkd
logfile=/usr/local/var/log/beanstalkd.log
interface="127.0.0.1"
params="-l $interface -p $port -b $waldir"
@finger-berlin
finger-berlin / gist:1977765
Created March 5, 2012 10:22
osx postfix relay email config hints...
$ sudo vim /etc/postfix/main.cf
myhostname = local.yourdomain.tld
mydomain = yourdomain.tld
myorigin = $mydomain
relayhost = [smtp.your-isp.tld]:587
@finger-berlin
finger-berlin / servername.domain.tld
Created March 27, 2012 18:05
working nginx php5-fpm config...
server {
listen 0.0.0.0:80;
server_name servername.domain.tld;
root /home/project/htdocs;
location / {
index index.php index.html;
try_files $uri $uri/ /index.php;
}
@finger-berlin
finger-berlin / gist:2359572
Created April 11, 2012 14:17
Amazon AWS: Update SSL Cert. on existing LB
Which SSL certs are uploaded to Amazon:
$ iam-servercertlistbypath
Which LBs are running:
$ elb-describe-lbs --region eu-west-1
Now update the LB:
@finger-berlin
finger-berlin / smb.conf
Created May 9, 2012 08:52
smb.conf for simple /var/www sharing ... make sure /var/www is owned by www-data...
[global]
unix charset = UTF8
workgroup = XXX
netbios name = XXX
server string = %h server (Samba, Ubuntu)
interfaces = lo eth0
bind interfaces only = Yes
security = SHARE
obey pam restrictions = Yes
guest account = www-data
@finger-berlin
finger-berlin / smb.conf
Created May 9, 2012 08:56
working smb.conf where some shares can be accessed by guest users and some share can only accessed by authenticated users
[global]
unix charset = UTF8
workgroup = XXX
netbios name = XXX
server string = %h server (Samba, Ubuntu)
interfaces = lo, eth2, 192.168.42.17/24
bind interfaces only = Yes
security = USER
Map to guest = Bad User
obey pam restrictions = Yes