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
#!/bin/bash | |
baseDirs=( /d/Git/ /d/Projects/ ) | |
let i=1 | |
echo | |
echo "Pulling git repositories..." | |
echo | |
for baseDir in "${baseDirs[@]}"; do | |
cd $baseDir | |
echo "$((i++)) - Base directory '$baseDir'" |
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
$words = (((Invoke-WebRequest -Uri "https://www.morewords.com/contains/ei/").ParsedHtml).All.Tags("p")[3] | % InnerText) -split '\n' | |
Write-Host "Total Words: $($words.Count) | |
Matching 'cei': $(($words | ? { $_ -match "cei" }).Count) | |
Matching 'ei': $(($words | ? { $_ -match "[^c]ei" }).Count)" |
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
@Injectable() | |
export class HandleUnauthorisedRequestInterceptor implements HttpInterceptor { | |
constructor( | |
private securityService: SecurityService | |
) { } | |
public intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
console.log('intercepting ' + req.method + ' to ' + req.url); | |
// Ignore all security controller requests as they're all dealt with separately | |
if (req.url.indexOf('/security/') > -1) { |
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
# Don't push anything that isn't specified in this file | |
* | |
!.gitignore | |
!.gitattributes | |
!etl.ps1 |