Skip to content

Instantly share code, notes, and snippets.

@Atabek-cyber
Atabek-cyber / auto-capture.scpt
Created October 31, 2021 18:38 — forked from jonobr1/auto-capture.scpt
A small AppleScript to take a screenshot every 30 seconds for 8 hours. Saves to an Image Sequence in a desktop folder. Great for recording your workday.
set dFolder to "~/Desktop/screencapture/"
do shell script ("mkdir -p " & dFolder)
set i to 0
repeat 960 times
do shell script ("screencapture " & dFolder & "frame-" & i & ".png")
delay 30 -- Wait for 30 seconds.
set i to i + 1
end repeat
@Atabek-cyber
Atabek-cyber / k8s-bookmarks-CKA-CKAD.html
Created November 24, 2021 20:28 — forked from Piotr1215/k8s-bookmarks-CKA-CKAD.html
K8s bookmarks for CKA, CKAD and CKS exams
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1626629115" LAST_MODIFIED="1626629462" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
@Atabek-cyber
Atabek-cyber / Dockerfile
Created November 4, 2022 17:29 — forked from endofcake/Dockerfile
Copy *.csproj files during a docker build, preserving the directory structure (kudos to @aidansteele)
COPY src/*/*.csproj ./
RUN for file in $(ls *.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done
# Source: https://gist.github.com/b45b27d5101b59c7e5ac54d4db134803
######################
# Create The Cluster #
######################
az login
az provider register -n Microsoft.Network
# Source: https://gist.github.com/0ce1ccdd862f401bbacf56d3ca18b808
######################
# Create The Cluster #
######################
# Make sure that you're using eksctl v0.1.5+.
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl.
# Source: https://gist.github.com/3b9adb2e5253760b330077b4078c799a
####################
# Create A Cluster #
####################
# Open Docker Preferences, select the Kubernetes tab, and select the "Enable Kubernetes" checkbox
# Open Docker Preferences, select the Advanced tab, set CPUs to 2, and Memory to 3.0
######################
# Create The Cluster #
######################
# Tested with minikube v1.6.1
minikube start \
--vm-driver virtualbox \
--cpus 2 \
--memory 3072
# Source: https://gist.github.com/afc5d5306bfc74ee1c7973f76d630c7f
######################
# Create The Cluster #
######################
gcloud auth login
REGION=us-east1
cd k8s-specs
git pull
GD5_ADDR=go-demo-5.$LB_IP.nip.io
kubectl create namespace go-demo-5
helm install go-demo-5 \
https://github.com/vfarcic/go-demo-5/releases/download/0.0.1/go-demo-5-0.0.1.tgz \
# Source: https://gist.github.com/231f0ad7f4c55e8992b961a046c8c80f
######################
# Create The Cluster #
######################
# Make sure that you're using eksctl v0.1.5+.
# Follow the instructions from https://github.com/weaveworks/eksctl to intall eksctl.