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 reset hard a specific path | |
git checkout HEAD -- <path> |
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
#symfony -> database | |
php app/console doctrine:schema:update --force | |
#database -> symfony | |
php app/console doctrine:mapping:import --force ApplicationBundle xml && php app/console doctrine:mapping:convert --force annotation ./src && php app/console doctrine:generate:entities ApplicationBundle | |
# db to doctrine xml | |
php app/console doctrine:mapping:import ApplicationBundle xml --filter="InvProducts" | |
#xml to doctrine entity |
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
#to intstall | |
sudo apt-get install arp-scan | |
#to scan the connected wifi network | |
arp-scan --interface=wlan0 --localnet |
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
.myIframe { | |
position: relative; | |
padding-bottom: 65.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: auto; | |
border: solid black 1px; | |
width: 100%; | |
} |
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 | |
use Symfony\Component\HttpKernel\Kernel; | |
use Symfony\Component\Config\Loader\LoaderInterface; | |
class AppKernel extends Kernel | |
{ | |
public function registerBundles() | |
{ | |
$bundles = array( |
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
.crop-text{ | |
width : 100px; | |
overflow:hidden; | |
display:inline-block; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} |
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 implode_recursive($g, $p) { | |
return is_array($p) ? | |
implode($g, array_map(__FUNCTION__, array_fill(0, count($p), $g), $p)) : | |
$p; | |
} | |
?> |
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 | |
interface OutputInterface | |
{ | |
public function load(); | |
} | |
class SerializedArrayOutput implements OutputInterface | |
{ | |
public function load() |
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 | |
//=============================== | |
// property visibility | |
//=============================== | |
/** | |
* Define MyClass | |
*/ | |
class MyClass |
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 | |
//======================== | |
//curl | |
//======================== | |
$post = [ | |
'username' => 'user1', | |
'password' => 'passuser1', | |
'gender' => 1, |