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 » ludicco's snipts » server The latest server snipts from ludicco.

showing 1-3 of 3 snipts for server
  • Web.config ASP.NET MVC SQL SERVER/EXPRESS - Development x Production
    <connectionStrings>
      <remove name="LocalSqlServer" />
       <!-- DEVELOPMENT - SQLEXPRESS -->
        <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=True;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;User Instance=True" providerName="System.Data.SqlClient" />
      
      <!-- PRODUCTION - SQLSERVER -->
      <add name="ApplicationServices" connectionString="Data Source=MACHINE_NAME;Initial Catalog=DataBaseName;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>
    

    copy | embed

    0 comments - tagged in  posted by ludicco on Sep 15, 2009 at 5:57 a.m. EDT
  • IIS7 start
    Open the applicationHost.config file, located here: %windir%\system32\inetsrv\config\applicationHost.config
    
    In my instance, I need to edit the "handlers" section.
    
    Change this line:
    
    <section name="handlers" overrideModeDefault="Deny" />
    
    To:
    
    <section name="handlers" overrideModeDefault="Allow" />
    
    
    %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers
    
    appcmd unlock config -section:system.webServer/modules
    
    
    on ISS activate modules to run ISAP FastCGI ASP.NET etc...
    

    copy | embed

    0 comments - tagged in  posted by ludicco on Aug 24, 2009 at 2:43 p.m. EDT
  • Ruby FTP Server Files Transfer
    require 'net/ftp'
    
    ftp = Net::FTP.new('example.com')
    ftp.login(user = "****", passwd = "****")
    ftp.putbinaryfile("/data/images/myimage.jpg", File.basename( "/data/images/myimage.jpg" ))
    ftp.quit()
    
    #passive mode (works on railsmachine, heroku, etc)
    
    ftp = Net::FTP.open("ftp.example.com") do |ftp|
      ftp.login(user = "*****", passwd = "*****")
      ftp.passive = true
      ftp.putbinaryfile("public/data/myimage.jpg", File.basename( "myimage.jpg" ))
      ftp.quit()
    

    copy | embed

    0 comments - tagged in  posted by ludicco on May 24, 2009 at 4:59 p.m. EDT
Sign up to create your own snipts, or login.