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
❯ cat fibo.php | |
<?php | |
$start = microtime(TRUE); | |
function fib($num) { | |
if ($num <= 1) return 1; | |
return fib($num -1) + fib($num -2); | |
} | |
$num = intval($argv[1]); |
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/bash | |
if [ $# -eq 0 ]; then | |
echo "Vou trocar o CVS Root pelo quê? Manda o argumento tchê!" | |
exit 1 | |
fi | |
CVSROOT=$1 | |
echo -en "Atualizando CVSROOT do reposisitório para ${CVSROOT} " | |
find . -wholename "*CVS/Root" -print | while read ROOTFILE; do |
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 | |
# Este script utiliza o comando 'semver' do pacote node-semver | |
if [ ! -r ${PWD}/VERSION ]; then | |
echo -en "ERROR: File VERSION is not writable or not found\n" | |
exit 1 | |
fi | |
NEW_VERSION=$(semver -i $(cat ${PWD}/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
diff --git a/PKGBUILD b/PKGBUILD | |
index 0470e96..daf7052 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,5 +1,5 @@ | |
# Maintainer: fordprefect <fordprefect@dukun.de> | |
-pkgname=letsencrypt-cli | |
+pkgname=acme-cli | |
pkgver=0.6.1 | |
pkgrel=1 |