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
// Enable extra jetpack widgets: | |
wp-admin/admin.php?page=jetpack_modules |
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
styles | |
/includes | |
_base.scss | |
_fonts.scss | |
_functions.scss | |
_grid.scss | |
_mixins.scss | |
_normalize.scss | |
_typography-global.scss | |
_variables.scss |
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
// Search in files, excluding svn and css files | |
<open folders> ,-*.pack, ,-*.svn-base, ,-*.css |
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
<picture> | |
<source srcset="http://placehold.it/1600x686" media="(min-width: 1779px)"> | |
<source srcset="http://placehold.it/1600x600" media="(min-width: 1400px)"> | |
<source srcset="http://placehold.it/1259x472" media="(min-width: 1084px)"> | |
<source srcset="http://placehold.it/1083x609" media="(min-width:768px)"> | |
<source srcset="http://placehold.it/767x431" media="(min-width:540px)"> | |
<source srcset="http://placehold.it/539x303" media="(min-width:0)"> | |
<img srcset="http://placehold.it/1259x472" src="http://placehold.it/1259x472" alt="Placeholder with grey background and dimension watermark without any imagery"> | |
</picture> |
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
// Clone an SVN repo | |
svn co https://repourl | |
// Info | |
svn info | |
// Update / pull | |
svn up | |
// Stat (status) |
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 | |
/** | |
* Wordpress Widget that uses an ACF repeater | |
*/ | |
class HelpfulLinks extends WP_Widget{ | |
function __construct(){ | |
parent::__construct( | |
'helpful-links', |
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
// SSH over lan: | |
ssh [email protected] | |
OR: | |
ssh [email protected] | |
OR: | |
ssh [email protected] | |
// PASSWORD | |
chip |
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
// Compile SASS or SCSS once from the command line | |
// sass --update sass-directory:css-directory | |
sass --update sass:css | |
// Watch SASS or SCSS directory from the command line | |
// sass --watch sass-directory:css-directory | |
sass --watch sass:css | |
// Watch SASS or SCSS file from the command line | |
sass --watch sass/sass-file.scss:css/css-file.css |
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
// Identify a process on a specific port | |
-lsof -i :8890 | |
// Kill process, by PID: | |
sudo kill 3456 | |
// Kiill process, by port: | |
npx kill-port 3000 |
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
// TRANSLATION | |
// Translateable string, with escaping (in case there are special characters in one of the translations) | |
// This is the best choice since it catches and escapes any HTML that may be in the string | |
esc_html__( 'This is my string', 'translationdomain' ); | |
esc_html_e( 'This is my string', 'translationdomain' ); | |
// Retrieve the translation of a string | |
// Don't know why but apparently all three methods work | |
__( 'This is my string', 'translationdomain' ) |