Skip to content

Instantly share code, notes, and snippets.

View jelicanin's full-sized avatar

Milan Jelicanin jelicanin

View GitHub Profile
@christianchristensen
christianchristensen / .gitignore
Last active June 14, 2020 23:16
Simple PHP Graph data-structure.
/vendor
@mtowers
mtowers / README.md
Last active February 24, 2022 17:19
Google Analytics Website Visitor Count Widget for Dashing with OAuth2 Authentication
@jelbourn
jelbourn / api-provider.js
Last active February 25, 2024 12:51
Example of using an angular provider to build an api service. Subject of August 20th 2013 talk at the NYC AngularJS Meetup. http://www.meetup.com/AngularJS-NYC/events/134578452/See in jsbin: http://jsbin.com/iWUlANe/5/editSlides: https://docs.google.com/presentation/d/1RMbddKB7warqbPOlluC7kP0y16kbWqGzcAAP6TYchdw
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (@jelbourn)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
@jonathonbyrdziak
jonathonbyrdziak / .htaccess
Last active November 29, 2020 03:04
htaccess mod_expires / mod_cache / mod_deflate / mod_headers
# ------------------------------------------------------------------------------
#
# Curtousy of the Magento Support Center
# http://magentosupport.help/what-are-expires-headers-and-how-do-i-implement-them/
#
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# | Mod Caching via Apache |

Setup

Add the following gems to your Gemfile:

gem 'activeresource'
gem 'newrelic_api'

Update your bundle:

@petemcw
petemcw / brew-instructions.sh
Last active March 27, 2024 15:59
Setup dnsmasq on Mac OS X
# Install `dnsmasq` and configure for *.test domains
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Reload configuration and clear cache
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
$ dscacheutil -flushcache
@jarvys
jarvys / run-multiple-redis-instances.md
Last active September 27, 2022 13:02
run multiple redis instances on the same server for centos
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
...
@BinaryPaean
BinaryPaean / oro-crm-clank
Created July 1, 2014 17:33
Monit config file to watch oro crm clank server launched with nohup
check process clank with pidfile /var/run/clank.pid
group www
start program = "/etc/monit/launch-clank.sh"
stop program = "/bin/kill `/bin/cat /var/run/clank.pid`"
@amine7536
amine7536 / dashing.sh
Last active September 14, 2016 07:59
Dashing start/stop script. CentOS 6.5 and SCL Ruby193
#!/bin/bash
#
# dashing Startup script for Shopify Dashing
#
# chkconfig: - 85 15
# description: The exceptionally handsome dashboard framework in Ruby and Coffeescript. \
# http://shopify.github.com/dashing/
# processname: thin
# config: /usr/local/dashing/config.ru
# pidfile: /usr/local/dashing/dashing.pid
@cvrebert
cvrebert / css_regression_testing.md
Last active May 28, 2024 17:42
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots