Skip to content

Instantly share code, notes, and snippets.

View ibrahim-dogan's full-sized avatar
🤝
open to collaborate

abraham. ibrahim-dogan

🤝
open to collaborate
View GitHub Profile
this is default:
xrandr --output LVDS1 --mode 1366x768 --scale 1x1 --panning 1366x768
this is 20% higher:
xrandr --output LVDS1 --mode 1366x768 --scale 1.2x1.2 --panning 1639x922
@ibrahim-dogan
ibrahim-dogan / Update object in dynamodb
Last active October 8, 2020 08:45
You can update any json object with this code below.
const object = {
"name": "blabla",
"surname": "blabla",
"age": 18,
"foo": "bar",
"date": new Date().toString()
};
var updatedKeys = Object.keys(object);
/**
@ibrahim-dogan
ibrahim-dogan / FacebookWebhookMiddleware.php
Created December 2, 2020 08:17
Facebook webhook request validation middleware
<?php namespace Common\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class FacebookWebhookMiddleware
{
/**
* Verify the facebook callback
@ibrahim-dogan
ibrahim-dogan / bootstrap_quiz.html
Last active December 2, 2020 20:29
Very Simple Quiz made with Bootstrap
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
@ibrahim-dogan
ibrahim-dogan / FindUpdatedIndexes.php
Last active February 26, 2021 07:52
compare two array of values (nested or not) and return only changed indexes as array
<?php
/**
* It flattens multidimensional array to make arrays comparable
* then compares request with DB (usually)
* @param $request
* @param $toCompare
* @return array
* @example request: [["title" => "ABC"], ["title" => "DEF"]]
* toCompare: [["title" => "ABC"], ["title" => "XYZ"]]
<?php
namespace App\Http\Controllers;
use Exception;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Redis;
{
"basics": {
"name": "Ibrahim Dogan",
"email": "[email protected]",
"phone": "+90 507 7207028",
"summary": "I'm Ibrahim Dogan, a versatile software engineer based in Istanbul, Turkey. I have experience working with Trendyol eCommerce and Teknasyon, specializing in backend development, microservices, and various programming languages such as Java, C#, Golang, and PHP. I hold two bachelor's degrees from Istanbul Bilgi University in Computer Engineering and Business Administration. In my free time, I enjoy exploring IoT automation, smart home technologies, and outdoor activities.",
"location": {
"city": "Istanbul",
"countryCode": "TR"
}