This file contains 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/sh | |
DCRET=/home/ghostbar/incoming-experimental | |
DCROT=/srv/reprepro.deb.rivco.info | |
for i in $( find $DCRET | grep ".changes" ); do | |
reprepro -Vb $DCROT include experimental $i | |
mkdir -p /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - ).exp | |
for j in $( dcmd $i ); do | |
mv $j /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - ).exp/ |
This file contains 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/sh | |
# creating a git empty branch | |
# it takes as arg the name for the new branch | |
git-symbolic-ref HEAD refs/heads/$1 | |
rm .git/index | |
git clean -fdx | |
git commit --allow-empty -m "Initial empty branch commit" |
This file contains 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
# Most GPRS phones don't reply to LCP echo's | |
lcp-echo-failure 0 | |
lcp-echo-interval 0 | |
# Keep pppd attached to the terminal: | |
# Comment this to get daemon mode pppd | |
nodetach | |
# Debug info from pppd: | |
# Comment this off, if you don't need more info |
This file contains 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
<!doctype html> | |
<head> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<img id="bg" src="/img/bg.jpg"> | |
<p>Content</p> | |
</body> | |
</html> |
This file contains 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
/* @author Jose Luis Rivas <[email protected]> | |
* | |
* @desc swaping full-background pages with jQuery UI's Tabs plugin events. | |
*/ | |
$(document).ready(function() { | |
$( "#slides" ).bind( "tabsshow", function(event, ui) { | |
var tabattr = $('.ui-state-active').find('a').attr('href'); |
This file contains 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
class App | |
express = require 'express' | |
redis = require 'redis' | |
RedisStore = require('connect-redis')(express) | |
sessionStore = new RedisStore() | |
# These will be used only on ioController() | |
fs = require 'fs' | |
parseCookie = require('connect').utils.parseCookie |
This file contains 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 coffee | |
fs = require 'fs' | |
im = require 'imagemagick' | |
_ = require 'underscore' | |
srcdir = __dirname + '/enviar' | |
destdir = __dirname + '/done' | |
log = (message) -> | |
console.log message |
This file contains 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
_ = require "lodash" | |
fs = require "fs" | |
array = fs.readFileSync("css-colors.txt").toString().split("\n") | |
result = _.countBy array, (data) -> | |
return data | |
console.log result |
This file contains 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 search = $location.search(); | |
var newObject = {}; | |
_.each(search, function(value, key) { | |
newObject[key.toLowercase()] = value; | |
}); |
This file contains 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
express = require "express" | |
app = express() | |
console.log app.settings.env | |
oneDay = 86400000 | |
pushState = (req, res) -> | |
newUrl = req.protocol + '://' + req.get('Host') + '/#' + req.url | |
res.redirect newUrl |
OlderNewer