Skip to content

Instantly share code, notes, and snippets.

View toltarisa's full-sized avatar
🎯
Focusing

İsa toltarisa

🎯
Focusing
View GitHub Profile

kubectl apply commands in order

kubectl apply -f mongo-secret.yaml
kubectl apply -f mongo.yaml
kubectl apply -f mongo-configmap.yaml 
kubectl apply -f mongo-express.yaml

kubectl get commands

kubectl get pod

@toltarisa
toltarisa / addressbook.sh
Created December 17, 2020 16:07
Address Book With Shell Scripting
#!/bin/sh
print_list() {
reset
echo "(1) - Search Address Book"
echo "(2) - Add an Address Book entry"
echo "(3) - Remove an Address Book entry"
echo "(4) - For quit the app, press 4, goodbye..."
@toltarisa
toltarisa / myscript.sh
Created October 2, 2020 21:04 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@toltarisa
toltarisa / intellij-spring-mvc.md
Last active September 30, 2020 13:03
Spring MVC Intellij configuration
  • 1- ilk olarak buradan https://kozyatagi.mirror.guzel.net.tr/apache/tomcat/tomcat-9/v9.0.38/bin/apache-tomcat-9.0.38.exe Apache Tomcat 9 indiriyoruz , kurulu varsa atlayabilirsin bu adımı.
  • 2- Ardından kursta anlatıldığı gibi klasör yapısını oluştur.İlgili yerlere Jar ve config dosyalarını ekle.
  • 3- Kursu aynen takip etmiyorsan WEB-INF/spring-mvc-demo-servlet.xml altında component-scan taginde base-package'ı kendi oluşturduğun package adı ile değiştir. XML Config
  • 4- Arından File->Settings->Plugins kısmından Tomcat Smart pluginini install et ve IDE'yi yeniden başlat.
  • 5- Ardından sağ üstte build(Yeşil Çekiç) butonunun hemen sağında Add Configuration var oraya giriyosun abi.
  • 6- Sol menude templates olmalı, oradan kurduğumuz smart tomcat'i seç. oradaki inputları dolduruyor otomatik. tomcat config
@toltarisa
toltarisa / README.md
Created August 30, 2020 16:24 — forked from clhenrick/README.md
PostgreSQL & PostGIS cheatsheet (a work in progress)
@toltarisa
toltarisa / shortcuts.md
Last active July 4, 2020 08:27
Basic vim shortcuts

Note: Before starting ,For executing any command, firstly ':' we must open the standard prompt with colon. After writing command we should executing command by pressing Enter

Quit Vim

  • q: quit
  • wq : save current file and quit.
  • q! : quit without saving the file.

Saving changes

  • w : save changes
Module VBModule
Sub Main()
'burada kullanıcıdan iki tane sayı alıyoruz'
dim sayi1 as Integer = Console.Readline()
dim sayi2 as Integer = Console.Readline()
'burada aldığımız iki sayı arasında iki tane rastgele değer üretiyoruz'
dim rastgeleSayi1 as Integer = CInt(Math.Ceiling(Rnd() * sayi1)) + sayi2
dim rastgeleSayi2 as Integer = CInt(Math.Ceiling(Rnd() * sayi1)) + sayi2