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
rm command syntax | |
rm (short for remove) is a Unix / Linux command which is used to delete files from a filesystem. Usually, on most filesystems, deleting a file requires write permission on the parent directory (and execute permission, in order to enter the directory in the first place). The syntax is as follows: | |
rm -f -r {file-name} | |
Where, | |
-f: Forcefully remove file | |
-r: Remove the contents of directories recursively |
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
; Create a Tar of All in Directory | |
tar cvf backup.tar . | |
; Untar | |
tar xvf filename.tar | |
; Exclude files |
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
//The CSS | |
//table.db-table { border-right:1px solid #ccc; border-bottom:1px solid #ccc; } | |
//table.db-table th { background:#eee; padding:5px; border-left:1px solid #ccc; border-top:1px solid #ccc; } | |
//table.db-table td { padding:5px; border-left:1px solid #ccc; border-top:1px solid #ccc; } | |
//Some CSS properties may need to be vendor-prefixed. | |
//The CSS I'm styling the table with is as basic as it gets -- style as you wish! | |
//The PHP / MySQL | |
/* connect to the db */ | |
$connection = mysql_connect('localhost','username','password'); |
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
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user |
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
function array2csv(array &$array) | |
{ | |
if (count($array) == 0) { | |
return null; | |
} | |
ob_start(); | |
$df = fopen("php://output", 'w'); | |
fputcsv($df, array_keys(reset($array))); | |
foreach ($array as $row) { | |
fputcsv($df, $row); |
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 | |
$list = array ( | |
array('aaa', 'bbb', 'ccc', 'dddd'), | |
array('123', '456', '789'), | |
array('"aaa"', '"bbb"') | |
); | |
$fp = fopen('file.csv', 'w'); |
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
Command: assertEval | |
Target: var x = window.document.querySelector('body.home.es ul'); window.getComputedStyle(x,null).getPropertyValue('font-weight'); | |
Value: 700 |
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
killall -KILL Finder |
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
- unstable: | |
-- API expansion & trial | |
-- time to test & open as many feature/support requests as imaginable | |
- alpha: | |
-- API freeze proposal | |
-- new feature requests will be considered as long as they don't imply perceptible API changes | |
-- revisit disadvantaged spots (e.g. static cache, theming support, documentation) | |
-- critical bugs should not go beyond alphas | |
- beta: | |
-- code freeze |
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
cd repository | |
git checkout --orphan orphan_name | |
git rm -rf . | |
rm '.gitignore' | |
echo "#Title of Readme" > README.md | |
git add README.md | |
git commit -a -m "Initial Commit" | |
git push origin orphan_name |
OlderNewer