Skip to content

Instantly share code, notes, and snippets.

View pmirshad's full-sized avatar

Irshad Pananilath pmirshad

  • Kozhikode, Kerala
View GitHub Profile
@pmirshad
pmirshad / QuakeCon.ahk
Created April 4, 2011 10:55
AutoHotKey script for Console2
; Launch console if necessary; hide/show on Win+`
#`::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_class Console_2_Main
; need to move the focus somewhere else.
WinActivate ahk_class Shell_TrayWnd
@pmirshad
pmirshad / designer.html
Created October 7, 2014 09:49
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@pmirshad
pmirshad / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<polymer-element name="my-element">
<template>
@pmirshad
pmirshad / magento-1.9.0.1-2-reset-categories.sql
Last active November 24, 2016 16:40
Magento 1.9.0.1-2 Reset Categories
--
-- Magento 1.9.0.1-2 Reset Categories
--
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_category_anc_categs_index_idx`;
TRUNCATE TABLE `catalog_category_anc_categs_index_tmp`;
TRUNCATE TABLE `catalog_category_anc_products_index_idx`;
TRUNCATE TABLE `catalog_category_anc_products_index_tmp`;
@pmirshad
pmirshad / designer.html
Created December 19, 2014 17:27
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@pmirshad
pmirshad / designer.html
Created December 19, 2014 17:27
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@pmirshad
pmirshad / designer.html
Last active August 29, 2015 14:11
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@pmirshad
pmirshad / set-jdk8-alts.sh
Created March 21, 2019 06:37 — forked from chasetec/set-jdk8-alts.sh
Setup Oracle JDK 8 for Redhat based systems using the alternatives command
#!/bin/sh
jdk=/usr/java/jdk1.8.0_05
jre=$jdk/jre
alternatives \
--install /usr/bin/java java $jre/bin/java 180005 \
--slave /usr/lib/jvm/jre jre $jre \
--slave /usr/bin/keytool keytool $jre/bin/keytool \
--slave /usr/bin/orbd orbd $jre/bin/orbd \
@pmirshad
pmirshad / .gitignore
Created February 25, 2021 04:48 — forked from rfay/.gitignore
Create a huge reference repo
nbproject
@pmirshad
pmirshad / sane-caching.nginx.conf
Created April 10, 2021 06:43 — forked from philipstanislaus/sane-caching.nginx.conf
Sample Nginx config with sane caching settings for modern web development
# Sample Nginx config with sane caching settings for modern web development
#
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.