This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 3.0 | |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$serverName, | |
[Parameter(Mandatory=$true)] | |
[string]$databaseName, | |
[Parameter(Mandatory=$true)] | |
[string]$pathToBimFile | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Xml.Serialization; | |
using System.IO; | |
public static class Program | |
{ | |
void Main() | |
{ | |
AcceptLatestPackages(@"C:\projects\MergeMigrations_AddTableB\"); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket, thread, sys | |
import logging | |
BUFLEN = 1024 | |
logger = logging.getLogger(__name__) | |
class DLNAProxy(object): | |
MEDIASERVER_IP = "" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BoundItemView extends Backbone.Marionette.ItemView | |
events: {} | |
initialize: -> | |
@events['click .btn-primary'] = 'save' | |
@modelBinder = new Backbone.ModelBinder() | |
super() | |
onRender: () -> | |
@modelBinder.bind @model, @el, @bindings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mainrepo="mausch/solrnet" | |
urls=$(curl -s "https://github.com/api/v2/json/repos/show/$mainrepo/network" | python -mjson.tool | grep "url" | grep -vi "$mainrepo" | sed -Ee 's/.*(https.*)".*/\1/') | |
for url in $urls; do | |
remote=$(echo $url | cut -d/ -f4) | |
giturl=$(echo $url | sed -Ee 's/https/git/;s/$/.git/') | |
git remote add $remote $giturl | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ImportController << ApplicationController | |
require 'net/http' | |
require 'net/https' | |
require 'uri' | |
#THIS METHOD TO SEND USER TO THE GOOGLE AUTHENTICATION PAGE. | |
def authenticate | |
# initiate authentication w/ gmail | |
# create url with url-encoded params to initiate connection with contacts api |