Skip to content

Instantly share code, notes, and snippets.

View mastern2k3's full-sized avatar
🙈
Coding blindfolded

Nitzan Zada mastern2k3

🙈
Coding blindfolded
View GitHub Profile
@thekeenant
thekeenant / GdxScheduledExecutorService.java
Last active May 23, 2019 23:02
An implementation of ScheduledExecutorService for LibGDX which executes tasks on the main game thread.
import com.badlogic.gdx.Gdx;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@roylee0704
roylee0704 / dockergrep.sh
Created December 9, 2016 08:24
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container
@subfuzion
subfuzion / Makefile.md
Last active June 11, 2024 22:07
Makefile for Go projects

Go has excellent build tools that mitigate the need for using make. For example, go install won't update the target unless it's older than the source files.

However, a Makefile can be convenient for wrapping Go commands with specific build targets that simplify usage on the command line. Since most of the targets are "phony", it's up to you to weigh the pros and cons of having a dependency on make versus using a shell script. For the simplicity of being able to specify targets that can be chained and can take advantage of make's chained targets,