Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Fetching scripts
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Github repository = To download and update github scripts Make a text file "github.sh" and make it executable <source lang="bash"> chmod u+x github.sh </source> Put this in the file, modify the first 2 lines <source lang="bash"> #!/bin/bash -e pymolscripts=/home/tlinnet/Software/pymol/Pymol-script-repo pymoldir=/home/tlinnet/Software/pymol if [ -d $pymolscripts ]; then echo "### Script library exist, updating it ###" cd $pymolscripts git pull fi if [ ! -d $pymolscripts ]; then echo "### Script library does not exist, downloading it ###" sudo apt-get install git git clone https://github.com/tlinnet/Pymol-script-repo.git $pymolscripts t="'" if grep -Fxq "import sys" ~/.pymolrc then echo "# 'import sys' already exist in ~/.pymolrc #" else echo "# Adding 'import sys' to ~/.pymolrc #" echo "import sys" >> ~/.pymolrc fi if grep -Fxq "sys.path.append($t$pymolscripts$t)" ~/.pymolrc then echo "# sys.path.append($t$pymolscripts$t) already exist in ~/.pymolrc #" else echo "# adding sys.path.append($t$pymolscripts$t) to ~/.pymolrc #" echo "sys.path.append($t$pymolscripts$t)" >> ~/.pymolrc fi fi </source> == Changes to Github repository == You can do it online, https://github.com/tlinnet/Pymol-script-repo Make yourself a user on https://github.com/ Locate token at: Account settings -> Account admin -> API Token Configure git <source lang="bash"> git config --global user.name "Your Name" git config --global user.email you@example.com git config --global github.token 0123456789yourf0123456789token cat ~/.gitconfig git remote show origin git remote set-url origin https://GITUSERNAME@github.com/GITUSERNAME/Pymol-script-repo.git git remote show origin </source> And see cheat sheet here http://help.github.com/git-cheat-sheets/ Scheduling the editing or addition of all files to the next commit <source lang="bash"> git add . </source> Checking the status of your repository <source lang="bash"> git status </source> Committing files <source lang="bash"> git commit -m "First import" </source> Push the changes to remote repository <source lang="bash"> git push origin master </source> == Read more here == http://learn.github.com/p/intro.html http://gitref.org/branching/#merge https://github.com/features/projects/codereview == Test to fetch script from github == <include src="https://github.com/tlinnet/Pymol-script-repo/blob/master/README" />
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Fetching scripts
(section)
Add topic