Skip to content

Instantly share code, notes, and snippets.

View faisalahammad's full-sized avatar
🎯
Focusing

Faisal Ahammad faisalahammad

🎯
Focusing
View GitHub Profile
<div class="promo_sec">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="promo_box">
<div class="promo_head barley_hide_outline" data-barley="promo_head" data-barley-editor="advanced" contenteditable="false">
<h2>
SIGN UP TO RECEIVE DISCOUNTS
</h2>
<span>
.formFooter {
display: none !important;
}
.supernova {
background: transparent !important;
}
.form-all {
width: 500px;
}
.jotform-form {
<body class="{{ template | handleize }}">
@faisalahammad
faisalahammad / admin-ssl-vesta.sh
Created June 22, 2020 15:09 — forked from hasinhayder/admin-ssl-vesta.sh
Install Admin Panel SSL Cert for VestaCP using LetsEncrypt
v-change-sys-hostname somedomain.com
v-add-letsencrypt-domain 'admin' $HOSTNAME '' 'yes'
v-update-host-certificate admin $HOSTNAME
echo "UPDATE_HOSTNAME_SSL='yes'" >> /usr/local/vesta/conf/vesta.conf
@faisalahammad
faisalahammad / terms_shortcode.php
Last active May 3, 2020 20:18
Create a Taxonomy loop (all type of post type or taxonomy supported).
<?php
/** Term Shortcode **/
function my_book_terms( $atts ) {
$args = array( 'hide_empty=0' );
$terms = get_terms( $atts['term'], $args );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
$count = count( $terms );
$i = 0;
$term_list = '<ul class="my-term-archive">';
@faisalahammad
faisalahammad / github_emoji.md
Last active November 11, 2019 08:54 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@faisalahammad
faisalahammad / DNS Prefetch domains
Created October 9, 2019 14:10 — forked from lukecav/DNS Prefetch domains
WP Rocket - Advanced Options Prefetch DNS requests
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@faisalahammad
faisalahammad / .htaccess
Created June 3, 2019 19:22 — forked from ShiponKarmakar/.htaccess
Most Useful .htaccess Code
#stop directory browsing
Options All -Indexes
# SSL Https active Force non-www
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]