Skip to content

Instantly share code, notes, and snippets.

@spencersteers
spencersteers / Move Google Chrome Windows.applescript
Created May 6, 2022 14:32
Move Google Chrome windows to the right side of the screen.
use AppleScript version "2.4"
use framework "Foundation"
use framework "AppKit"
use scripting additions
set primaryScreenFrame to current application's NSScreen's screens()'s firstObject()'s frame()
set primaryScreenLeft to (item 1 of item 1 of primaryScreenFrame)
set primaryScreenRight to (primaryScreenLeft) + (item 1 of item 2 of primaryScreenFrame)
set primaryScreenTop to (item 2 of item 1 of primaryScreenFrame)
set primaryScreenBottom to (primaryScreenTop) + (item 2 of item 2 of primaryScreenFrame)
@spencersteers
spencersteers / push.yml
Last active August 25, 2019 23:45
actions/example-aws main.workflow migrated to new YAML syntax
// Migrated with actions/migrate to get an idea of how to use actions/aws with the new YAML syntax
// I have not actually tested any of this out
// https://github.com/actions/example-aws/blob/f4ff58a04b5a2af87c414a72ef79c62c8fa77a1d/.github/main.workflow
on: push
name: Build and Deploy
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
dWK10aGivKlPIImkjvoLKOzbQClLQAxeKFbImmPKoMkzzifptPktdeCnLsSnvu9nqOghOQCoLsADsQsZtff19avP9rOO6Gsklus6HeQMiHsxePAJGQ4JiLgPkkDsquRufMjb1nLuv7ej)usyOuilvPYtjnvfUQuITkPk(kHIsJLqrrNfeYAjuu4TekCxqv1Ef)fugSuDyIwSuQhRQMSuCzQ2mb(SQmAc50OSAcf51kLA2k52Qu7gXVLy4u0Yr1ZP00HUUI2oi9DLIXtH68uW6vrH9dCUYiQmJGrTrPrOZf68O3rBI2Kr0hVSj6zRyhKfZOcQrnHJ2UWBCEv5F7gEXmA1f7modjVb0hLYczMrBywX0K8rgupQCTIkjFrfUrfgbJwTIXOI6hTDH34CXlRcpJqDfQRqrtOUc1EH6kuqiuTk0wcg1Ak)EOGqugbDorUQhNBzfsO2suKZEpNNruROYMkirTIkBQGu7JmOEWOnU9hvCUlrVb0BBa0fEAmkQybhIq00wVqcsB2SriCdd)IecHcP10yuuXgvKZEIWapNdbiEVTsdn7DDo8D(feGqRrW(qaIJUkYMmIYipEzAMr075czzemyuPabmJDBgrVNlKLrWGrr5YjygrVNlKLrWGr)lP1MrulJ8wE0DvqBl0dgfLlNG0Kr075czzemy0P1H9xsRnkYNEuU87ze9EUqwgbdgLxwEgrVNlKLrWGrnHAIYLtWmIEpxilJGbJkq(rwHKr075czzemy0gMabS)CHgYi69CHSmcgmy02Y)2n8IP4LvHNrOUc1vOOjuxHAVqDfkieQwfAlbJ2UWBCo9MNhLQq8OC)XkKHbtpAJbI8M9F8Y0mA7cVX5k7m8qDDEuj5lQWHhU82HhU82JkM1LBxBYL26LoX5pdG((G(UYB6rN8vuriAARxibPnYxriwbsQHrlndb0fZesBnQBSPK04nPAu5I9ir3bzAp7iQHkeiW6yO2FlTgL1ev8YDBjc61AZwmK52OsYxuHdpC5Tpmy6rv6ctx