Skip to content

Instantly share code, notes, and snippets.

View fcayci's full-sized avatar

Furkan Cayci fcayci

  • Newark, DE
View GitHub Profile
@fcayci
fcayci / openvpn-tun-all.conf
Created June 5, 2014 16:43
OpenVPN Server config file
# This will give access to the 1.1.1.0/24
# UDP + TUN + No duplicate certs!
# openvpn-tun-all.conf
# Server IP and port
local 2.2.2.2
port 1194
# Openvpn address pool
server 1.1.2.0 255.255.255.0
@fcayci
fcayci / pf.conf
Created June 5, 2014 16:52
Sample FreeBSD pf firewall configuration
# /etc/pf.conf
##########################################
# MACROS
##########################################
WANIF = "vlan1337"
LANIF = "en0"
VPNIF = "{tun0, tun1}"
# ~/.bashrc
HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
PS1='\[\033[01;31m\]\u\[\033[01;31m\]@\[\033[01;31m\]\h:\[\033[01;34m\]\w>\[\033[00m\] '; export PS1
CLICOLOR="YES"; export CLICOLOR
LSCOLORS="ExGxFxdxCxDxDxhbadExEx"; export LSCOLORS
alias vi='vim'
alias showpflog="tcpdump -n -e -ttt -r /var/log/pflog"
@fcayci
fcayci / backup.sh
Last active August 29, 2015 14:17
tar back-up the directory and save it in NFS share
#!/bin/bash
# Furkan Cayci
# tar back-up the directory and save it in NFS share
VERSION="v0.2"
SERVERADDR=10.0.0.1
BACKUPDIR=/tank/backup
MOUNT="/export"
NOW="$(date +'%F-%H-%M')"
@fcayci
fcayci / conkyrc
Created March 22, 2015 05:05
Conky config
background yes
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
gap_x 20
@fcayci
fcayci / dmenu_launch
Created May 8, 2015 14:04
dmenu launcher
#!/bin/bash
exe=`dmenu_run -b -nb '#000000' -nf '#d8d8d8' -sb '#d8d8d8' -sf '#000000'` && eval "exec $exe"
@fcayci
fcayci / afp.conf
Last active August 29, 2015 14:25
;
; Netatalk 3.x configuration file
;
[Global]
hostname = crazy_hostname.domain
afp interfaces = em0 em1
afp listen = 10.0.0.1 1.2.3.4
cnid listen = 127.0.0.1
vol preset = default_for_all
bootsect /nt60 ALL /mbr
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential
cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/XX.bz2
make clean && make mrproper
cp /boot/config-`uname -r` ./.config
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
@fcayci
fcayci / osx_install.sh
Created April 6, 2017 21:46 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"