Skip to content

Instantly share code, notes, and snippets.

View ArRolin's full-sized avatar
🌍
Remote Dev

G M Ashiqur Rahaman ArRolin

🌍
Remote Dev
View GitHub Profile
@ArRolin
ArRolin / fixed-nav.js
Created December 18, 2015 08:41 — forked from TanvirAmi/fixed-nav.js
Navigation will be fixed at the top position at the time of scrolling. You have to change (#custom_nav_id) with your custom nav/div id.
jQuery(function($) {
// grab the initial top offset of the navigation
var sticky_navigation_offset_top = $('#custom_nav_id').offset().top;
// our function that decides weather the navigation bar should have "fixed" css position or not.
var sticky_navigation = function(){
var scroll_top = $(window).scrollTop(); // our current vertical position from the top
// if we've scrolled more than the navigation, change its position to fixed to stick to top, otherwise change it back to relative
@ArRolin
ArRolin / gist:76d8f896ffe77f329d87
Last active September 20, 2015 08:19 — forked from seanmcn/gist:62a021a765ad4f8e593b
The Perfect Web Server - Nginx, Ajenti, Ubuntu
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2
sudo apt-get autoremove && sudo apt-get remove apache2*
<?php
$countries = array();
$countries[] = array("iso_code"=>"AF","country_name"=>"Afghanistan","country_code"=>"93");
$countries[] = array("iso_code"=>"AL","country_name"=>"Albania","country_code"=>"355");
$countries[] = array("iso_code"=>"DZ","country_name"=>"Algeria","country_code"=>"213");
$countries[] = array("iso_code"=>"AS","country_name"=>"American Samoa","country_code"=>"1");
$countries[] = array("iso_code"=>"AD","country_name"=>"Andorra","country_code"=>"376");
$countries[] = array("iso_code"=>"AO","country_name"=>"Angola","country_code"=>"244");
$countries[] = array("iso_code"=>"AI","country_name"=>"Anguilla","country_code"=>"1");
$countries[] = array("iso_code"=>"AG","country_name"=>"Antigua","country_code"=>"1");
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff') format('woff'), /* Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
body {
/*
* jQuery FlexSlider v1.8
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/* Browser Resets */
/*
* jQuery FlexSlider v1.8
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
/* Browser Resets */
@ArRolin
ArRolin / Backups
Created March 20, 2014 13:11
Sublime Text Cheat Sheet This is a cheat sheet with keyboard shortcuts for Sublime Text.
Ctrl + Alt + [ Navigate backwards through history
Ctrl + Alt + ] Navigate forwards through history
Ctrl + Alt + Shft + [ Navigate to beginning of history
Ctrl + Alt + Shft + ] Navigate to end of history
Ctrl + Alt + Shft + M Merge selected version with current version