Skip to content

Instantly share code, notes, and snippets.

View ahmedengu's full-sized avatar

Ahmed Aboumalwa ahmedengu

View GitHub Profile
@ahmedengu
ahmedengu / benchmark_env.js
Created July 18, 2020 14:41
20X performance improvement on Nodejs, just by caching process.env with a single line: process.env = JSON.parse(JSON.stringify(process.env));
// ****************************
//* ********* OUTPUT **********
//* **** 20X Improvement ******
//* ******** Tested on ********
//* ****** Node v10.14.2 ******
// ****************************
// Start testing : Original
// Original, #0: 1299.590ms
// Original, #1: 1268.201ms
// Original, #2: 1261.733ms
@ahmedengu
ahmedengu / next.config.js
Created February 22, 2020 21:27
Generate nextjs sourcemaps for Honeybadger
const HoneybadgerSourceMapPlugin = require('@honeybadger-io/webpack');
module.exports = {
webpack: (config, {
buildId, dev, isServer, defaultLoaders, webpack,
}) => {
if (!dev) {
config.plugins.push(new HoneybadgerSourceMapPlugin({
apiKey: 'apiKey',
assetsUrl: process.env.ASSETS_URL || 'https://example.com/_next/static/*',

Keybase proof

I hereby claim:

  • I am ahmedengu on github.
  • I am ahmedengu (https://keybase.io/ahmedengu) on keybase.
  • I have a public key ASCNLABSs8JB5SXdXnRpMQxhJp2kN1F-ODs4Z0uXdYAqdAo

To claim this, I am signing this object:

@ahmedengu
ahmedengu / colab.js
Last active August 26, 2021 00:03
keep colab running forever by clicking on reconnect button every 60 and cancel the max ram warning ... paste the following code into your browser console
// run every 1 minute
setInterval(function () {
// close max ram window
document.getElementById("cancel") && document.getElementById("cancel").innerText == "IGNORE" && document.getElementById("cancel").click();
// reconnect
document.getElementById("ok") && document.getElementById("ok").innerText == "RECONNECT" && document.getElementById("ok").click();
!document.getElementsByTagName('iron-overlay-backdrop').length && document.getElementById("connect") && document.getElementById("connect").innerText == "RECONNECT" && document.getElementById("connect").click();
}, 60000);
@ahmedengu
ahmedengu / colab_xface_vnc.ipynb
Last active October 8, 2022 16:53
Use google colab as a remote machine with the help of ngrok, vnc server and xface desktop you can change the configurations and desktop environment as you please it's just a start
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmedengu
ahmedengu / quantconnect_lean.ipynb
Last active October 14, 2021 12:54
Installing and running quantconnect lean on google colab ubuntu 18 python version
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmedengu
ahmedengu / readme.md
Last active January 15, 2019 23:57
wilddog + ftp

Prerequisites:

  • Python 2 or 3
  • The following packages:
pip install six python-firebase

How to use:

  • Update the ftp information and delete_after_download
@ahmedengu
ahmedengu / h2o_flow.ipynb
Last active December 18, 2019 18:16
Installing and running H2O flow on google colab using and access it ngrok, Don't forget setting ngrok auth key
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmedengu
ahmedengu / view_h2o_mojo_model.ipynb
Last active March 1, 2021 23:55
Plotting h2o mojo model in python with a sample h2o automl demonstration and model viewing using Graphviz
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmedengu
ahmedengu / driverless_ai.ipynb
Last active February 14, 2020 04:13
Installing and running H2O Driverless AI on google colab and access it using ngrok
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.