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 / makefile
Created October 24, 2018 19:50
ghdl makefile
# Make sure ghdl and gtkwave is in your PATH
SRCS = design.vhd
TB = design_tb.vhd
CC = ghdl
SIM = gtkwave
ARCHNAME=$(shell grep architecture $(TB) | cut -f 4 -d ' ')
SIMNAME = wave.vcd
@fcayci
fcayci / dnsmasq OS X.md
Created November 30, 2017 20:45 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.

Requirements

Install

@fcayci
fcayci / dnsmasq.md
Created November 30, 2017 20:40 — forked from tmslnz/dnsmasq.md
Setting up dnsmasq on OS X

Install dnsmasq

Via brew or other method

Set up DNS resolver order

In order to work on every connection and on any TLD, dnsmasq needs to be the first DNS resolver receving the query.

And since dnsmasq is a local process, all DNS queries need to go to 127.0.0.1

On macOS, /etc/resolv.conf is automaticaly created, depending on a variety of things (network settings, etc), so it cannot be edited.

@fcayci
fcayci / gdbinit
Created August 31, 2017 08:21
simple gdbinit file for reversing
set disassembly-flavor intel
define hook-stop
x/16wx $esp
x/i $pc
x/8x $ebp
end
@fcayci
fcayci / wget-domain
Created June 3, 2017 22:54
get links in a domain
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains domain.name \
--no-parent \
http://domain.name
#define int32_t int
#define int16_t short
#define int8_t char
#define uint32_t unsigned int
#define uint16_t unsigned short
#define uint8_t unsigned char
#define PERIPH_BASE ((uint32_t) 0x40000000)
#define GPIOD_BASE (PERIPH_BASE + 0x11400) // GPIOD base address is 0x40011400
#define RCC_BASE (PERIPH_BASE + 0x21000) // RCC base address is 0x40021000
@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)"
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
bootsect /nt60 ALL /mbr
@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