This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="boarding-pass"> | |
<header> | |
<svg class="logo"> | |
<use xlink:href="#alitalia"></use> | |
</svg> | |
<div class="flight"> | |
<small>flight</small> | |
<strong>AL 101</strong> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='event'> | |
<div class='event-side'> | |
<div class='dotted-line-separator'><span class='line'></span></div> | |
<div class='event-icon'><span class='fa fa-users'></span></div> | |
<div class='event-date'>Jan 17</div> | |
<div class='event-time'>11 PM <span class='to'>to </span>12 PM</div> | |
<div class='cut-out'></div> | |
</div> | |
<div class='event-body'> | |
<div class='event-image'><a href='#'><span class='image'></a></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum -y update | |
sudo yum install -y gcc make gcc-c++ git httpd24 mod24_ssl php70 php70-devel php70-mysql php70-mysqlnd php70-pdo php70-mbstring php70-mcrypt php-gd php-pear php70-pecl-apc | |
sudo pear install Log | |
sudo service httpd start | |
sudo chkconfig httpd on | |
sudo service httpd restart | |
sudo chown -R ec2-user /var/www | |
sudo yum install mysql mysql-server | |
sudo chkconfig mysqld on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for url in $(cat urls.txt); | |
do | |
curl -X POST \ | |
-F "id="$url \ | |
-F "scrape=true" \ | |
"https://graph.facebook.com" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Open Graph URLs for facebook | |
* Plugin URI: https://shubhampandey.in/migrating-website-http-https/ | |
* Description: Change all your https url to http for facebook for Yoast SEO | |
* Author: Shubham Pandey | |
* Version: 1.0.0 | |
* Author URI: https://shubhampandey.in | |
* License: GPL2+ | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created 15 January 2016, 6.49.10 PM 😛 | |
#include<stdio.h> | |
#include<conio.h> | |
#include<process.h> | |
int ar[10],i,j,count=0,choice,turn; | |
void win(int des) | |
{ | |
if(des==0) | |
{ | |
printf("\n\n************Congretulations !!!!!!!!!!!!!!!!!\n"); //typos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="WordPress Theme Coding Standards"> | |
<!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml --> | |
<!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml --> | |
<!-- Set a description for this ruleset. --> | |
<description>A custom set of code standard rules to check for WordPress themes.</description> | |
<!-- Include the WordPress ruleset, with exclusions. --> | |
<rule ref="WordPress"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Travis CI (MIT License) configuration file for the solitude WordPress theme. | |
# @link https://travis-ci.org/ | |
# For use with the solitude WordPress theme. | |
# @link https://github.com/shubham9411/solitude | |
# Ditch sudo and use containers. | |
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F | |
# @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure | |
sudo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!function_exists('spx_custom_field')){ | |
function spx_custom_field($attr){ | |
global $post; | |
$name = $attr['name']; | |
if(empty($name)) return; | |
return get_post_meta( $post->ID, $name, true ); | |
} | |
} | |
add_shortcode('new_field','spx_custom_field'); |