Hi! Welcome to Stack Overflow! Please see the [Tour], [ask], and how to create a [mcve]. You should show some code of what you've tried.
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
$user = "your user/org" | |
$repo = "repo" | |
(gh api repos/$user/$repo/actions/runs | ConvertFrom-Json).workflow_runs | | |
%{ $_.id } | | |
%{ gh api repos/$user/$repo/actions/runs/$_ -X DELETE } | |
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
$Env:Path -Split ";" | ForEach-Object { if ($false -eq (Test-Path $_)) { Write-Output $_} } |
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
// https://www.facebook.com/pages/?category=liked&ref=bookmarks | |
// Scroll down to load all the items | |
[...document.querySelectorAll("[aria-label=Liked]")].forEach(e => e.click()) |
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
@POST | |
@Path("/") | |
public Object something(String json) | |
{ | |
Logger logger = Logger.getLogger(this.getClass().getName()); | |
logger.log(Level.INFO, json); | |
return Response.ok().build(); | |
} |
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
$teams_active = (Get-Process -Name Teams -ErrorAction SilentlyContinue).length -gt 0 | |
if ($teams_active) { | |
Write-Host "Quitting Teams" | |
Stop-Process -Name Teams | Wait-Process | |
} | |
Set-Location "${env:APPDATA}\Microsoft\Teams" | |
$caches = @("Application Cache\Cache","blob_storage","Cache","databases","GPUcache","IndexedDB","Local Storage","tmp","Cache","backgrounds") |
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
<# | |
.Synopsis | |
Runs periodic maintenance on Docker for Windows. | |
It must be run as an Administrator! | |
.Description | |
Intended to be run interactively or as a periodoc service, this will execute configurable docker prune | |
within the VM and then stop and compact the virtual machine hard disk before restarting Docker. | |
When run as a service, logs are sent to the Windows Event Log. Otherwise, progress is logged to the console. | |
.Parameter VHDX | |
Required. The complete path to your DockerDesktop virtual hard disk file, i.e., 'F:\Docker\DockerDesktop.vhdx' |
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
Get-ChildItem -File *.png | Foreach { cwebp.exe -short -noalpha -lossless $_.Name -o ($_.BaseName + ".webp") } |
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
(() => { | |
"use strict"; | |
/** | |
* Attendees to JS-Montreal often don't know if there will be pizza or not. This aims to make it more clear. | |
* Traditionally, pizza is available if the meetup starts at 6 PM, but not if it starts at 7. | |
* | |
* @see https://www.meetup.com/js-montreal/ | |
*/ |
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
#!/bin/bash | |
MERGED_INTO=${1:-"develop"} | |
statistics() { | |
echo | |
echo "Remaining local branches:" | |
git branch | |
echo | |
echo "These local branches are not merged into ${MERGED_INTO}:" |
NewerOlder