Skip to content

Instantly share code, notes, and snippets.

View niamrox's full-sized avatar

Niamul Hasan niamrox

View GitHub Profile
@niamrox
niamrox / terminal-command.md
Last active August 29, 2015 14:09
Terminal Command

###Force trush on Mac From terminal Command sudo rm -rf ~/.Trash
sudo rm -rf /Volumes/*/.Trashes ###Copy File from server to local pc scp (remote computer):path/to/remote/file (location on my local computer) rsync -av /path/to/source /path/to/destination
rsync -av /path/to/source/ /path/to/destination/source
####example copy from server to my pc scp emran@192.168.1.249:/var/www/css/wordpress/release/unship_data.zip /Volumes/Storage/tuhin.dev/web/css/products/themeforest/wordpress/unship/package/
###Move or Rename

@niamrox
niamrox / senior_developer.md
Last active May 25, 2018 05:50
senior web developer

###Job Summary
###Name of Position: Senior Web Developer ( Virtual ) Number of Open Position: 04 Job Type: Virtual Weekly Limit : 25 Hour/ Week Salary : Negotiable Deadline : 15 Jun 2018

###Job Description / Responsibility :

@niamrox
niamrox / webuidesigner.md
Last active August 29, 2015 14:15
UI Designer

###Job Summary ###Name of Position: Web UI Designer Number of Open Position: 02
Job Type: Full Time ( 5 days a week )
Salary Range: BDT 20,000 - 45,000
Deadline : 30th May 2015

###Job Description / Responsibility

  • Must have extensive work experience in Adobe Photoshop & Illustrator CS 5 or 6.
  • Excellent visual design skills and knowledge of current web industry trends
@niamrox
niamrox / juniordeveloper.md
Last active August 29, 2015 14:19
Junior Developer Job Position

###Job Summary ###Name of Position: Junior Web Developer Number of Open Position: 04
Job Type: Full Time
Salary Range: Negotiable Deadline : 30 April 2015

###Job Description / Responsibility :

  • We require a Junior Web Developer who have very strong knowledge in Html5 , Css3 , Boosttrap3 and Javascript
  • Less css coding knowledge
@niamrox
niamrox / .gitignore
Last active August 29, 2015 14:23 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@niamrox
niamrox / Media Query Break Points
Last active June 2, 2017 13:57
BS3 - Media Query Break Points
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
@niamrox
niamrox / wpcommon.conf
Created February 15, 2016 00:20 — forked from rahul286/wpcommon.conf
EDD downloads security with EasyEngine
# For more details, refer - https://easydigitaldownloads.com/support/topic/download-files-not-protected-nginx-under-easyengine/
# NOT tested (yet)
location /wp-content/uploads/ {
location ~ ^/wp-content/uploads/edd/(.*?)\.zip$ {
rewrite / permanent;
}
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers
@niamrox
niamrox / letsencrypt.md
Created October 10, 2016 20:16 — forked from xrstf/letsencrypt.md
Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

Let's Encrypt on Ubuntu 14.04, nginx with webroot auth

This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.

As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).

Configuration

For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:

@niamrox
niamrox / wp-query-ref.php
Created November 30, 2016 10:04 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@niamrox
niamrox / wp_enqueue_script.txt
Created December 7, 2016 12:27
Enqueue Script For WordPress Themes and Plugins
https://code.tutsplus.com/articles/the-ins-and-outs-of-the-enqueue-script-for-wordpress-themes-and-plugins--wp-22509