HTTP(S) benchmark tools, testing/debugging, & restAPI (RESTful)

HTTP(S) benchmark tools, testing/debugging, & restAPI (RESTful)https://github.com/denji/awesome-http-benchmark54 forks.802 stars.0 open issues.Recent commits: finshir, GitHub lor-axe, GitHub goloris, GitHub Golang HTTP Micro Benchmarker, GitHub ab like tool written in Rust, GitHub

FCM (Firebase Cloud Messaging) Push Notification with Asp.Net

public class Notification { private string serverKey = “kkkkk”; private string senderId = “iiddddd”; private string webAddr = “https://fcm.googleapis.com/fcm/send”; public string SendNotification(string DeviceToken, string title ,string msg ) { var result = “-1”; var httpWebRequest = (HttpWebRequest)WebRequest.Create(webAddr); httpWebRequest.ContentType = “application/json”; httpWebRequest.Headers.Add(string.Format(“Authorization: key={0}”, serverKey)); httpWebRequest.Headers.Add(string.Format(“Sender: id={0}”, senderId)); httpWebRequest.Method = “POST”; var payload = new { to = DeviceToken, priority […]

Modern Frontend Developer in 2018

https://medium.com/tech-tajawal/modern-frontend-developer-in-2018-4c2072fa2b9c Before we begin with this post, just to give you an idea about me and about this roadmap; I have been doing the Fullstack Development for the past 5 years and currently working as a lead engineer at tajawal where I have to wear many different hats. It is not only my hobby but also one of my job responsibilities to […]

.NET Core

Today you can build .NET Core based app, shove it in a container and run natively in Docker containers deployed to Linux VMs. You can take the same code shove it in a Windows container and run it on Windows Server. All the while running same or almost same code. And oh you can run it on embedded […]

How to prevent SQL injection in PHP?

Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters. This way it is impossible for an attacker to inject malicious SQL. You basically have two options to achieve this: Using PDO (for any supported database driver): $stmt = $pdo->prepare(‘SELECT * FROM employees WHERE name = :name’); […]