Skip to content

Instantly share code, notes, and snippets.


Aigars Silkalns puikinsh

View GitHub Profile
View gist:a2dcae8121dc4558283fbd23929cd724
View gist:025dacb01c494c9dc8516bfc4198c0dc
<a style="background: #7bc74d; padding: 19px; color: #fff;" href="" target="_blank" rel="nofollow noopener">Info / Download</a> <a style="background: #5FD3EF; padding: 19px; color: #fff;" href="" target="_blank" rel="nofollow noopener">Demo</a>
puikinsh / HTML
Created Nov 28, 2017
Template Copyrights
<p>Copyright @2018 All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="" target="_blank">Colorlib</a></p>
puikinsh / Gravity.txt
Last active Mar 15, 2017
A simple tumblr theme
View Gravity.txt
<!DOCTYPE html>
theme: Gravity
version: 1.0 (March 1, 2017)
View gist:91068f29d04c1b0ebf7bf31ca13b9d12
[button open_new_tab="true" color="Accent-Color" size="medium" url="" text="More info / Download"] [button open_new_tab="true" color="Extra-Color-2" size="medium" url="" text="Demo"]
View gist:6a17b95500f8b4ed716a
.navbar .container .navbar-brand {
color: #8224e3;
puikinsh / .htaccess
Created Aug 17, 2015
Example for .htaccess file. For more information about this simple code snippet please read our full WordPress security guide:
View .htaccess
<FilesMatch "\.(php|php\.)$">
Order Allow,Deny
Deny from all
puikinsh / wp-config.php
Last active Aug 29, 2015
This is part of wp-config.php file which helps to change and set table prefix in WordPress. This code snippet is part of article which helps to resolve database connection problems in WordPress. For more information please read this article:
View wp-config.php
* WordPress Database Table prefix.
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
$table_prefix = 'TablePrefix_';
puikinsh / wp-config.php
Created Aug 17, 2015
This is a code snippet from article published on Colorlib that helps to solve database connection problem for WordPress. For more information please read the full artcile which is available here:
View wp-config.php
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘database_name’);
/** MySQL database username */
define(‘DB_USER’, ‘database_user’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘database_password’);
View gist:3a723781ff491e119268
<link rel="stylesheet" href="css/style.css">
* can turn into
<link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/css/style.css">