Skip to content

Instantly share code, notes, and snippets.

View ajitatif's full-sized avatar
💭
☀️

Gökalp Gürbüzer ajitatif

💭
☀️
View GitHub Profile
@ajitatif
ajitatif / deploy.yml
Created April 15, 2019 08:49
A Simple Kubernetes Template
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: <SERVICE_NAME>-<IMAGE_VERSION>
namespace: <NAMESPACE>
labels:
app: "<SERVICE_NAME>"
version: "<IMAGE_VERSION>"
spec:
replicas: 1
@ajitatif
ajitatif / quarkus-troublekilling.md
Created October 14, 2020 12:53
Strangest errors encountered while using Quarkus and (hopefully) solutions to them

Native Images

Image Build Fails

No space left on device

Caused by: java.nio.file.FileSystemException: /tmp/SVM-7967422287467763050: No space left on device
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
 at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389)
@ajitatif
ajitatif / git-check-dirs.sh
Created January 18, 2021 17:05
A bash script to check if there are any git changes in the first level children of current directory. Only works on the same branch of the local copy.
#! /bin/bash
for game in $(ls -1); do
if [[ -d $game ]]; then
cd $game
git fetch
HEADHASH=$(git rev-parse HEAD)
REMOTEHASH=$(git rev-parse $(git branch --show-current)@{upstream})
if [ "$HEADHASH" != "$REMOTEHASH" ]; then
echo "Updating $game"
git pull
@ajitatif
ajitatif / git-cheatsheet.md
Created November 1, 2023 15:49
Some git commands that save time
  • Get diff from a release
git diff $(gh release view <previous_release_version> --jq ".targetCommitish" --json targetCommitish) $(gh release view <release_version> --jq ".targetCommitish" --json targetCommitish)