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
//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 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
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 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
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 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
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 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
#In confluence watch out for page hierarchy | |
Import-Module ConfluencePS | |
$Username = '************@gmail.com' | |
#generate a key from here https://id.atlassian.com/manage-profile/security/api-tokens | |
$Key = '******************************************' ` | |
| ConvertTo-SecureString -AsPlainText -Force | |
$Credentials = New-Object System.Management.Automation.PsCredential($Username,$Key) | |
#Set-ConfluenceInfo -BaseURI 'https://********.atlassian.net/wiki' -Credential $Credentials | |
Get-ConfluenceSpace |
OlderNewer