This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MY_DIR=`dirname $0` | |
. $MY_DIR/backups.conf | |
DAY_OF_WEEK=`date +%A | tr '[:upper:]' '[:lower:]'` | |
WEEK_OF_YEAR=`date +%V` | |
BACKUP_DIRECTORY=/home/$BACKUP_USER/backups/daily/$DAY_OF_WEEK | |
WEEKLY_BACKUP=/home/$BACKUP_USER/backups/weekly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // -*- c-basic-offset: 2 -*- | |
/** | |
* Pest is a REST client for PHP. | |
* | |
* See http://github.com/educoder/pest for details. | |
* | |
* This code is licensed for use, modification, and distribution | |
* under the terms of the MIT License (see http://en.wikipedia.org/wiki/MIT_License) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myApp.directive('switchButton', function() { | |
return { | |
require: 'ngModel', | |
restrict: 'E', | |
template: '<div class="btn-group">' + | |
'<button class="btn on" ng-click="on()"></button>' + | |
'<button class="btn off" ng-click="off()"></button>' + | |
'</div>', | |
link: function($scope, element, attrs, controller) { | |
$scope.on = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* stallwall.user.js @jvelo 2012-2013 | |
* | |
* At a friend's place : | |
* | |
* 1. Open chrome://chrome/extensions/ in chrome | |
* 2. Drag in there this script | |
* 3. ??? | |
* 4. Profit ! | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var XWiki = (function(XWiki){ | |
/** | |
* Widget that takes a popup with a form in its content and auto-magically ajaxifies this form. | |
*/ | |
XWiki.AjaxifiedPopupForm = Class.create({ | |
/** | |
* Some default options. | |
*/ |
NewerOlder