Skip to content

Instantly share code, notes, and snippets.

View meabed's full-sized avatar
👨‍💻
Coding

Mohamed Meabed meabed

👨‍💻
Coding
View GitHub Profile
@dotrungquan
dotrungquan / whois.php
Created July 17, 2022 08:05 — forked from kshitiz621/whois.php
PHP code to get WHOIS information of a domain
<?php
/*************************************************************************
php easy :: whois lookup script
==========================================================================
Author: php easy code, www.phpeasycode.com
Web Site: http://www.phpeasycode.com
Contact: webmaster@phpeasycode.com
*************************************************************************/
$domain = $_GET['domain'];
@cskeppstedt
cskeppstedt / README.md
Created March 13, 2022 22:05
Modify proguard rules in a managed expo project

Modify proguard rules in a managed expo project

If you ever need to modify the proguard rules for the Android-part of your Expo managed workflow, you can achieve this by using a config plugin.

  1. Make a folder for config-plugins called ./plugins in the project root folder.
  2. Place the withProguardRules.js and my-proguard-rules.pro in the folder
  3. Add the config plugin to the plugins array of your app.config.js (or app.json if you're using that instead).

NOTE: if you rename your .pro file, don't forget to change the two occurrences of my-proguard-rules in withProguardRules.js as well.

Ubuntu 20.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 20.04 for deep learning.


Install Ubuntu 20.04:

@FreddieOliveira
FreddieOliveira / docker.md
Last active May 4, 2024 12:04
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@daehahn
daehahn / wsl2-network.ps1
Last active April 29, 2024 08:27
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}
@abbaspour
abbaspour / nginx.conf
Last active February 4, 2024 19:20
Guide how to enable JWT validation on open source nginx server using ngx-http-auth-jwt-module
daemon off;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
@grofit
grofit / traefik-compose.yml
Created May 23, 2020 19:32
Setting up Traefik 2 dashboard with basic auth, this is the same as my basic traefik 2 setup but with user auth from a file, you can see the original one here https://gist.github.com/grofit/e9a94ca02ba31ed1db9f88104f81c502
version: "3.7"
services:
traefik:
image: "traefik:v2.2"
container_name: "traefik"
ports:
- "80:80"
- "443:443"
- "8080:8080"

Ubuntu 22.04 for Deep Learning

In the name of God

This gist contains steps to setup Ubuntu 22.04 for deep learning.


Install Ubuntu 22.04

@nik-hil
nik-hil / fastai_on_gcp_using_terraform.tf
Created March 4, 2020 16:36
create fastai server on gcp using terraform.
provider "google" {
credentials = file("CREDENTIALS_FILE.json")
project = "famous-muse-247206"
region = "us-west1"
}
# TF-UPGRADE-TODO: Block type was not recognized, so this block and its contents were not automatically upgraded.
resource "random_id" "instance_id" {
byte_length = 8
}
@wshihadeh
wshihadeh / docker-compose.yml
Last active March 23, 2021 16:56
Monitoring Stack
version: '3.7'
networks:
traefik:
external: true
volumes:
db_data:
po_data:
gr_data: