Skip to content

Instantly share code, notes, and snippets.

View FarukKaradeniz's full-sized avatar
🚀

Ömer Faruk Karadeniz FarukKaradeniz

🚀
View GitHub Profile
@FarukKaradeniz
FarukKaradeniz / BookControllerTest.java
Last active July 30, 2025 14:49
Testcontainers test code
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@Testcontainers
class BookControllerTest {
@LocalServerPort
private int port;
@Autowired
private TestRestTemplate restTemplate;
C:\Users\faruk\.jdks\liberica-17.0.4\bin\java.exe -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.3\lib\idea_rt.jar=60518:C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.3\bin" -Dfile.encoding=UTF-8 -classpath C:\Users\faruk\Desktop\Projects\workspace-java-experiments\spring-batch-paging\target\classes;C:\Users\faruk\.m2\repository\org\springframework\boot\spring-boot-starter-batch\2.6.3\spring-boot-starter-batch-2.6.3.jar;C:\Users\faruk\.m2\repository\org\springframework\boot\spring-boot-starter\2.6.3\spring-boot-starter-2.6.3.jar;C:\Users\faruk\.m2\repository\org\springframework\boot\spring-boot\2.6.3\spring-boot-2.6.3.jar;C:\Users\faruk\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.6.3\spring-boot-autoconfigure-2.6.3.jar;C:\Users\faruk\.m2\repository\org\springframework\boot\spring-bo
@FarukKaradeniz
FarukKaradeniz / Redirector.json
Created January 17, 2018 20:31
Redirector isimli chrome uzantısı için imgur, i.redd.it, vikipedi sitelerine girilmesini sağlayan ayarları içeren dosya
{
"createdBy": "Redirector v3.1.0",
"createdAt": "2018-01-17T20:26:31.487Z",
"redirects": [
{
"description": "i.redd.it",
"exampleUrl": "https://i.redd.it/jklww1vefma01.jpg",
"exampleResult": "https://gir.im/i.redd.it/jklww1vefma01.jpg",
"error": null,
"includePattern": "https://i.redd.it/*",
@FarukKaradeniz
FarukKaradeniz / selectionSortPerformance.c
Created November 25, 2016 21:03
This program calculates the performance of the Selection Sort algorithm.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/**
*This piece of code calculates the performance of the Selection Sort.
*/
void selectionSort(int *array,int size){
int i, j, min, temp;
for (i=0; i<size-1; i++){
min = i;