This file contains 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
sudo apt install git-all | |
git clone https://github.com/kesara/deepdreamer.git | |
wget https://raw.githubusercontent.com/BVLC/caffe/master/models/bvlc_googlenet/deploy.prototxt | |
add line to deploy.prototxt file (use sudo nano deploy.prototxt) | |
force_backward: true | |
wget http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel | |
wget http://places.csail.mit.edu/model/googlenet_places205.tar.gz | |
Untar &move |
This file contains 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
clear-host | |
#depict the site hierarchy, for further analysis in R or SPSS | |
#setup csv | |
Add-Content -Path C:\SiteStructure.csv -Value '"Node","Parent","Template"' | |
function GetAllWebs($url) | |
{ | |
try | |
{ | |
$w = Get-SPWeb -identity $url; |
This file contains 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
Clear-Host | |
#my tenancy | |
#based upon | |
#https://sharepoint.stackexchange.com/questions/239489/sharepoint-pnp-powershell-how-to-provision-sub-webs-with-unique-permissions-an | |
#at this poiint this doesn not setup the association, so it doesnt work. sets up the groups nicely though | |
$UserName= "tristian2@******.onmicrosoft.com" | |
$Password = "*******" | |
$SiteUrl = "https://******.sharepoint.com" | |
$subsite = "testSubSite" | |
$subsiteTitle = "test SubSite" |
This file contains 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
//from https://github.com/tristian2/BattleShipsJS | |
var TrisCorp = TrisCorp || {}; | |
TrisCorp.BattleShips = TrisCorp.BattleShips || {}; | |
TrisCorp.BattleShips.Ship = TrisCorp.BattleShips.Ship || {}; | |
/** | |
@constructor | |
@abstract | |
*/ | |
TrisCorp.BattleShips.Ship = function() { | |
if (this.constructor === TrisCorp.BattleShips.Ship) { |
This file contains 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
//one | |
using System; | |
using System.Collections; | |
using System.Linq; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Start"); |
This file contains 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
<?xml version="1.0" ?> | |
<!-- AutoSPInstaller Sample Configuration File | |
General Instructions: | |
1. If you use the characters ' " < > & in your configuration (e.g. in passwords) you should encode them as follows: | |
' ' | |
" " | |
< < | |
> > | |
& & |
This file contains 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
/* | |
**************************************************************** | |
* File: preplog.cpp | |
* Author: David Grant(MS) | |
* Purpose: Removes lines beginning with "#" from an input | |
* text file | |
* Written to remove header lines from IIS | |
* web logs for BULK IMPORT to SQL | |
* | |
* Disclaimer: This code is to be used for sample purposes only |
This file contains 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
cls | |
$certPath = "C:\Certs\TrisOfficePnP.cer" | |
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 | |
$cert.Import($certPath) | |
$rawCert = $cert.GetRawCertData() | |
$base64Cert = [System.Convert]::ToBase64String($rawCert) | |
$rawCertHash = $cert.GetCertHash() | |
$base64CertHash = [System.Convert]::ToBase64String($rawCertHash) | |
$KeyId = [System.Guid]::NewGuid().ToString() |
NewerOlder