Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Majid Arif Siddiqui majimboo

🏠
Working from home
View GitHub Profile
@majimboo
majimboo / my.cnf
Created Aug 2, 2020 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers)
View my.cnf
# Optimized my.cnf configuration for MySQL/MariaSQL
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated January 2020 ~
#
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@majimboo
majimboo / mackhan.sh
Last active Dec 4, 2019
Khan Online on Mac
View mackhan.sh
Open Terminal.app
Copy paste the following commands:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew cask install xquartz
brew cask install wine-stable
brew install winetricks
winetricks quartz
@majimboo
majimboo / serve-static.js
Last active Aug 29, 2015
Express serve-static that can be toggled on/off
View serve-static.js
/*!
* serve-static
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*
* Used as an answer to:
* http://stackoverflow.com/questions/26388122
*/
@majimboo
majimboo / Linux_Nginx_MySQL_PHP5.sh
Last active Sep 4, 2020
CentOS 6.5 LEMP (Linux, Nginx, MySQL, PHP5) Stack Install Script with Composer and NodeJS
View Linux_Nginx_MySQL_PHP5.sh
#!/bin/bash
# Install script for LEMP Web Server on CENTOS 6.5 by Majid Arif Siddiqui
# Init
echo "Initializing..."
sudo yum -y update
sudo yum -y groupinstall "Development Tools"
sudo yum -y install screen