Skip to content

Instantly share code, notes, and snippets.

View ozgurozkok's full-sized avatar
🎯
Focusing

ozgur ozgurozkok

🎯
Focusing
View GitHub Profile
@ozgurozkok
ozgurozkok / emacs-melpa-flutter.txt
Created October 31, 2020 16:59
Emacs için Melpa desteği
TLS desteğini test için
M-x eww RET https://wikipedia.org RET.
bu kod parçasını çalıştırmanız gerekiyor.
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
Stable paketleri listelemek için
(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
/**
*
*U+000A ('controlLF') is not available in this font encoding: WinAnsiEncoding.
*Java, Apache PDFBox
* www.ozgurozkok.com
*/
public class FixEncoding extends WinAnsiEncoding {
public String remove(String bufstr) {
StringBuilder b = new StringBuilder();
for (int i = 0; i < bufstr.length(); i++) {
#Deploy to AWS ECR
docker pull nginx
docker images
aws ecr create-repository --repository-name nginx
output for this
{
@ozgurozkok
ozgurozkok / Turkish.cpp
Created October 24, 2021 20:01
The Turkish İ Problem and Why You Should Care
const string input = "interesting";
bool comparison = input.ToUpper() == "INTERESTING";
Console.WriteLine("These things are equal: " + comparison);
Console.ReadLine();
@ozgurozkok
ozgurozkok / Turkish.java
Created October 24, 2021 20:06
The Turkish İ Problem and Why You Should Care
using System;
using System.Globalization;
using System.Threading;
internal class Program
{
private static void Main(string[] args)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR");
const string input = "interesting";
@ozgurozkok
ozgurozkok / openssl1
Created December 31, 2022 11:43
OPENSSL Nedir ve Nasıl Kullanılır ?
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr
@ozgurozkok
ozgurozkok / openssl2
Created December 31, 2022 11:44
openssl
openssl s_server -accept 443 -key example.key -cert example.crt
@ozgurozkok
ozgurozkok / python-youtube-download.py
Created January 6, 2023 20:14
How to Build a Python Program to Download YouTube Videos
# Import the necessary libraries
from pytube import YouTube
import ffmpeg
import urllib
# Set the URL of the YouTube video you want to download
url = 'https://www.youtube.com/watch?v=VIDEO_ID'
# Use the pytube library to access the YouTube video and retrieve its streaming data
yt = YouTube(url)
@ozgurozkok
ozgurozkok / SRIDSQL1
Created January 30, 2023 16:21
SRID example in MYSQL
CREATE TABLE places (
id INT PRIMARY KEY,
name VARCHAR(100),
location POINT,
SRID INT
);
INSERT INTO places (id, name, location, SRID)
VALUES (1, 'Place A', ST_GeomFromText('POINT(1 1)', 4326), 4326);
@ozgurozkok
ozgurozkok / SRIDSAMPLE.PY
Created January 30, 2023 16:23
example of how to use SRID in Python with the GEOS library
from django.contrib.gis.geos import Point
point = Point(1, 1, srid=4326)
point.transform(3857)