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
# Services to use: | |
# Choices: security updates (from security.debian.org), volatile updates (from volatile.debian.org) | |
apt-setup-udeb apt-setup/services-select multiselect | |
# Non-existing physical volume | |
partman-auto-lvm partman-auto-lvm/no_such_pv error | |
# Check the integrity of another CD-ROM? | |
d-i cdrom-checker/nextcd boolean false | |
# Install GRUB? | |
grub-installer grub-installer/grub_not_mature_on_this_platform boolean false |
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
from pylab import * | |
import cmath | |
ion() | |
def zroots(k, z): | |
roots = [] | |
theta = arctan2(z.imag, z.real) | |
modroot = abs(z)**(1.0/k) | |
for i in range(k): | |
real = modroot * cos(float(theta+2*i*pi)/k) |
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 | |
if [ -n "$RANDOM" ]; then | |
# Bash | |
random(){ echo $RANDOM; } | |
elif which perl; then | |
random(){ perl -e "print(rand() * (10**15))"; } | |
elif which openssl; then | |
random(){ printf "%d" 0x$(openssl rand -hex $(date +%r)); } | |
else | |
random(){ |
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 | |
# run_boxed_dropbox.sh permite ejecutar al mismo tiempo múltiples | |
# instancias de Dropbox asociadas a distintas cuentas. | |
# Copyright (C) 2013 Fernando López <flopez [at] linti.unlp.edu.ar> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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/bash | |
############################################################################### | |
# | |
# Copyright 2013 Fernando E. M. López | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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/bash | |
# Change this: | |
RUBY_VERSION=1.9.3 | |
echo "su -c apt-get install curl" | |
while ! su -c apt-get install curl; do | |
true | |
done | |
curl -L https://get.rvm.io | bash -s stable --autolibs=read-fail | |
if ! grep 'source $HOME/.bash_profile' ~/.bashrc; then |
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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential git-core curl libssl-dev \ | |
libreadline5 libreadline5-dev \ | |
zlib1g zlib1g-dev \ | |
libmysqlclient-dev \ | |
libcurl4-openssl-dev \ | |
libxslt-dev libxml2-dev |
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 python | |
#-*- encoding: utf-8 -*- | |
# | |
# Ejemplo de un shell extremadamene rudimentario e incompleto | |
# para ilustrar la diferencia entre comandos internos | |
# y comandos externos | |
# | |
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/bash | |
if [ ! -d "$HOME/.rbenv" ]; then | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
echo 'eval "$(rbenv init -)"' >> ~/.profile | |
fi | |
export PATH="$HOME/.rbenv/bin:$PATH" |
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 | |
# Transformar páginas de didiwiki a markdown | |
sed -i -r 's/\x00/\n/g' * # Las páginas de didiwiki terminan en \0 | |
sed -i -r 's/\[(\S+)\s(.+)\]/[\2](\1)/g' * # Los links tienen formato distinto | |
# Los links locales no tienen extensión | |
sed -i -r 's/(\[.+\]\([^(https?:)].+)\)/\1.md)/g' * | |
sed -i -r 's/\[([^(https?:)][^]]+)\]\s+$/[\1](\1.md)/g' * |
OlderNewer