working on it ...

Filters

Explore Public Snippets

Sort by

Found 3,457 snippets matching: domain

    public by afelicioni  362702  0  4  0

    second level domain trick

    second level domain trick: .htaccess
    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !www.dns.it
    #RewriteCond %{HTTP_HOST} (.*).dns.it
    #RewriteRule ^(.*)$ %1/$1
    
    RewriteCond %{HTTP_HOST} whois.dns.it
    RewriteCond %{REQUEST_URI} !_whois/
    RewriteRule ^(.*)$ _whois/$1 [L]
    
    RewriteCond %{HTTP_HOST} tld-info.dns.it
    RewriteCond %{REQUEST_URI} !_tld-info/
    RewriteRule ^(.*)$ _tld-info/$1 [L]
    
    RewriteCond %{HTTP_HOST} tld.dns.it
    RewriteCond %{REQUEST_URI} !_tld-info/
    RewriteRule ^(.*)$ _tld-info/$1 [L]
    
    

    public by cghersi  3336  2  6  1

    Retrieve the domain of an email in MS SQL Server

    Suppose you have a table with an 'Email' field: here is the way to retrieve just only the domain of that email, and the name of the domain without the extension (.com, .net, etc.)
    select 
      SUBSTRING(Email, 
        charindex('@', Email, 0) + 1, 
        (charindex('.', Email, charindex('@', Email, 0)) - charindex('@', Email, 0)) - 1
      ) as domainWithNoExt, 
      SUBSTRING(Email, charindex('@', Email, 0) + 1, 200) as domain
    from MyTable

    public by merqlove  2071  0  4  0

    Domain based scheme selection in Sinatra via Postgres-Schemata extension for Sequel.

    Domain based scheme selection in Sinatra via Postgres-Schemata extension for Sequel.: sinatra_schemata.rb
    before do
      case env["SERVER_NAME"]
        when /test\./
          App.db.search_path = [:test, :public]
        when /test2\./
          App.db.search_path = [:test2, :public]
      else
        App.db.search_path = [:public]
      end
    end
    
    

    public by Bobby Kozora  955  2  3  0

    Split hostname from top level domain

    Split hostname from top level domain: regex-split-hostname-tld.txt
    /([a-z]{1,})(\.)([a-z.]{1,})/g
    
    

    public by siroken3  949  0  3  0

    unix domain socketを使ってる rrdcached とのお話の仕方

    unix domain socketを使ってる rrdcached とのお話の仕方: gistfile1.txt
    socat - UNIX-CONNECT:/var/run/rrdcached.sock
    
    

    public by Geometry  1057  0  4  0

    GetUnivariateDistributions: Gets all univariate distributions (types implementing <see cref="IUnivariateDistribution"/>) loaded in the current domain.

    Gets all univariate distributions (types implementing ) loaded in the current domain.
    /// <summary>
    ///   Gets all univariate distributions (types implementing
    ///   <see cref="IUnivariateDistribution"/>) loaded in the 
    ///   current domain.
    /// </summary>
    /// 
    public static Type[] GetUnivariateDistributions()
    {
        var distributions = getTypes(typeof(IUnivariateDistribution));
        return distributions;
    }

    public by Geometry  906  0  3  0

    GetMultivariateDistributions: Gets all multivariate distributions (types implementing <see cref="IMultivariateDistribution"/>) loaded in the current domain.

    Gets all multivariate distributions (types implementing ) loaded in the current domain.
    /// <summary>
    ///   Gets all multivariate distributions (types implementing
    ///   <see cref="IMultivariateDistribution"/>) loaded in the 
    ///   current domain.
    /// </summary>
    /// 
    public static Type[] GetMultivariateDistributions()
    {
        var distributions = getTypes(typeof(IMultivariateDistribution));
        return distributions;
    }

    public by Alexander Knorr  1855  0  3  0

    DomainTrustDiagram.txt

    DomainTrustDiagram.txt: domainTrust
    digraph test {
     rankdir = LR
     
     "semikron.com" -> "skd.semikron.com"[label = "Trusts"]
     "semikron.com" -> "ski.semikron.com"[label = "Trusts"]
     "semikron.com" -> "ska.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skch.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skusa.semikron.com"[label = "Trusts"]
     "semikron.com" -> "sksk.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skza.semikron.com"[label = "Trusts"]
     "semikron.com" -> "ske.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skind.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skcn.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skdtest.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skkor.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skj.semikron.com"[label = "Trusts"]
     "semikron.com" -> "sknl.semikron.com"[label = "Trusts"]
     "semikron.com" -> "sksf.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skbr.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skuk.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skf.semikron.com"[label = "Trusts"]
     "semikron.com" -> "skhk.semikron.com"[label = "Trusts"]
     "ska.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skbr.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skch.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skcn.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skd.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skd.semikron.com" -> "prodsk.com"[label = "Trusts"]
     "skdtest.semikron.com" -> "semikron.com"[label = "Trusts"]
     "ske.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skf.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skhk.semikron.com" -> "semikron.com"[label = "Trusts"]
     "ski.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skind.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skj.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skkor.semikron.com" -> "semikron.com"[label = "Trusts"]
     "sknl.semikron.com" -> "semikron.com"[label = "Trusts"]
     "sksf.semikron.com" -> "semikron.com"[label = "Trusts"]
     "sksk.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skuk.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skusa.semikron.com" -> "semikron.com"[label = "Trusts"]
     "skza.semikron.com" -> "semikron.com"[label = "Trusts"]
    }
    
    
    

    public by lbottaro  3625  1  8  3

    Dalekjs - Define a simple functions file

    This file contains a sample of utility functions you can import in your web automation test file, using dalekjs testing tool. You can specify the argument to pass to the method: here the 'domain' argument is used into the method. More info about dalekjs tool here Site: dalekjs.com
    module.exports = {
    S2CLogout: function (domain, test) {
      console.log('Domain is:', domain);
      test
        .open(domain+'/Access/Logout')
        .done();
    }
    };

    public by micurs  2843  1  7  0

    Find all Internal Links

    Regular expression that find all links that start with the sites domain, a slash, relative file path, or a hashtag. This regex can be used to find all the internal links in a page or section of a page.
    var siteURL = "http://" + top.location.host.toString();
    
    var $internalLinks = $("a[href^='"
             + siteURL
             + "'], a[href^='/'], a[href^='./'], a[href^='../'], a[href^='#']");
    • Public Snippets
    • Channels Snippets