Skip to content

Instantly share code, notes, and snippets.

View knicklabs's full-sized avatar
✏️

Nickolas Kenyeres knicklabs

✏️
View GitHub Profile
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@mmottola24
mmottola24 / Linear Gradient
Created March 22, 2011 15:55
Linear Gradients
-moz-linear-gradient(center top , #6DC3E6, #0C5FA3) repeat scroll 0 0 transparent
@dideler
dideler / bootstrapping.md
Last active February 2, 2025 22:27
Bootstrapping - a list of useful resources to get up and running quickly

Welcome!

UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.

@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@xslim
xslim / README.md
Created September 21, 2012 10:57
git commit hook for Harvest integration

Installation

  • Install hcl https://github.com/zenhob/hcl
  • cd MyProject
  • curl -L https://gist.github.com/raw/3760898/commit-msg.sh > .git/hooks/commit-msg
  • chmod +x .git/hooks/commit-msg
  • hcl tasks
  • Note ProjectID & TaskID
  • git config hooks.harvesttask "ProjectID TaskID"
  • Example: git config hooks.harvesttask "2551232 1441578"
@collinprice
collinprice / awesome-php.md
Created October 31, 2012 22:05 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries
@ninthspace
ninthspace / gist:4360267
Last active April 15, 2025 04:12
How I migrated from rbenv to chruby, and kept per-project gems nice and tidy.

Remove rbenv and any rubies, gems etc.:

$ rm -rf ~/.rbenv

Uninstall rbenv if installed via Homebrew

$ brew uninstall rbenv

Remove references to rbenv in ~/.bash_profile etc.

@knicklabs
knicklabs / Rakefile
Created August 17, 2013 18:43
My Rakefile for Jekyll projects.
task :server do
server = Process.spawn('jekyll serve --watch')
compass = Process.spawn('compass watch')
trap('INT') do
[server, compass].each { |pid| Process.kill(9, pid) rescue Errno::ESRCH }
exit 0
end
[server, compass].each { |pid| Process.wait(pid) }
@knicklabs
knicklabs / Gruntfile.js
Created August 17, 2013 18:44
My Gruntfile for Jekyll projects
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: ';'
},
dist: {
src: [
'assets/js/_src/modernizr.js',
@booleanbetrayal
booleanbetrayal / Gruntfile.js
Last active November 23, 2024 05:09
Example GruntJS configuration for a replacement to the Sprockets Rails asset pipeline
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// configurable paths
var paths = {