Skip to content

Instantly share code, notes, and snippets.

View awah95's full-sized avatar
🎯

Awah Mohamed awah95

🎯
View GitHub Profile
<?php
/**
* Add custom field option on all modules.
*
* @param array $modules
*
* @return array
*/
function smpl_extend_modules( $modules ) {
// Ensure we run this code only once because it's expensive.
#!/usr/bin/env python
# coding: utf-8
# مرحب بيكم معانا. هنا الكود الكتبناو مع بعض في الفيديو في قناة البعد الخامس
# Import the libraries (ادخال المكتبات المهمه للبرنامج حقنا)
import matplotlib.pyplot as plt
import numpy as np
import mnist
from keras.models import Sequential
from keras.layers import Dense
from keras.utils import to_categorical
@awah95
awah95 / my.cnf
Created September 14, 2019 01:00 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# === Updated December 2018 ===
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have less or more resources available you should adjust accordingly to save CPU,
# RAM and disk I/O usage.
# The settings marked with a specific comment or the word "UPD" after the value
@awah95
awah95 / csv_splitter.py
Created August 8, 2019 18:04 — forked from jrivero/csv_splitter.py
A Python CSV splitter
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
Arguments:
Mautic Cronjob Codes - Last Updated August 8, 2019
_____________________________________________________
I lost access to my previous account GitHub Account (@sc0rpi0n95), So i forked the code here to make modifications and keep it updated.
https://awah.net
Disclaimer: This code is not the official documentation from Mautic.org, not is it indorced by Mautic.org. Please use at your own discretion.