Skip to content

Instantly share code, notes, and snippets.

View akamyshanov's full-sized avatar

Andrey Kamyshanov akamyshanov

View GitHub Profile
@akamyshanov
akamyshanov / universal-switcher
Created March 11, 2021 11:33 — forked from jthodge/universal-switcher
Show macOS app switcher across all monitors
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock
@akamyshanov
akamyshanov / gmail-auto-archive.js
Created September 18, 2018 09:29
GMail Auto Archive script for Google Scripts
function gmailAutoarchive() {
var threads = GmailApp.search("in:inbox label:auto-archive older_than:2d");
Logger.log("found " + threads.length + " threads:");
for(var i = 0; i < threads.length; i++) {
var thread = threads[i];
Logger.log((i+1) + ". " + thread.getFirstMessageSubject());
}
var batch_size = 100;
@akamyshanov
akamyshanov / nuget-pack-all.ps1
Last active August 23, 2017 08:22
Commands NuGet to pack all .nuspec files in directory
param (
[string]$Version = "0.0.0-dev",
[string]$OutputDirectory = "bin"
)
Get-ChildItem $OutputDirectory -Include "*.nupkg" -Depth 1 | Remove-Item
$nuspecs = Get-ChildItem "*.nuspec" -File -Recurse
foreach($nuspec in $nuspecs) {
nuget pack $nuspec.FullName -OutputDirectory "bin" -Version $version