Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Breakpoint, Debugger Attached!

Ahmed Kamel Taha ahmedengu

🎯
Breakpoint, Debugger Attached!
View GitHub Profile
@ahmedengu
ahmedengu / benchmark_env.js
Created Jul 18, 2020
20X performance improvement on Nodejs, just by caching process.env with a single line: process.env = JSON.parse(JSON.stringify(process.env));
View benchmark_env.js
// ****************************
//* ********* 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 Feb 22, 2020
Generate nextjs sourcemaps for Honeybadger
View next.config.js
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/*',
View keybase.md

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 Sep 3, 2020
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
View colab.js
// 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 Nov 21, 2020
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
View colab_xface_vnc.ipynb
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 Apr 27, 2020
Installing and running quantconnect lean on google colab ubuntu 18 python version
View quantconnect_lean.ipynb
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 Jan 15, 2019
wilddog + ftp
View readme.md

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 Dec 18, 2019
Installing and running H2O flow on google colab using and access it ngrok, Don't forget setting ngrok auth key
View h2o_flow.ipynb
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 Dec 15, 2018
Plotting h2o mojo model in python with a sample h2o automl demonstration and model viewing using Graphviz
View view_h2o_mojo_model.ipynb
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 Feb 14, 2020
Installing and running H2O Driverless AI on google colab and access it using ngrok
View driverless_ai.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.