Skip to content

Instantly share code, notes, and snippets.

View moa3's full-sized avatar

Luc-pascal Ceccaldi moa3

View GitHub Profile
@moa3
moa3 / post-commit
Last active May 14, 2018 22:58
Python post-commit hook for Posting github commit URLs on Trello cards
#!/usr/bin/env python3
# Git post-commit hook that
# parses the commit message for a trello card URL
# checks if the core "origin" url of the current repository is a github URL
# POSTs a comment on the aforementioned Trello card with a github link to the commit
# just put this file in your .git/hooks dir
# name it post-commit
# chmod +x .git/hooks/post-commit
# requires python3 and pip3 install dulwich
@moa3
moa3 / list.ace
Created June 23, 2017 07:47
content list layout to put in layouts/_default/list.ace
/ Using ace templating engine but should be easily transferable to go templating
= content list
.col-xs-12.col-sm-8.col-md-9.content-column.white-background
{{ partial "mobileNavToggle.html" . }}
.list.row
.col-lg-12
/ this is where the magic happens. In my case,
/ the only listing page is the workshops one so this condition is hardcoded
{{ range (where .Data.Pages.ByDate "Section" "workshops") }}
209.51.208.188 - - [29/Jan/2015:15:25:59 +0100] "GET /muieblackcat HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:25:59 +0100] "GET //scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //admin/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //admin/pma/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //admin/phpmyadmin/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //db/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //phpMyAdmin-2.5.5-pl1/index.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //php-my-admin/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //phpMyAdmin/scripts/setup.php HTTP/1.1" 404 446 "-" "-"
209.51.208.188 - - [29/Jan/2015:15:26:00 +0100] "GET //phpmyadmin/
URxvt.background: #000000
!URxvt.foreground: gray90
URxvt.foreground: white
URxvt.color7: gray90
URxvt.colorBD: #ffffff
URxvt.cursorColor: #e0e080
URxvt.throughColor: #8080f0
URxvt.highlightColor: #f0f0f0
URxvt.font : xft:Inconsolata:pixelsize=17
URxvt.transparent : true
# config/initializers/active_admin_mongoid_patch.rb
require "active_admin"
require "active_admin/resource_controller"
require 'ostruct'
module ActiveAdmin
class Namespace
# Disable comments
def comments?
@moa3
moa3 / gist:1638950
Created January 19, 2012 09:28
TMux.conf
set -g status-right "#(uptime|awk '{print $11}') #(date)"
set-option -g status-keys vi
set-window-option -g mode-keys vi
set-window-option -g utf8 on
set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
#set -g default-terminal screen-256color
#set-option -g history-limit 4096
@moa3
moa3 / gist:1600278
Created January 12, 2012 12:41
index
{
routing: {
state: STARTED
primary: true
node: __7vVIObS66viEDy28bfSA
relocating_node: null
shard: 0
index: tlhub-development_segments
}
state: STARTED