Skip to content

Instantly share code, notes, and snippets.

View aramboyajyan's full-sized avatar

Aram Boyajyan aramboyajyan

View GitHub Profile
@aramboyajyan
aramboyajyan / web.config
Created May 4, 2014 16:30
Deny access to a folder
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<authorization>
<deny users="*"/>
</authorization>
</system.webServer>
</configuration>
@aramboyajyan
aramboyajyan / gist:05beb998b758af7fbedf
Created June 27, 2014 20:05
Gruntfile that minifies/compresses CSS, JS and HTML
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Uglify the JS.
uglify: {
build: {
src: [
@aramboyajyan
aramboyajyan / gist:750eed35f1cb80bb06ed
Created March 26, 2015 10:09
Drupal commerce delete all user profiles on the site
$items = db_query("SELECT profile_id FROM {commerce_customer_profile}")->fetchAll();
$profile_ids = array();
foreach ($items as $item) $profile_ids[] = $item->profile_id;
drupal_set_message(t('@count user profiles deleted.', array('@count' => count($profile_ids))));
commerce_customer_profile_delete_multiple($profile_ids);
@aramboyajyan
aramboyajyan / JS
Last active December 11, 2015 22:08 — forked from jakeonrails/Ruby Notepad Bookmarklet
Code editor bookmarklets. Just copy the code and paste it in the browser URL. It will load ACE editor with the mode you choose for the language.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/javascript");</script>
@aramboyajyan
aramboyajyan / gist:4744679
Last active December 12, 2015 08:29
Browser window for typing
data:text/html, <textarea style="font-size: 1.2em; width: 100%; height: 100%; font-family: Calibri; border: none; outline: none" autofocus />
@aramboyajyan
aramboyajyan / drupal6.info
Created June 15, 2013 08:13
Drupal info files for custom modules
; ------------------------------------------------------------------------------
; Module created by Topsitemakers.com
; http://www.topsitemakers.com
; ------------------------------------------------------------------------------
; ------------------------------------------------------------------------------
; Custom created module for [website] website
; ------------------------------------------------------------------------------
name = Blank
description = Blank custom module.
@aramboyajyan
aramboyajyan / index.html
Created June 15, 2013 08:11
Empty HTML5 template with shiv and normalize CSS included.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link type="text/css" rel="stylesheet" href="//necolas.github.com/normalize.css/2.0.1/normalize.css" />
</head>
<body>
Content
@aramboyajyan
aramboyajyan / new_gist_file
Created June 21, 2013 11:41
Angular, Bootstrap and Lodash
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link type="text/css" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" />
</head>
<body>
@aramboyajyan
aramboyajyan / style.css
Created July 11, 2013 09:59
Basic responsive CSS
/**
* @file
* Main responsive stylesheet file.
*
* Created by: Topsitemakers
* http://www.topsitemakers.com/
*/
@aramboyajyan
aramboyajyan / tags
Created July 11, 2013 09:45
Mobile devices HTML tags
<meta name="viewport" content="initial-scale=1.0, user-scalable=0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-touch-fullscreen" content="yes"/>