Skip to content

Instantly share code, notes, and snippets.

View huseyin's full-sized avatar

Hüseyin Tekinaslan huseyin

View GitHub Profile

LDAP

  • Paketleri kur

      apt-get -y install --no-install-recommends \
      	slapd \
      	ldap-utils \
      	ca-certificates
    
issuer: http://10.0.3.81:5556/dex
storage:
type: sqlite3
config:
file: dex.db
web:
http: 10.0.3.81:5556
@huseyin
huseyin / setup.sh
Last active July 10, 2020 19:20
Vagrant completion for Zsh
#!/bin/bash
set -e
# Get bash completion script
sudo -- sh -c 'wget -qO- https://gist.githubusercontent.com/huseyin/d2479f069d304ec482a1db96652222f2/raw/3d1a7d8032fd1ddd813a2509e6d9b46ee1f9c870/vagrant >/etc/bash_completion.d/vagrant'
# Setup Zsh environment
mkdir -p ~/.config/zsh/completion
cat <<-EOF >>~/.zshrc

Keybase proof

I hereby claim:

  • I am huseyin on github.
  • I am huseyin (https://keybase.io/huseyin) on keybase.
  • I have a public key whose fingerprint is 1839 F2CF 1CE2 7ED2 7F82 3E4E E9FF 5797 52FD 48FB

To claim this, I am signing this object:

#!/bin/bash
set -euo pipefail
if command -v nc >/dev/null; then
echo >&2 "Could not find a working netcat in PATH"
echo >&2 "Please install your operating system's 'netcat' or 'nc' package"
fi
echo "$@" | nc -U ${INSPEQTOR_SOCK:-/var/run/inspeqtor.sock}
@huseyin
huseyin / absurd.rb
Last active September 24, 2017 13:50
Ruby Reek/Rubocop için absurd OOP örneği
# Refinements is a ...
module Refinements
refine Hash do
def methodize!
each_pair do |key, value|
self.class.send :define_method, key.to_s, (proc { value })
end
end
end
end
@huseyin
huseyin / f
Created September 27, 2017 20:37
g
@huseyin
huseyin / h
Created September 27, 2017 20:38
l
@huseyin
huseyin / k
Created September 27, 2017 20:53
v
@huseyin
huseyin / p
Created September 27, 2017 20:55
t