Skip to content

Instantly share code, notes, and snippets.

View AhmedAbouelkher's full-sized avatar
🎯
Focusing

Ahmed Mahmoud AhmedAbouelkher

🎯
Focusing
View GitHub Profile
@AhmedAbouelkher
AhmedAbouelkher / main.dart
Created March 3, 2024 09:20
A simple function utilizing `in_app_update` package to check for any available updates on Android
import 'package:in_app_update/in_app_update.dart';
/// Check for updates and start the update process if available
///
/// Returns the result of the update process or null if no update is available
///
/// For priority 0 - 3, the update process is started in the background and the
/// user is not interrupted. The update will be installed the next time the app
/// is opened.
///
@AhmedAbouelkher
AhmedAbouelkher / README.md
Last active December 23, 2023 17:20
Golang: Demonstrate creating a CA Certificate, Creating a signed Client Certificate and Private Key, and Signing a Certificate Signing Request CSR using a given CA
@AhmedAbouelkher
AhmedAbouelkher / 2019-https-localhost.md
Created December 14, 2023 12:56 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@AhmedAbouelkher
AhmedAbouelkher / run.sh
Last active April 4, 2024 23:33
Create an `env.dart` files passed on the Environment Values passed and prefixed with `flutter_`
#!/bin/sh
# list all system env variables starting with flutter_ and put them in an array variable
values=$(env | grep ^flutter_)
# check if values is empty
if [ -z "$values" ]; then
echo "No environment variables found starting with flutter_"
exit 0
fi
_0x173302 =
(!(function (p, s) {
var e, x;
"object" == typeof exports && "undefined" != typeof module
? (module.exports = s())
: "function" == typeof define && define.amd
? define(s)
: ((p = p || self),
(e = p.Cookies),
((x = p.Cookies = s()).noConflict = function () {
@AhmedAbouelkher
AhmedAbouelkher / README.md
Last active October 29, 2023 08:38
Golang Script to extract file direct download link for Google Drive files with any size.

Golang Script to extract file direct download link for Google Drive files with any size without encountering the dump Google Drive can't scan this file for viruses webpage.

@AhmedAbouelkher
AhmedAbouelkher / main.go
Last active February 6, 2023 13:45
A demo code to test [Handling CORS in Nginx as a reverse proxy]
package main
import (
"net/http"
"github.com/rs/cors"
)
func main() {
mux := http.NewServeMux()

A Wave clipper for nav bars or any other usecase.

class _WaveClipper extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    const depth = 0.4; // depth of the wave
    const _s = .2; // slope of the wave
    const _loc = 0.8 / 2; // location of the wave
    final path = Path()
D/SurfaceView(31194): UPDATE Surface(name=SurfaceView - com.ahmed.zoom_sdk_issue/com.ahmed.zoom_sdk_issue.MainActivity)/@0xa84b9d9, mIsProjectionMode = false
V/MiuiFrameworkFactory(31194): get AllImpl object = android.common.MiuiFrameworkFactoryImpl@1f96f9e
W/MirrorManager(31194): this model don't Support
D/SurfaceView(31194): UPDATE Surface(name=SurfaceView - com.ahmed.zoom_sdk_issue/com.ahmed.zoom_sdk_issue.MainActivity)/@0xa7e1a95, mIsProjectionMode = false
I/AudioManager(31194): In isBluetoothScoAvailableOffCall(), calling appilication: com.ahmed.zoom_sdk_issue, return value: true
I/AudioManager(31194): In isBluetoothScoOn(), calling application: com.ahmed.zoom_sdk_issue
D/BluetoothHeadset(31194): Binding service...
I/ZoomSDK (31194): setDomain, set Zoom domain as zoom.us
I/flutter (31194): listen on event channel
I/MeetingServiceImpl(31194): joinMeetingWithParams: sUri=zoomus://zoom.us/join?confno=76510999443&uname=ahmed&pwd=730JCx&show_water_mark=1&no_driving_mode=1&no_invite=1&no_dial_in_via_phone=1&no
package main
import (
"context"
"log"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/s3"
)