IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » symlink The latest public symlink snipts.

showing 1-3 of 3 snipts for symlink
  • Replace directory symlink
    # Given symlink, target, replace it with a symlink the the directory, source
    # Tested only with directories, not sure how this would work for files
    # s - symbolic link
    # f - if the target exists, unlink it
    # h - do not follow target symlink, required for replacing a directory symlink
    ln -sfh source target
    

    copy | embed

    0 comments - tagged in  posted by jmakeig on Jan 06, 2010 at 6:46 p.m. EST
  • symlink
    #symlink
    
    ln -s path.to.dir link.name
    #(example)
    
    #| path that you want to point too| symlink name. Which is the folder or file #name that you're pointing away
    
    ln -s /var/www/vhost/domainname domain.com
    
          
    #To remove a symlink you use
    
    rm -f symlink.name
    
    #or
    
    unlink symlink.name
    

    copy | embed

    0 comments - tagged in  posted by AvidDeville on Aug 25, 2009 at 9:15 a.m. EDT
  • Symlink Python package to Python path
    #!/bin/bash
    ln -s `pwd`/$1 `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/$1
    

    copy | embed

    0 comments - tagged in  posted by kogakure on Dec 19, 2008 at 3:25 a.m. EST
Sign up to create your own snipts, or login.