Skip to content

Instantly share code, notes, and snippets.

View majimboo's full-sized avatar
🏠
Working from home

Majid Siddiqui majimboo

🏠
Working from home
View GitHub Profile
@majimboo
majimboo / Unity-PkgLister.go
Last active August 2, 2021 12:00
a script that can list all the packages you have imported in your Unity project.
package main
import (
"archive/tar"
"compress/gzip"
"encoding/binary"
"encoding/json"
"fmt"
"io"
"log"
@majimboo
majimboo / my.cnf
Created August 2, 2020 19:18 — 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 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 December 4, 2019 10:54
Khan Online on Mac
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 August 29, 2015 14:07
Express serve-static that can be toggled on/off
/*!
* 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 September 4, 2020 15:45
CentOS 6.5 LEMP (Linux, Nginx, MySQL, PHP5) Stack Install Script with Composer and NodeJS
#!/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