Skip to content

Instantly share code, notes, and snippets.

View veysiertekin's full-sized avatar

Veysi Ertekin veysiertekin

View GitHub Profile
@veysiertekin
veysiertekin / .zshrc
Last active January 17, 2024 01:10
Mac OS X macos
eval "$(jenv init -)"
export ALICLOUD_ACCESS_KEY="<api_key>" && export ALICLOUD_SECRET_KEY="<secret_key>"
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -F /usr/local/bin/aliyun aliyun
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.gem/ruby/2.3.0/bin:$PATH"
# added by travis gem
[ -f /Users/veysi.ertekin/.travis/travis.sh ] && source /Users/veysi.ertekin/.travis/travis.sh
@veysiertekin
veysiertekin / Dockerfile
Created February 7, 2023 20:25
cdk cli dockerfile
ARG JDK_IMAGE="amazoncorretto:17.0.6"
ARG AWS_CDK_VERSION=2.63.2
ARG SBT_VERSION=1.8.2
ARG NODE_VERSION=16
FROM $JDK_IMAGE
ARG AWS_CDK_VERSION
ARG SBT_VERSION
ARG NODE_VERSION
name: 'Commit Message Checker'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
check-commit-message:

File Permissions

  • $HOME/.ssh folder should have permission 700.
  • config and private/secret key files id_rsa_XXX should have 600.
  • known_hosts and public/shared key files id_rsa_XXX.public should have 644. And it's fine to have serveral pairs of private/secret and public/shared key files.
@veysiertekin
veysiertekin / .wslconfig
Created November 25, 2022 10:58
WSL2 WSL Windows Subsystem Linux
[wsl2]
memory=5GB
swap=30GB
ARG GRAALVM_VERSION="ol8-java17-22.2.0"
FROM ghcr.io/graalvm/graalvm-ce:$GRAALVM_VERSION
ARG TARGETARCH
ARG UPX_VERSION="3.96"
ARG UPX_FILE="upx-$UPX_VERSION-${TARGETARCH}_linux"
ARG UPX_PKG="https://github.com/upx/upx/releases/download/v$UPX_VERSION/${UPX_FILE}.tar.xz"
RUN microdnf --enablerepo ol8_codeready_builder install xz \
&& microdnf clean all \

Access Local Machine

To access local machine inside a container just use host.docker.internal as host name! (Mac only)

// Add this script into `Tests` section in the request
pm.collectionVariables.set("my_great_variable", pm.response.json().inner_field_name);
// Use in the other requests as {{my_great_variable}}
@veysiertekin
veysiertekin / 01-optimization.md
Last active June 30, 2022 08:35
Presto PrestoSQL

How to tune Presto?

Memory Optimization

JVM Params

-Xmx  -> (System Memory) * 7/9
# add to ~/.sbt/<sbt_version>/plugins/plugins.sbt (create if not exist)
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")
# show dependencies
sbt dependencyTree