Skip to content

Instantly share code, notes, and snippets.

View pejicbgd's full-sized avatar

Ivan Pejic pejicbgd

  • Belgrade
View GitHub Profile
@pejicbgd
pejicbgd / Gruntfile.js
Last active March 15, 2017 21:21
Example of gruntfile.js and package.json file for automated workflow
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %>'
},
build: {
src: 'path-to-source',
@pejicbgd
pejicbgd / git command
Last active February 14, 2018 09:14
git command to temporarily ignore changes in file
git update-index --assume-unchanged example.txt
# to track changes again
git update-index --no-assume-unchanged example.txt
@pejicbgd
pejicbgd / .htaccess
Last active August 29, 2015 14:06
Simple htacces file that redirects to subfolder
<IfModule mod_rewrite.c>
RewriteEngine on
# make sure directory listing is disabled
Options +FollowSymLinks -Indexes
# Use either Cond 1 or Cond 2, or neither, if your host is localhost
# Cond 1: rewrite www.example.com to example.com" uncomment these