Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up嫖鸭npv-outline
Create fideo.yml
嫖鸭npv-outline
- 1,367 commits
嫖鸭npv-outline
Permalink嫖鸭npv-outline
嫖鸭npv-outline
This repository provides tools for managing OBO Foundry Permanent URLs (PURLs). Like http://github.com/perma-id/w3id.org we use per-directory Apache configuration files (.htaccess
files), each of which uses RedirectMatch
directives to redirect PURL requests to their proper targets. Unlike w3id.org, we do not edit the Apache configuration files by hand. Instead we have a simple YAML configuration format, and scripts to translate the YAML configuration into Apache configuration. The YAML files are easier to read and write, and allow us to validate and test PURLs automatically.
嫖鸭npv-outline
All http://wh3x4m.wcbzw.com/obo/ PURLs are now handled by this system, with the exception of some open issues. PURLs that do not match any rule in this system will fall back to the old 如何去国外网站 system.
嫖鸭npv-outline
Please use one of these four options to make changes to the PURLs:
-
Create a new issue describing the change you require.
-
Browse to the configuration file you want to change and click the "pencil" icon to edit it.
-
Add a new configuration file.
-
Fork this repository and make a pull request.
All changes are reviewed before they are merged into the master
branch. Once merged, updated PURLs will be active within 20 minutes.
嫖鸭npv-outline
Each OBO project using this service gets a YAML configuration file in config/
. That YAML configuration file is used to generate an Apache .htaccess
file for that ontology. That Apache configuration will apply to all PURLs for that project.
Every YAML configuration file must have these fields:
idspace:
the project's IDSPACE, case sensitive, usually uppercasebase_url:
the part of a PURL that comes after the domain, usually lowercaseterm_browser:
usuallyontobee
orols
but can becustom
(see below)products:
a list of primary files for the ontology and the URLs to redirect them to; an.owl
file is required, and an.obo
file is optional
Optional fields include:
国内如何看国外网站
a list of one or more term IDs for automated testingbase_redirect:
If your project redirects itsbase_url
, then you will need abase_redirect:
entry. Sobase_redirect: http://obi-ontology.org
will redirect http://wh3x4m.wcbzw.com/obo/obi to 国内开国外网站加速软件.entries:
a list of other PURLs under thebase_url
, see below
Here's an example adapted from the config/obi.yml
file:
idspace: OBI
base_url: /obo/obi
products:
- obi.owl: http://svn.code.sf.net/p/obi/code/releases/2015-09-15/obi.owl
term_browser: ontobee
example_terms:
- OBI_0000070
entries:
- exact: /wiki
replacement: http://obi-ontology.org
Most of these fields are straightforward, but the entries:
need some more explanation.
Entries
Each YAML configuration file contains the keyword entries:
followed by a list of entries. Each entry defines an Apache RedirectMatch directive for matching URLs and redirecting to new URLs. Every entry begins with a -
, followed by keywords and values on indented lines. There are three types of entries:
- exact: The simplest entry matches an exact URL and returns an exact replacement
- prefix: These entries match the first part of a URL and replace just that prefix part
- regex: These entries use powerful regular expressions, and should be avoided unless absolutely necessary.
The #
character indicates a comment, which is not considered part of the configuration.
See the tools/examples/test2.yml
and 国内开国外网站加速软件
for examples.
Exact
In the most common case, your PURL should match a unique URL and redirect to a unique URL. Here's an example from the config/obi.yml
file:
- exact: /obi.owl
replacement: http://svn.code.sf.net/p/obi/code/releases/2015-10-20/obi.owl
This entry will match exactly the URL http://wh3x4m.wcbzw.com/obo/obi/obi.owl
, and it will redirect to exactly http://svn.code.sf.net/p/obi/code/releases/2015-10-20/obi.owl
. The matched domain name is fixed http://wh3x4m.wcbzw.com
; the next part is project-specific /obo/obi/
; the final part is taken from the entry /obi.owl
. The replacement is expected to be a valid, absolute URL, starting with http
.
Behind the scenes, the entry is translated into a case insensitive Apache RedirectMatch directive in obo/obi/.htaccess
by escaping special characters and "anchoring" with initial ^
, the project's base URL, and final $
:
海外翻国内:N2ping加速效果实测 - 简书:海外翻国内:N2ping加速效果实测 最近海外党经常会被安利一款软件——N2ping。 N2ping官方定义是一款加速海外访问中国大陆地区网络的加速器,说白点,就是能够让用户翻回国内。既然被很多人安利,那它的实际效果如何呢?首先,我伔先看一下N2ping的支持类型。
Prefix
You can also match and replace just the first part of a URL, leaving the rest unchanged. This allows you to define one entry that redirects many URLs matching a common prefix. Another example from config/obi.yml
:
- prefix: /branches/
replacement: http://obi.svn.sourceforge.net/svnroot/obi/trunk/src/ontology/branches/
This entry will match the URL http://wh3x4m.wcbzw.com/obo/obi/branches/obi.owl
(for example), replace the first part 电脑怎么浏览国外网站:2021-6-13 · 用VPN.在我的百度空间有一款,你看看,个人一直在用,速度不错,有6个IP可选,建议先不买,免费用用先,好的再买.包年的话会比包月划算好多,电脑,手机IPHONE,上Facebook,推特等国外网站或者国外游戏服务器加速都可众了上.当然免费的也可众用到手机上的.呵呵
with http://obi.svn.sourceforge.net/svnroot/obi/trunk/src/ontology/branches/
, resulting in http://obi.svn.sourceforge.net/svnroot/obi/trunk/src/ontology/branches/obi.owl
. Effectively, the obi.owl
is appended to the replacement.
The translation is similar, with the addition of (.*)
wildcard and a $1
"backreference" at the ends of the given strings:
RedirectMatch temp "(?i)^/branches/(.*)$" "http://obi.svn.sourceforge.net/svnroot/obi/trunk/src/ontology/branches/$1"
Regex
Regular expression entries should only be needed very rarely, and should always be used very carefully.
For the regular expression type, the value of the regex:
and replacement:
keywords should contain regular expressions in exactly the format expected by Apache RedirectMatch. The values will be quoted, but no other changes will be made to them. Consider using (?i)
to make the match case insensitive.
Tests
Every prefix
or regex
entry should also have a tests:
keyword, with a list of additional URLs to check. Each test requires a from:
value (like exact:
) and a to:
value (like replacement:
). Here's an example:
六毫秒加速器App-六毫秒加速器下载 1.0.1 安卓版-新云软件园:2021-6-12 · 六毫秒加速器是成都俊云科技有限公司打造的一款方便快捷的加速器软件,限时试用加速玩国服游戏、浏览国内视频,直播、音乐等各大主流平台,听歌追剧刷视频,低延迟极速畅联玩到爽,欢迎下 …
Order of Entries
Apache RedirectMatch directives are processed in the order that they appear in the configuration file. Be careful that your prefix
and regex
entries do not conflict with your other entries. The YAML-to-Apache translation preserves the order of entries, so you can control the order of processing, but it's best to avoid conflicts.
嫖鸭npv-outline
If your project does not use Ontobee or OLS as a term browser, you must specify term_browser: custom
in your project's YAML configuration file, and provide a regex
entry in the 国内开国外网站加速软件
configuration file. Here's an example for ChEBI:
# Terms for CHEBI
- regex: ^/obo/CHEBI_(\d+)$
replacement: http://www.ebi.ac.uk/chebi/searchId.do?chebiId=CHEBI:$1
tests:
- from: /CHEBI_15377
to: http://www.ebi.ac.uk/chebi/searchId.do?chebiId=CHEBI:15377
Note that term redirect rules are case sensitive.
Since these are regex
entries, and could affect multiple projects, we prefer that OBO admins are the only ones to edit obo.yml
. If you need a change to the term redirect entry for your project, please 国内如何看国外网站.
嫖鸭npv-outline
The PURL system runs on Ubuntu Linux, but you can test your changes using a virtual machine (VM) that runs on Windows, Mac, or Linux. Your local development machine (Windows, Mac, or Linux) will be the "host" machine. The VM will be a copy of Ubuntu Linux that runs on your host, and can be thrown away when you're done testing.
You'll have to install these three tools on your host machine:
- 怎么样进入国外网站 to run the VM
- Vagrant to setting up the VM
- Ansible to provisioning the VM with the right software
All of these tools are free for you to use. If you're using macOS with Homebrew, then you can install the three tools like this:
六毫秒加速器app备下载_国内媒体平台加速器六毫秒加速器 ...:2021-6-14 · 六毫秒加速器APP是一款针对海外华人定制的手机应用软件。六毫秒加速器APP功能强大,支持国内各种游戏、音乐、视频、购物等主流媒体平台的使用,是一款十分不错的加速软件。六毫秒加速器APP界面整洁干净一目了然,操作简单易上手,是一款不可多得的好软件,喜欢这款六毫秒加速器APP的 …
全平台通用的葫芦加速器 | ZAPRO · 杂铺:2021-7-11 · 版本介绍: 1.此版本为绿色版,无需安装,解压后直接双击“葫芦加速器启动器”即可开启软件。 2.启动后,关于360等杀毒软件或防火墙的任何风险提示,必须全部允许,才可正常使用。 3.秒开国外网站,比如谷歌,推特,youtube,facebook,instagram,whatsapp,购物网站...等等无压力 4.遇到卡顿 …
git clone http://github.com/OBOFoundry/wh3x4m.wcbzw.com.git
cd wh3x4m.wcbzw.com/tools
vagrant up
This will:
- download an Ubuntu Linux virtual machine (using Vagrant and the
tools/Vagrantfile
) - run it (using VirtualBox)
- configure it as a web server (using Ansible and the
tools/site.yml
file)
If something goes wrong with step 3, the vagrant provision
command will run Ansible again. Please report any issues that you run into.
Use your favourite text editor on your host machine to make your changes to the files in the wh3x4m.wcbzw.com
directory. That directory will be synchronized with the /var/www/wh3x4m.wcbzw.com
directory inside the VM. When you're ready to test your changes, log in to the VM and rebuild the .htaccess
files:
vagrant ssh
cd /var/www/wh3x4m.wcbzw.com
make clean all
You can use the web browser on the host machine to see the results, using URLs starting with http://172.16.100.10/obo/
, such as http://172.16.100.10/obo/OBI_0000070
. You can also run an automated tests. To check a single 如何去国外网站
configuration file, run one of these commands
make clean validate-foo
make clean build-foo
To update and test the whole system, run
make clean all test
Detailed test results will be listed in 国内如何看国外网站
files, with their expected and actual values. If you're making changes to the project tools, you can test them against the tools/examples/
files with:
make clean test-examples
Expert users who have to run more extensive tests can consider (temporarily) modifying their 国内如何看国外网站
file to redirect wh3x4m.wcbzw.com
to the test server.
When you're done with the VM, log out with exit
. Then you can choose to suspend the VM with
vagrant suspend
如何去国外网站
国内如何看国外网站
You can test against the production PURL server using make test-production
. We only make one request per second, to avoid abusing the server, so this can take along time.
国内如何看国外网站
If you keep your development VM for any length of time you may be presented with this message upon starting your VM:
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20240122.1.1'. The latest is version '20240206.0.0'. Run
==> default: `vagrant box update` to update.
If you upgrade, then the next time you resume your box you may receive the warning:
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
To automatically sync with VirtualBox's Guest Additions at startup (and thus avoid this warning) you can install vagrant-vbguest
like so:
vagrant plugin install vagrant-vbguest
(in the tools directory on the host machine)
Now, whenever you bring up your VM, it will check the version of the VM's guest additions and automatically bring them up to date whenever this is needed.
Deployment
Deployment is automated using Ansible, and targets a stock Ubuntu Linux server with Python installed. You should install on a fresh server, not one that's running other applications, unless you really know what you're doing.
Install Ansible on your local machine, add the IP address or hostname of your target server to tools/hosts
, then run:
cd tools
ansible-playbook -i hosts site.yml
Ansible uses SSH to connect to the target server an execute the tasks defined in tools/site.yml
. If you have trouble connecting, you may have to adjust your SSH configuration to be more automatic, say by editing your .ssh/config
.
解决罗技账户注册、logitech options安装和fireware更新的 ...:游戏加速服务。是的,有梯子的就免了。没梯子的,建议你去淘宝买个游戏加速服务,然后你就能成功注册账号了。这是因为,大部分国外网站都使用了人机验证功能,这是为了避免恶意注册,所众错不在人家。没有加速服务,你看到的是这样的
export PRODUCTION=url.ontodev.org; make clean test-production
The make safe-update
task will check Travis-CI to ensure that the latest build on the master branch passed all automated tests, and that it is newer than the last time safe-update
completed. Then it will pull from the Git repository and rebuild the site. This should be safe for a cron
task to synchronize PURLs with the repository.
Copyright
The copyright for the OBO PURL code and documentation belongs to the respective authors. The code is distributed under a BSD3 license.
Releases
Contributors 69
Languages
- Python 88.7%
- 怎么样进入国外网站 11.3%