This file has been truncated, but you can view the full file.
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 | |
function backupdev () { | |
DEV=$1 | |
if cryptsetup isLuks $DEV 2>/dev/null; then | |
DEVNAME=$(basename $DEV) | |
echo "Backup $DEV" | |
cryptsetup luksHeaderBackup $DEV --header-backup-file "luksHeaderBackup_${HOSTNAME}_${DEVNAME}.bin" | |
fi; | |
} |
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 | |
echo slug('João Batista Neto'); //joao-batista-neto |
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 | |
/** | |
* Token Utilities class | |
* | |
* The part of this PHP code is based on the product of BaseX Team. | |
* https://github.com/BaseXdb/basex/blob/master/src/main/java/org/basex/util/Token.java | |
* | |
* @package Sugina | |
* @author BaseX Team 2005-12, BSD License | |
* @author Christian Gruen |
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 | |
namespace Hybridium; | |
############### | |
## URL Class ## | |
############### | |
class URL { | |
public static function thisURL($forceSSL = false) { | |
if(!isset($_SERVER['REQUEST_URI'])) |