Go to terminal
Shortcut key: alt+f2 (type: gnome-terminal)
Gain root access by having following command (it will ask your root password).
/** | |
* Returns site feature set markup | |
* @return String - html markup of features | |
*/ | |
function getFeatureSet() { | |
$pages = wire('pages')->find("template=conversion-feature"); | |
if (!count($pages)) return ''; | |
$out = ''; | |
$config = wire('config'); | |
$perPage = 3; |
// Credit Source: | |
// http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ | |
// -------------------------------------------- | |
// box-sizing to border-box | |
// -------------------------------------------- | |
html { | |
box-sizing: border-box; |
push = refs/heads/master:refs/heads/gh-pages | |
push = refs/heads/master:refs/heads/master |
grep -Ril "text-to-find-here" "directory path"
i
stands for upper/lower case (optional in your case).R
stands for recursive.l
stands for "show the file name, not the result itself`.grep -rnw 'directory' -e "pattern" # this works for me all the time.
r
is recursiven
is line numbermysqldump -u root -p --all-databases > all_dbs.sql |
g++ foo.c
where foo.c
is the name of the program to be compiled. This will produce an executable in the same directory called a.out
which you can run by putting this in your terminal - ./a.out
g++ -o output foo.c
This will compile foo.c
and you can type ./output
to run the compiled code.
<?php | |
/** | |
* Checking the MySQL connection | |
*/ | |
// Host name | |
$host = "localhost"; | |
// MySQL username | |
$username = "databaseusername"; |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 11, | |
"hot_exit": false, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"remember_open_files": false, | |
"rulers": [80], |
var nocache = $.cookie('nocache'); | |
if($(window).width() < 768) { | |
if(nocache === null) { | |
// set nocache cookie to bypass ProCache | |
$.cookie('nocache', 1, { path: '/' } ); | |
// do a redirect back to current page to bypass ProCache | |
window.location.href = './'; | |
} | |
} else if(nocache != null) { | |
// re-enable ProCache as window width >= 768 |