大约有 21,000 项符合查询结果(耗时:0.0425秒) [XML]
nginx 基础配置全攻略,入门这一篇就够了! - 更多技术 - 清泛网 - 专注C/C...
...就够了!nginx_basenginx 基础配置,包括ssl配置,http自动转https配置,自动加www的配置。
1、基础配置如下:
server {
listen 80;
listen [::]:80;
location / {
rewrite ^(.*)$ https://www.tsingfun.com$1 permanent;
}
}
server {
listen 443 ssl default_se...
How to duplicate a git repository? (without forking)
...
See https://help.github.com/articles/duplicating-a-repository
Short version:
In order to make an exact duplicate, you need to perform both a bare-clone and a mirror-push:
mkdir foo; cd foo
# move to a scratch dir
git clone -...
NuGet behind a proxy
...
Just in case you are using the https version of nuget (https://www.nuget.org), be aware that you have to set the values with https.
https_proxy
https_proxy.user
https_proxy.password
...
Bootstrap 3 and Youtube in Modal
...
I found this problem (or the problem I found and described at https://github.com/twbs/bootstrap/issues/10489) related to CSS3 transformation (translation) on the .modal.fade .modal-dialog class.
In bootstrap.css you will find the lines shown below:
.modal.fade .modal-dialog {
-webki...
What parameters should I use in a Google Maps URL to go to a lat-lon?
...pen Google maps on web, Android or iOS using the same URL string in form:
https://www.google.com/maps/search/?api=1&parameters
There are several modes that you can use: search, directions, show map and show street view.
So you can use something like
https://www.google.com/maps/search/?api=1...
Download a single folder or directory from a GitHub repo
...r branch.
Modify the URL for subversion. Replace tree/master with trunk.
https://github.com/lodash/lodash/tree/master/test ➜
https://github.com/lodash/lodash/trunk/test
Download the folder. Go to the command line and grab the folder with SVN.
svn checkout https://github.com/lodash/lodash/tru...
How to change the URI (URL) for a remote Git repository?
...
git remote -v
# View existing remotes
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL...
Importing CommonCrypto in a Swift framework
...???? modulemap approach
I use modulemap in my wrapper around CommonCrypto https://github.com/onmyway133/arcane, https://github.com/onmyway133/Reindeer
For those getting header not found, please take a look https://github.com/onmyway133/Arcane/issues/4 or run xcode-select --install
Make a folder ...
Installing Python 3 on RHEL
...manually:
Download (there may be newer releases on Python.org):
$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz
Unzip
$ tar xf Python-3.*
$ cd Python-3.*
Prepare compilation
$ ./configure
Build
$ make
Install
$ make install
OR if you don't want to overwrite the pyth...
Custom domain for GitHub project pages
...ou how to configure:
Root apex (example.com)
Sub-domain (www.example.com)
HTTPS (optional but strongly encouraged)
In the end, all requests to example.com will be re-directed to https://www.example.com (or http:// if you choose NOT to use HTTPS). I always use www as my final landing. Why(1,2), i...