Skip to content

Instantly share code, notes, and snippets.

View htekgulds's full-sized avatar

Hasan Tekgül htekgulds

View GitHub Profile
@htekgulds
htekgulds / rancher-ha-kurulumu.md
Created February 23, 2020 09:16
Rancher HA Kurulumu

Gerekenler

Donanım

  • Minimum 4 çekirdek 8GB RAM
  • Herhangi bir Linux sürümü
  • Docker

Yazılım

@htekgulds
htekgulds / file_env.sh
Created January 13, 2020 19:46
file env (docker secret to environment)
# usage: file_env VAR [DEFAULT]
# ie: file_env 'XYZ_DB_PASSWORD' 'example'
# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
# "$XYZ_DB_PASSWORD" from a file, especially for Docker's secrets feature)
file_env() {
local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
echo 'var: ' $var
@htekgulds
htekgulds / ssl-root-ca-and-crt-howto.md
Last active October 6, 2019 16:07
Geliştrime ortamı için Root CA ve SSL dosyaları nasıl oluşturulur

Önce root ca key oluşturulur

openssl genrsa -des3 -out htds-root-ca.key 2048

Bu komut key dosyası için bir şifre isteyecek. Bu şifreyi, bu key ile oluşturacağınız tüm sertifikalarda kullanacaksınız.

İkinci olarak root ca sertifikası oluşturulur

openssl req -x509 -new -nodes -key htds-root-ca.key -sha256 -days 1825 -out htds-root-ca.pem

@htekgulds
htekgulds / gist:86af9b2f49973ae24dc62c74aece025a
Created October 18, 2018 07:44 — forked from wrouesnel/gist:6240468b75c6d72053ed
Updating system SSL and java keystore in a docker build
# Compile and install certificates for the Java trust keystore
# and main keystore. Let's face it, this is everyone's keystore password.
# Note I install java very flatly normally.
COPY trust-certs/ /usr/local/share/ca-certificates/
RUN update-ca-certificates && \
ls -1 /usr/local/share/ca-certificates | while read cert; do \
openssl x509 -outform der -in /usr/local/share/ca-certificates/$cert -out $cert.der; \
/java/bin/keytool -import -alias $cert -keystore /java/jre/lib/security/cacerts -trustcacerts -file $cert.der -storepass changeit -noprompt; \
rm $cert.der; \
done
@htekgulds
htekgulds / linux-ilk-adimlar.md
Last active July 3, 2018 07:15
Linux İlk Adımlar

Sertifika

  • /depo/sertifika/crts/* -> /usr/pki/ca-trust/source/anchors/
  • sudo update-ca-trust
  • Firefox, Chrome -> import sertifika
  • /depo/Home/.config/pip -> ~/.config/
  • .npmrc, .yarnrc

Uygulamalar

  • zsh, oh-my-zsh
  • Chrome
[
{
"name": "Reticulated Giraffe",
"species": "Giraffa camelopardalis reticulata",
"description": "The reticulated giraffe (Giraffa camelopardalis reticulata), also known as the Somali giraffe, is a subspecies of giraffe native to Somalia, southern Ethiopia, and northern Kenya. Reticulated giraffes can interbreed with other giraffe subspecies in captivity or if they come into contact with populations of other subspecies in the wild. \nThe reticulated giraffe is among the most well-known of the nine giraffe subspecies. Together with the Rothschild giraffe, it is by far the giraffe most commonly seen in zoos. Its coat consists of large, polygonal, liver-colored spots outlined by a network of bright-white lines. The blocks may sometimes appear deep red and may also cover the legs. The extraordinary height of giraffes is attributed to a ritual known as \"necking\", where two males fight for reproduction rights by slamming their necks into one another. The giraffes with the tallest and
@htekgulds
htekgulds / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">