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
// for example, to reroute to users/delete | |
// this is in the controller which receives the request. | |
// this could even be in the AppController | |
$this->autoRender = false; | |
$d = new Dispatcher(); | |
$d->dispatch( | |
array("controller" => "users", "action" => "delete"), | |
array("data" => $this->data) |
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
Regexp ^([\w\W]{8})\s{3}([^\n]+[^\s]+)\s+([A-Z\s]{2})\s{10}$ | |
Replace INSERT INTO proveedores(id, nombre, pais_id) VALUE ('$1', '$2', '$3'); | |
AT001825 ELIMPEX A | |
HK004391 HIMALI ELECTRONICS INTERNATIONAL H | |
AD000014 CILINDROS Y CROMADOS S.A. AD | |
AE000010 AL KEDDAH TRADING CO. LLC. AE | |
AE000029 GEOGAS TRADING S.A. AE |
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
$log = $this->Establecimiento->Promocione->getDataSource()->getLog(false, 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
./Console/cake acl create aco Usuarios admin_switch | |
./Console/cake acl create aco Usuarios super_switch | |
./Console/cake acl grant Group.2 Usuarios/admin_switch | |
#View AC= | |
./Console/cake acl view aco Promociones | |
# Create aro on root | |
./Console/cake acl create aro / Group.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
git branch -d -r origin/<remote branch name> |
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
git checkout v1.2.3 -- filename # tag v1.2.3 | |
git checkout stable -- filename # stable branch | |
git checkout origin/master -- filename # upstream master | |
git checkout HEAD -- filename # the version from the most recent commit | |
git checkout HEAD^ -- filename # the version before the most recent commit |
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
This will unstage all files you might have staged with git add: | |
git reset | |
This will revert all local uncommitted changes (should be executed in repo root): | |
git checkout . | |
This will remove all local untracked files, so only git tracked files remain: | |
git clean -fdx |
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
ls -l | awk '/^d/ {print $9}' |
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
<meta content="Kanye West" property="og:title" /> | |
<meta content="BLKKK SKKKN HEAD" property="og:description" /> | |
<meta content="http://a4.g.akamai.net/7/1/9499/v1/defjam.download.akamai.com/9499/kanye/assets/fb/BLKKK178.jpg" property="og:image" /> | |
<meta content="http://www.kanyewest.com" property="og:url" /> | |
<meta content="Kanye West" property="og:site_name" /> | |
<meta content="16806373" property="fb:admins" /> | |
<meta content="website" property="og:type" /> | |
<meta content="Spins.FM" name="author" /> |
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
# Revert changes to modified files. | |
git reset --hard | |
# Remove all untracked files and directories. | |
git clean -fd |
OlderNewer