- https://coreskills.mmodrow.rocks
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
| /* ************************************************************************* | |
| * Filter TimeCamp Location Report for specific Locations (e.g. to check | |
| * home office days vs. on premise days). | |
| * ************************************************************************* | |
| * Goto https://app.timecamp.com/app#/location | |
| * Filter the desired time span etc. | |
| * Inspect result of https://app.timecamp.com/location/index in your browser | |
| * dev tools network analysis. | |
| * ************************************************************************* */ |
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
| function Get-AsStacks{ | |
| param([int]$count, [int]$size = 64, [string]$stackLabel = "Stacks") | |
| [float]$divisor = [float]([float]$count / [float]$size) | |
| $floatingPointDigits = $divisor % 1 | |
| $stacks = $divisor - $floatingPointDigits | |
| $singles = [int]($floatingPointDigits * $size) | |
| Write-Host ("$stacks $stackLabel + $singles") | |
| } |
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
| $killPrintSpoolContent = { | |
| Write-Host "Stopping print spooler." | |
| Stop-Service -Name "Spooler" -Force -ErrorAction Continue | |
| $queue = Get-ChildItem -Path "C:\WINDOWS\system32\spool\PRINTERS" -ErrorAction Continue | |
| Write-Host "Deleting following print jobs from spooler:" | |
| Write-Host $queue | |
| $queue | Remove-Item -ErrorAction Continue | |
| Start-Service -Name "Spooler" -ErrorAction Continue | |
| Write-Host "Starting print spooler." | |
| Read-Host “Press ENTER to continue...” |
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
| param ( | |
| # path the to a file with the response of https://overcast.fm/account/export_opml/extended | |
| [string]$inputFileName = "overcast_all.opml", | |
| [bool]$playedOnly = $true, | |
| # 0: title only; 1: adds user manipulation data; 2: adds publishing data; 3: adds overcast metadata | |
| [int]$verbosity = 1 | |
| ) | |
| $ompl = [xml](Get-Content $inputFileName) |
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
| var prefix = "somePrefix"; | |
| Array.from(document.querySelectorAll("a[href^='" + prefix + "']")).map(function(a){return console.log(a.href)}); |
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
| // ==UserScript== | |
| // @name CSS adder | |
| // @namespace http://css.com/ | |
| // @version 0.1 | |
| // @description Adds styles to a site | |
| // @author Marc A. Modrow | |
| // @match http*://*css.com*/* | |
| // @grant none | |
| // ==/UserScript== |
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 | |
| filter="ACDM" | |
| for i in "$@" | |
| do | |
| case $i in | |
| -A) | |
| filter="${filter//A}" | |
| ;; | |
| -C) | |
| filter="${filter//C}" |
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 | |
| for url in "$@" | |
| do | |
| statusCode=$(curl -i -s -L "$url" | grep HTTP/ | tail -1 | awk '{print $2}') | |
| echo "$statusCode $url" | |
| 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
| (new Number(3735928559)).toString(16) |