Solo una vez, para instalar el conversor:
cd ~
git clone git://repo.or.cz/fast-export.git
Luego creamos un script hg2git para hacernos la vida más cómoda
# | |
# Powershell script for adding/removing/showing entries to the hosts file. | |
# | |
# Known limitations: | |
# - does not handle entries with comments afterwards ("<ip> <host> # comment") | |
# | |
$file = "C:\Windows\System32\drivers\etc\hosts" | |
function add-host([string]$filename, [string]$ip, [string]$hostname) { |
Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage | |
Get-AppxPackage *officehub* | Remove-AppxPackage | |
Get-AppxPackage *skypeapp* | Remove-AppxPackage | |
Get-AppxPackage *getstarted* | Remove-AppxPackage | |
Get-AppxPackage *zunemusic* | Remove-AppxPackage | |
Get-AppxPackage *windowsmaps* | Remove-AppxPackage | |
Get-AppxPackage *solitairecollection* | Remove-AppxPackage | |
Get-AppxPackage *bingfinance* | Remove-AppxPackage | |
Get-AppxPackage *zunevideo* | Remove-AppxPackage |
TMP_DIR="/tmp/issud/" | |
TMP_FILE="issuufile" | |
KONT=1 | |
I_MAGICK=0 | |
TITLE="" | |
if [ -z "$1" ]; then | |
echo "Script para descargar documentos de ISSUU" | |
echo "Usage: `basename $0` URL" | |
echo "" |
Solo una vez, para instalar el conversor:
cd ~
git clone git://repo.or.cz/fast-export.git
Luego creamos un script hg2git para hacernos la vida más cómoda
Panxoliña | |
Fervenza | |
Caxato | |
Burbulla | |
Luscofusco | |
Verxel | |
Berce | |
Xeito | |
Cuspir | |
Axóuxere |
extract () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjf $1 ;; | |
*.tar.gz) tar xzf $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) unrar e $1 ;; | |
*.gz) gunzip $1 ;; | |
*.tar) tar xf $1 ;; | |
*.tbz2) tar xjf $1 ;; |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: supervisord | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
def prompt_with_default(var, default) | |
set(var) do | |
Capistrano::CLI.password_prompt "#{var} [#{default}] : " | |
end | |
set var, default if eval("#{var.to_s}.empty?") | |
end | |
namespace :misc do | |
desc "Remove problematic packages" | |
task :remove do |
<?php | |
$filetypes = array('jpg','jpeg','png','gif','bmp','tiff'); | |
$source = './images_unsorted'; | |
$target = './images_sorted'; | |
$iterator = new RecursiveDirectoryIterator($source); | |
$bytestotal = 0; | |
$nbfiles = 0; |