backup - 4

If you want to see the files inside the untracked folder:
git status -u

Drupal Console.
composer require drupal/console:~1.0.0@rc
然后到bin下就可以运行drupal命令了

 
curl -I https://newtworks.nokia.com
返回response头

这个功能不能随便用 小心把文件删掉了 再也找不回来了 我xx
git clean -i -fd

当修改了很多地方 然后发现好像不对 于是我们就回退到上一个的状态
git reset --hard

//cookie最常用也是最重要的一个功能就是为了存储session_id和session_value

$cookie = \Drupal::request()->cookies;
kint($cookie->all());
'SESS4cb22898d10ea6c86a6671bad1b7d402' => string(43) "F_x_Aamto6NvO6_Uk2KnUdXp2CRkQzFkqB3Ab0lXR_A"
----
<span class="glyphicon-spin"></span>

----
/**
 * Implements hook_preprocess_HOOK() for block.html.twig.
 */
function template-name_preprocess_block(&$vars) {
  if($vars['derivative_plugin_id'] == 'add-block-id-name') {
    //-- This stops the block being cache in drupal 8
    $vars['#cache']['max-age'] = 0;

  }
    
    
rewrite redirect
http://htaccess.madewithlove.be/
http://www.urlitor.com/

  RewriteCond %{HTTP_HOST} networks.nokia.com$ [NC]
  RewriteCond %{HTTPS} off
  RewriteCond %{SERVER_PORT}=80
  RewriteCond %{QUERY_STRING} (randomstringabc) [NC]
  RewriteRule ^(.*) https://dev2-publish.networks.nokia.com/custom-random [L,R=301,QSD]

[local mysql]
winpty mysql -u root -p

eclipse
查找类: ctrl + shift + t
哪些类扩展或者实现了这个类: 光标在类名上,按住f4键
                            光标在类名上,按住ctrl + t键

打开运行
win+r

安装node.js
到其官网点击下载一路next,其中包含node和npm[可以用node -v和npm -v来验证]
安装less
npm install -g less

左边变量右边条件
RewriteCond %{REQUEST_FILENAME} !-f
path变量隐藏和左边的正则比对->确定是否调到右边
RewriteRule ^/a\.html$  /b.html   [L]

可以在任何目录名打开windows命令行
点击文件名
按住shift键
右键出现打开命令行工具

git for-each-ref --format '%(refname) %09 %(taggerdate) %(subject) %(taggeremail)' refs/tags  --sort=taggerdate
git log --tags --simplify-by-decoration --pretty="format:%ci %d" | grep xx.x
git log --tags --pretty="format:%ci %d" | grep xx.x

composer就是一个下载工具
但是其解决了依赖的问题
还提供一些下载源

猜你喜欢

转载自www.cnblogs.com/qinqiu/p/9803826.html