Skip to content

Instantly share code, notes, and snippets.

View paulRbr's full-sized avatar
🐻‍❄️
👋 Hello!

Paul B. paulRbr

🐻‍❄️
👋 Hello!
View GitHub Profile
### Keybase proof
I hereby claim:
* I am paulrbr on github.
* I am paulrbr (https://keybase.io/paulrbr) on keybase.
* I have a public key whose fingerprint is 9E07 F241 5AC4 262B 661C FA84 DE33 1B23 748D 3A27
To claim this, I am signing this object:
@paulRbr
paulRbr / card_cvv_drivy.html
Last active February 1, 2016 12:33
Payment card CVV Drivy
<div class="relative">
<!-- « autocomple » n'existe pas comme attribut sur l'element <input> en HTML -->
<!-- Cf : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete -->
<input id="js_booking_card_cvv" maxlength="4" placeholder="•••" autocomple="off" data-help="cvv" size="4" name="booking[card_cvv]" type="text">
<i class="ico_info_grey info_cvv_ico js_cvv_ico" data-help="cvv"></i>
</div>
@paulRbr
paulRbr / import_bls.rb
Created May 1, 2015 20:15
Import BLS data into capitainetrain/stations
require "csv"
gem "gares", "> 2.0.0.pre.pre"
require "gares"
parameters = {
:headers => true,
:col_sep => ';',
:encoding => 'UTF-8'
}
@paulRbr
paulRbr / angular.filters.u2camel.js
Last active August 29, 2015 14:11
Angular filter to change underscore values (- or _ seperated) to camelcase
'use strict';
angular.module('app')
.filter('u2camel', function($scope){
return function(msg) {
if (!angular.isString(msg)) {
return '';
} else {
msg = msg.replace(/(\_[a-z])/g, function($1){return $1.toUpperCase().replace('_','');});
msg = msg.replace(/(\-[a-z])/g, function($1){return $1.toUpperCase().replace('-','');});
@paulRbr
paulRbr / README.md
Last active August 29, 2015 14:10 — forked from toddq/README.md

##Description Simple Dashing widget (and associated job) to display RSS feeds. Based on Iaian Mitchell's News widget.

##Screenshot

##Dependencies nokogiri

htmlentities

@paulRbr
paulRbr / pie.coffee
Last active August 29, 2015 14:10 — forked from stevenleeg/pie.coffee
class Dashing.Pie extends Dashing.Widget
@accessor 'value'
onData: (data) ->
@render(data.value)
render: (data) ->
if(!data)
data = @get("value")
if(!data)
@paulRbr
paulRbr / logstash-search.json
Last active August 29, 2015 14:10
Kibana - LogStash dashboard for Apache logs
{
"title": "Logstash Search",
"services": {
"query": {
"list": {
"0": {
"query": "agent:NewRelicPinger",
"alias": "",
"color": "#5195CE",
"id": 0,
@paulRbr
paulRbr / logstash.conf
Last active January 17, 2022 04:22 — forked from mudge/logstash.conf
Logstash configuration to parse Rails logs in a multi-process environment. Assume your logs are prepend by logtags as seen in the RLOGTAGS pattern.
input {
file {
type => "rails"
path => "/log/development.log"
tags => ["development"]
}
}
filter {
if [type] == "rails" {
@paulRbr
paulRbr / Procfile
Last active August 29, 2015 14:05 — forked from ArnaudD/Procfile
web: node index.js
default['nginx']['version'] = "1.2.0"
default['nginx']['passenger']['version'] = "3.0.12"