This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*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++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Deploy to AWS ECR | |
docker pull nginx | |
docker images | |
aws ecr create-repository --repository-name nginx | |
output for this | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const string input = "interesting"; | |
bool comparison = input.ToUpper() == "INTERESTING"; | |
Console.WriteLine("These things are equal: " + comparison); | |
Console.ReadLine(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl s_server -accept 443 -key example.key -cert example.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.gis.geos import Point | |
point = Point(1, 1, srid=4326) | |
point.transform(3857) |
OlderNewer