Skip to content

Instantly share code, notes, and snippets.

View SerhatTeker's full-sized avatar
💻
01110011 01110100

Serhat Teker SerhatTeker

💻
01110011 01110100
View GitHub Profile
@SerhatTeker
SerhatTeker / netlify.toml
Created January 6, 2019 12:49
hugo netfliy config file
[build]
publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
HUGO_VERSION = "0.52"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
[context.split1]
@SerhatTeker
SerhatTeker / virtualenv_ubuntu1804.md
Last active January 6, 2019 13:21
How to create and use a virtualenv on Ubuntu 16.04-18.04

How to install virtualenv on Ubuntu 18.04

later from 16.04

install pip

install pip3 if you don't have already

@SerhatTeker
SerhatTeker / active
Last active January 22, 2019 18:18
virtualenv active appendix for env vars
export $(grep -v '^#' ./.envs/.env.dev | xargs)
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
@SerhatTeker
SerhatTeker / Makefile
Last active January 22, 2019 12:22
Makefile template
SHELL := /bin/bash
PYTHON_BIN := $(VIRTUAL_ENV)/bin
.PHONY: help test lint redis up start stop django
# COLORS
BLACK := $(shell tput -Txterm setaf 0)
RED := $(shell tput -Txterm setaf 1)
GREEN := $(shell tput -Txterm setaf 2)
@SerhatTeker
SerhatTeker / reset-tab-seperator
Created January 22, 2019 11:24
Solve Makefile error: “missing separator (did you mean TAB?)”
# vim
:%s/^[ ]\+/\t/g
@SerhatTeker
SerhatTeker / logging.ini
Last active July 14, 2019 14:48
Python logging configuration template
[loggers]
keys=root
[logger_root]
level=DEBUG
handlers=screen,file
[formatters]
keys=simple,verbose
@SerhatTeker
SerhatTeker / decKey
Last active February 14, 2019 19:28
For BackUp and Restore your PublicKey & PrivateKey & RevokeCertificate
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# DECRYPT PubKey + PriKey
#-----------------------------------------------------------------------------------------------------
@SerhatTeker
SerhatTeker / testSetupDjango.py
Created February 25, 2019 19:09
Django AppRegistry Manual - Django Manual Test Setup
# region Django Conf Test Setup
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.dev')
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
# endregion
# code to test
@SerhatTeker
SerhatTeker / cloudSettings
Last active May 20, 2022 21:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-05-20T21:49:53.702Z","extensionVersion":"v3.4.3"}
@SerhatTeker
SerhatTeker / keybase.md
Created July 9, 2019 14:24
Keybase Proof

Keybase proof

I hereby claim:

  • I am serhatteker on github.
  • I am serhatteker (https://keybase.io/serhatteker) on keybase.
  • I have a public key ASA1ZjQubyOALe2cI5qA95GlsboR3noK_-lX8nmdgnUn-wo

To claim this, I am signing this object: