Skip to content

Instantly share code, notes, and snippets.

View julien-c's full-sized avatar
Real artists ship

Julien Chaumond julien-c

Real artists ship
View GitHub Profile
print "Salut"
@julien-c
julien-c / Folder Preferences
Created January 6, 2012 11:04 — forked from chrisyour/Folder Preferences
Show hidden files and hidden folders (except .git) in your TextMate project drawer
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
@julien-c
julien-c / MacOSX Lion
Created January 7, 2012 12:17
Disable the "application downloaded from the internet" warning
defaults write com.apple.LaunchServices LSQuarantine -bool NO
@julien-c
julien-c / gist:2709528
Created May 16, 2012 10:59
basic.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Flot Examples</title>
<link href="layout.css" rel="stylesheet" type="text/css">
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="../jquery.js"></script>
<script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
</head>
@julien-c
julien-c / oauth-ajax.js
Created July 31, 2012 08:56
Simple AJAX authentication on top of tmhOAuth (Twitter sign-in)
$(document).ready(function(){
var user;
/* Sign in with Twitter */
// On load we check whether user's logged in or not:
$.get("api/oauth_ajax.php", null, function(data){
$("#spinner").hide();
imac:laravel-irclogs gibbon$ php artisan irc:log
2013-03-05 08:12:53 DEBUG USER irclogs irc.freenode.net irc.freenode.net :IRC Logs
2013-03-05 08:12:53 DEBUG NICK :irclogs
2013-03-05 08:12:53 DEBUG :zelazny.freenode.net NOTICE * :*** Looking up your hostname...
2013-03-05 08:12:53 DEBUG :zelazny.freenode.net NOTICE * :*** Checking Ident
2013-03-05 08:12:53 DEBUG :zelazny.freenode.net NOTICE * :*** No Ident response
2013-03-05 08:12:54 DEBUG :zelazny.freenode.net NOTICE * :*** Found your hostname
2013-03-05 08:12:54 DEBUG :zelazny.freenode.net 001 irclogs :Welcome to the freenode Internet Relay Chat Network irclogs
2013-03-05 08:12:54 DEBUG :zelazny.freenode.net 002 irclogs :Your host is zelazny.freenode.net[140.211.167.106/6667], running version ircd-seven-1.1.3
2013-03-05 08:12:54 DEBUG :zelazny.freenode.net 003 irclogs :This server was created Tue Sep 25 2012 at 08:51:49 UTC
imac:laravel-irclogs gibbon$ php artisan irc:log
2013-03-05 08:21:19 DEBUG USER irclogs irc.freenode.net irc.freenode.net :IRC Logs
2013-03-05 08:21:19 DEBUG NICK :irclogs
2013-03-05 08:21:19 DEBUG :niven.freenode.net NOTICE * :*** Looking up your hostname...
2013-03-05 08:21:19 DEBUG :niven.freenode.net NOTICE * :*** Checking Ident
2013-03-05 08:21:19 DEBUG :niven.freenode.net NOTICE * :*** No Ident response
2013-03-05 08:21:20 DEBUG :niven.freenode.net NOTICE * :*** Found your hostname
2013-03-05 08:21:20 DEBUG :niven.freenode.net 001 irclogs :Welcome to the freenode Internet Relay Chat Network irclogs
2013-03-05 08:21:20 DEBUG :niven.freenode.net 002 irclogs :Your host is niven.freenode.net[140.211.167.105/6667], running version ircd-seven-1.1.3
2013-03-05 08:21:20 DEBUG :niven.freenode.net 003 irclogs :This server was created Tue Sep 25 2012 at 08:52:30 UTC
Process: Mou [48855]
Path: /Applications/Mou.app/Contents/MacOS/Mou
Identifier: com.mouapp.Mou
Version: 0.8.3 (830)
Code Type: X86-64 (Native)
Parent Process: launchd [136]
Date/Time: 2013-03-19 14:46:40.625 +0100
OS Version: Mac OS X 10.7.5 (11G63)
Report Version: 9
@julien-c
julien-c / global.php
Last active December 16, 2015 16:09
Sentry/Monolog integration in Laravel 4
<?php
if (Config::has('sentry.key')) {
$bufferHandler = new Monolog\Handler\BufferHandler(
new Monolog\Handler\RavenHandler(
new Raven_Client(Config::get('sentry.key')),
Monolog\Logger::WARNING
)
);
<?php
Route::post('oauth/token', function() {
$oauth = new OAuth2\Provider();
return $oauth->tokenRequest();
});
Route::filter('oauth', function() {
$oauth = new OAuth2\Provider();
return $oauth->filter();