open the cmd as administrator and type the following
mklink /D "C:\full route to the symlink" "C:route to the original file that you want to symlink"
in terminal: | |
sudo apt-get install unrar | |
or | |
sudo apt-get install unar | |
Then for using with archive manager: sudo apt-get install file-roller |
open the cmd as administrator and type the following
mklink /D "C:\full route to the symlink" "C:route to the original file that you want to symlink"
Usage | |
You need git to be installed for the commands below to work. Use | |
sudo apt install git | |
to do so. | |
Run the script and commands | |
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git | |
cd ubuntu-wsl2-systemd-script/ | |
bash ubuntu-wsl2-systemd-script.sh |
//the third variable is an array where you can pass any variables or complete objects | |
<?php get_template_part('template-parts/featured-image',null,[ | |
'subHead' => get_field('title_sub-head') | |
]); ?> | |
//in the part, you use the key $args to pass the parameters. | |
<?php if ( has_post_thumbnail( $post->ID ) ) : ?> | |
<section class="hero" style="background-image: url(<?php the_post_thumbnail_url(); ?>);"> | |
<?php echo $args['subHead']; // here you pass the arguments with the variable $args?> | |
</section> |
<?php | |
//next prev buttons | |
$pagelist = get_posts('sort_order=asc');//use get_pages for pages | |
$pages = array(); | |
foreach ($pagelist as $page) { | |
$pages[] += $page->ID; | |
} | |
$current = array_search(get_the_ID(), $pages); | |
$prevID = $pages[$current-1]; | |
$nextID = $pages[$current+1]; |
sudo apt install ruby | |
sudo apt install rbenv | |
sudo apt install ruby-railties | |
sudo apt install ruby-dev | |
sudo gem install rails -v 6.0.0 | |
rbenv rehash | |
rails -v |
class DospuntoceroCMS extends LeftAndMainExtension{ | |
function alternateAccessCheck(){ | |
// html display simplification | |
$lines = array('pastetext','ssmedia','separator','bold','italic','underline','strikethrough','hr','separator','styleselect','formatselect','separator','bullist','numlist','blockquote','sslink','unlink','anchor','separator','code'); | |
$config = HtmlEditorConfig::get('cms'); | |
$config->setButtonsForLine(1, $lines); | |
$config->setButtonsForLine(2, 'tablecontrols'); | |
$config->setButtonsForLine(3, null); |
add_action( 'init', function() { | |
remove_post_type_support( 'page', 'editor' ); | |
}, 10); |
<?php | |
$custom_post_type = 'team_profiles; | |
$tax_term = 'department'; | |
$terms = get_terms($tax_term); | |
foreach($terms as $term) : | |
?> | |
<h2><?= $term->name;?></h2> | |
<?php | |
$cat_posts_args = array( | |
'post_type' => $custom_post_type, |