Skip to content

Instantly share code, notes, and snippets.

View mazhar266's full-sized avatar
💭
I may be slow to respond.

Mazhar Ahmed mazhar266

💭
I may be slow to respond.
View GitHub Profile
@mazhar266
mazhar266 / default.conf
Last active December 12, 2018 05:42
NginX config for Any Apps using Proxy and Gzip
server {
# server name / URL
server_name www.site.com;
# turn logs off for now
access_log off;
error_log off;
# static files
location /static/ {
@mazhar266
mazhar266 / httpd.asm
Created January 11, 2018 08:10 — forked from DGivney/httpd.asm
section .text
global _start
_start:
xor eax, eax ; init eax 0
xor ebx, ebx ; init ebx 0
xor esi, esi ; init esi 0
jmp _socket ; jmp to _socket
_socket_call:
@mazhar266
mazhar266 / unijoy.sh
Last active July 18, 2017 10:14 — forked from ratulcse10/gist:d3323d0f598743ed9929
how to install unibijoy in ubuntu
sudo apt-get install ibus-m17n m17n-db m17n-contrib ibus-gtk
sudo dpkg -L m17n-db|grep bn
sudo dpkg -L m17n-contrib|grep bn
#If ibus is not installed on your system, install it by providing the following commands on terminal.
sudo apt-get install ibus
@mazhar266
mazhar266 / banglaNumber.js
Created July 14, 2017 12:18 — forked from nixon1333/banglaNumber.js
English number to Bangla number convertion
function toBangla (str)
{
//check if the `str` is not string
if(!isNaN(str)){
//if not string make it string forcefully
str = String(str);
}
//start try catch block
try {
@mazhar266
mazhar266 / kickstart.sh
Last active July 19, 2017 06:13 — forked from faisalmahmud/gist:e4c44c0dacacf01515dea1643929fcdb
Good starting point for a Django dev environment on Ubuntu
sudo apt-get update
sudo apt-get upgrade
# Install packages
sudo apt-get install -y python-pip python-dev build-essential python-software-properties
sudo apt-get install -y git-core htop nginx ntpdate nano ufw curl wget
sudo apt-get install -y zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev
sudo apt-get install -y libsqlite3-dev sqlite3
sudo apt-get install -y redis-server
sudo apt-get install -y nodejs npm
@mazhar266
mazhar266 / stuns
Created January 30, 2017 06:23 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@mazhar266
mazhar266 / stuns
Created January 30, 2017 06:22 — forked from zziuni/stuns
STUN server list
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@mazhar266
mazhar266 / layered architecture.md
Last active March 2, 2019 17:29
Sprint MVC Basic Infos

In Spring MVC uses a layered architecture

controllers > services > repositories > models > database.

Controllers

hold the presentation (UI) logic – process user request (GET / POST / other), prepare data for the view and render the view (or redirect to another URL). Example: prepare and show the home page.

Services

hold the business logic. Often just call some repository method. Example: create new post / show a post for deleting / delete post. Services may have several implementations: DB based or stub based.

@mazhar266
mazhar266 / LoginController.java
Created July 30, 2016 23:06 — forked from jewelsea/LoginController.java
JavaFX sample for an fxml based Login screen to main application transition with login session data transfer
package login;
import javafx.event.*;
import javafx.fxml.FXML;
import javafx.scene.control.*;
/** Controls the login screen */
public class LoginController {
@FXML private TextField user;
@FXML private TextField password;
@mazhar266
mazhar266 / placeholder.css
Created March 27, 2016 06:37
Styling Placeholder Text
::-webkit-input-placeholder {
color: red;
}
:-moz-placeholder { /* Firefox 18- */
color: red;
}
::-moz-placeholder { /* Firefox 19+ */
color: red;