$ cd /path/to/your/website
$ rm -Rf ./lib
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
<?php | |
function adicionaDiasUteis(int $numDias=0, DateTime $data):DateTime { | |
$dataFim = clone $data; | |
$umdia = new DateInterval('P1D'); // intervalo fixo | |
for ($i=0; $i<$numDias; $i++) { | |
$dataFim->add($umdia); | |
if ($dataFim->format('w') == "0" || $dataFim->format('w') == "6") { | |
$i--; // retorna o contador, caso seja sábado ou domingo | |
} |
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
// only for CakePHP 2.x | |
$lastquery = end($this->getDatasource()->getLog()['log'])['query']; | |
debug($lastquery); |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
html, | |
body { | |
font-family: Helvetica, Arial, sans-serif; |
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
Verifying that "matheuseduardo.id" is my Blockstack ID. https://onename.com/matheuseduardo |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Copyright (C) 2010 The Android Open Source Project | |
Copyright (C) 2012-2016 The Linux Foundation. All rights reserved. | |
Not a contribution. | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.counter span { | |
float:left; | |
width:22px; |
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
keep() { | |
# check arguments | |
if [ $# -ne 1 ]; | |
then | |
echo -e "Wrong arguments specified. Usage:\nkeep /tmp/test.md\ncat /tmp/test.md | keep test.md" | |
return 1 | |
fi | |
# get temporary filename, output is written to this file so show progress can be showed | |
tmpfile="$( mktemp -t keepXXX )" |
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
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.alias config --get-regexp ^alias\. |
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
Alias /aliasname "D:/Path/to/folder/foldername" | |
<directory "D:/Path/to/folder/foldername"> | |
Options Indexes FollowSymLinks Includes ExecCGI MultiViews | |
AllowOverride All | |
Allow from all | |