Skip to content

Instantly share code, notes, and snippets.

View cossou's full-sized avatar
:octocat:

Hélder Duarte cossou

:octocat:
View GitHub Profile
@stefandroog
stefandroog / environment.php
Created January 18, 2014 11:43
Environment detection for multiple instances like (staging / production) on the same server (Laravel 4.1) Blog post: http://www.volkomenjuist.nl/blog/2014/01/17/laravel-4-and-environment-detection/
<?php
return 'staging'; //or 'production'
@n1k0
n1k0 / casper-google-suggest.md
Last active February 22, 2020 17:50
A simple CasperJS script to fetch google suggestions from a partial search

CasperJS Google Suggest

The script:

/*global casper:true*/
var casper = require('casper').create({
    pageSettings: {
        userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Firefox/31.0"
 }
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active November 5, 2024 18:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@n1k0
n1k0 / 404checker.js
Created January 11, 2013 10:55
A CasperJS script to check for 404 & 500 internal links on a given website
/**
* This casper scipt checks for 404 internal links for a given root url.
*
* Usage:
*
* $ casperjs 404checker.js http://mysite.tld/
* $ casperjs 404checker.js http://mysite.tld/ --max-depth=42
*/
/*global URI*/
@rmoriz
rmoriz / howto.md
Created June 21, 2012 11:11
Qualys nginx SSL/TLS Admin Ego Enlargement How-To

Qualys nginx SSL/TLS Admin Ego Enlargement How-To

Configure nginx to get 94/98 points:

nginx.conf

http {
  ...
  ssl_session_cache    shared:SSL:10m;
  ssl_session_timeout  10m;