OSX Sierra version 10.12.6
if you are getting error like
ERROR: Could not find a valid gem '<some package name>' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
test your TLS v1.2 support
$('p').each(function() { | |
var word = $(this).html(); | |
var index = word.indexOf(' '); | |
if(index == -1) { | |
index = word.length; | |
} | |
$(this).html('<span class="first-word">' + word.substring(0, index) + '</span>' + word.substring(index, word.length)); | |
}); |
1. Simple (Node.js LTS, Gulp, rimraf, NCU): | |
sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config | |
2. Advanced (Node.js LTS, Gulp, rimraf, NCU, Ruby, Jekyll, Jekyll paginate) | |
sudo apt-add-repository -y ppa:brightbox/ruby-ng; sudo apt-get update; sudo apt-get -y install curl ruby2.5 ruby2.5-dev gcc make g++ libffi-dev; curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; sudo apt-get -y install nodejs; sudo gem i jekyll; sudo gem i jekyll-paginate-v2; sudo npm i -g gulp rimraf npm-check-updates bower; sudo chown -R $USER:$(id -gn $USER) /home/$USER/.config | |
3. Длинна командной строки (добавить PROMPT_DIRTRIM=3 в конец и сохранить файл): | |
sudo nano ~/.bashrc | |
PROMPT_DIRTRIM=3 |
function disable_new_posts() { | |
// Hide sidebar link | |
global $submenu; | |
unset($submenu['edit.php?post_type=CUSTOM_POST_TYPE'][10]); | |
// Hide link on listing page | |
if (isset($_GET['post_type']) && $_GET['post_type'] == 'CUSTOM_POST_TYPE') { | |
echo '<style type="text/css"> | |
.page-title-action { display:none; } | |
</style>'; |
$('.js-scroll-to').on('click', function(e) { | |
e.preventDefault() | |
$('html, body').animate({ | |
scrollTop: $($(this).attr('href')).offset().top | |
}, 1000); | |
}) | |
if ($(window.location.hash).length > 1) { | |
$("html, body").animate({ | |
scrollTop: $(window.location.hash).offset().top |
git credential-manager delete https://github.com |
OSX Sierra version 10.12.6
if you are getting error like
ERROR: Could not find a valid gem '<some package name>' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect retur
test your TLS v1.2 support
var slick_slider = $('.latest-topics') | |
var settings_slider = { | |
infinite: false, | |
autoplay: false, | |
dots: false, | |
arrows: false, | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
cssEase: 'ease', | |
speed: 300, |
ul > li:nth-last-of-type(-n+2) { | |
background: green; | |
} |