GithubHelp home page GithubHelp logo

shenxianpeng / blog Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 14.39 MB

Peter Shen's Blog

Home Page: http://shenxianpeng.github.io

License: GNU General Public License v3.0

JavaScript 28.26% CSS 5.44% Stylus 39.09% EJS 24.15% Dockerfile 0.27% Makefile 2.80%
automation blog blog-article blogger cicd devops hexo shenxianpeng

blog's Introduction

Hi there, I'm Xianpeng 👋

Here's what I'm up to

  • I'm a DevOps engineer with a passion for building beautiful, efficient, and reliable code.
  • Creators and maintainers of cpp-linter and commit-check
  • Author of the WeChat official account DevOps-Engineer
  • Interested in software supply chain security and willing to contribute PyPA (merged pull requests).

If my open-source projects are useful for your company/product you can also sponsor my work on them

Connect me

shenxianpeng | Gmail shenxianpeng | Blogger shenxianpeng | ZhiHu



Recent blog posts

Profile views

blog's People

Contributors

dependabot[bot] avatar pre-commit-ci[bot] avatar shenxianpeng avatar snyk-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

blog's Issues

ERROR: Not authorized. Please check the properties sonar.login and sonar.password.

SonarCloud addon 4.60s$ sonar-scanner -Dproject.settings=sonar-project.properties INFO: Scanner configuration file: /home/travis/.sonarscanner/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: /home/travis/build/shenxianpeng/blog/sonar-project.properties INFO: SonarQube Scanner 3.0.3.778 INFO: Java 1.8.0_151 Oracle Corporation (64-bit) INFO: Linux 4.4.0-101-generic amd64 INFO: User cache: /home/travis/.sonar/cache INFO: SonarQube server 8.0.0 INFO: Default locale: "en_US", source code encoding: "UTF-8" INFO: Load global settings INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ INFO: Total time: 3.965s INFO: Final Memory: 7M/121M INFO: ------------------------------------------------------------------------ ERROR: Error during SonarQube Scanner execution ERROR: Not authorized. Please check the properties sonar.login and sonar.password. ERROR: ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging. The command "sonar-scanner -Dproject.settings=sonar-project.properties" exited with 1.

Hexo img display on left

Hexo default theme, picture will display on center, I check the file: blog\themes\landscape\source\css_partial\article.styl

  img, video
    max-width: 100%
    height: auto
    display: block
    margin: auto

change margin to left will let img display on left

  img, video
    max-width: 100%
    height: auto
    display: block
    margin: left

Add Google Ad in article body

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-3986315287795783" data-ad-slot="2662771257"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

The command "sonar-scanner -Dproject.settings=sonar-project.properties" exited with 1.

ERROR: Error during SonarQube Scanner execution
ERROR: 
The version of Java (1.8.0_151) you have used to run this analysis is deprecated and we stopped accepting it.
Please update to at least Java 11. You can find more information here: https://sonarcloud.io/documentation/upcoming/
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
The command "sonar-scanner -Dproject.settings=sonar-project.properties" exited with 1.

refer to https://sonarcloud.io/documentation/appendices/end-of-support/

open the link in a new tab/window

open the link in a new tab/window for GitHub, LinkedIn, and Feedback buttons.

The target attribute set to _blank, which tells the browser to open the link in a new tab/window, depending on the browser's settings

So need to add target="_blank"

Add google Adsense to Hexo

<script data-ad-client="ca-pub-3986315287795783" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

Change blog code code-block theme

Need to modify file: themes\landscape\source\css\_partial\highlight.styl

Old theme

highlight-background = #2d2d2d
highlight-current-line = #393939
highlight-selection = #515151
highlight-foreground = #cccccc
highlight-comment = #999999
highlight-red = #f2777a
highlight-orange = #f99157
highlight-yellow = #ffcc66
highlight-green = #99cc99
highlight-aqua = #66cccc
highlight-blue = #6699cc
highlight-purple = #cc99cc

New theme

highlight-background = #ffffff
highlight-current-line = #efefef
highlight-selection = #d6d6d6
highlight-foreground = #4d4d4c
highlight-comment = #8e908c
highlight-red = #c82829
highlight-orange = #f5871f
highlight-yellow = #eab700
highlight-green = #718c00
highlight-aqua = #3e999f
highlight-blue = #4271ae
highlight-purple = #8959a8

Organise current post by year and month folder

current all the posts under _posts folder, more than 50+ files under this folder, it's not easy to read, need to change, new structure looks like this:
all post in July 2019:

  • _posts/2019/07/post01.md
  • _posts/2019/07/post02.md

all post in Auguest 2019:

  • _posts/2019/08/post01.md

also need URL for new structure
https://shenxianpeng.github.io/2019/07/28/2019/07/git-branching-strategy/
need to change to
https://shenxianpeng.github.io/2019/07/git-branching-strategy/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.