Skip to content

Instantly share code, notes, and snippets.

View jordi-pascual's full-sized avatar
:octocat:

Jordi Pascual jordi-pascual

:octocat:
  • Spain,Barcelona
View GitHub Profile
@jordi-pascual
jordi-pascual / Operaciones-Git
Created February 12, 2016 09:07 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
@jordi-pascual
jordi-pascual / slack_notification.php
Created April 22, 2016 14:08 — forked from alexstone/slack_notification.php
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public static function slack($message, $room = "engineering", $icon = ":longbox:") {
$room = ($room) ? $room : "engineering";
$data = "payload=" . json_encode(array(
"channel" => "#{$room}",
"text" => $message,