- Sign in to iCloud (or skip if you want a clean slate)
- Run all pending macOS software updates
- System Settings → General → Login Items: remove anything you don't recognize
- System Settings → Notifications: turn off for apps you don't need
- System Settings → Keyboard → Text Input → Edit: disable smart quotes, autocapitalize, period shortcut, autocorrect
- System Settings → Trackpad: enable tap to click, three-finger drag (Accessibility → Pointer Control → Trackpad Options)
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
| import os | |
| import json | |
| import backoff | |
| import logging | |
| from posthog import Posthog | |
| # SingletonMeta implementation | |
| class SingletonMeta(type): | |
| _instances = {} | |
| def __call__(cls, *args, **kwargs): |
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
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}[" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$fg[white]%}]%{$reset_color%} " | |
| ZSH_THEME_GIT_PROMPT_CLEAN="]%{$reset_color%} " | |
| ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX | |
| ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX | |
| ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY | |
| ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN | |
| ZSH_THEME_HG_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX | |
| ZSH_THEME_HG_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX |
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
| [... document.querySelectorAll('#fittingroom > div:nth-child(2) > div.fitting-room-wrapper.feed > div')].filter(item => item.innerText.includes("Sold")).map(filtered => filtered.childNodes[1].childNodes[2].click()); |
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 lastScrollHeight=0;function autoScroll(){var l=document.documentElement.scrollHeight;l!=lastScrollHeight&&(lastScrollHeight=l,document.documentElement.scrollTop=l)}window.setInterval(autoScroll,100); |
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
| document.getElementById('gateway-content').remove(); document.getElementById('app').children[0].children[0].classList = []; |
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
| import java.io._ | |
| import java.nio.charset.CharacterCodingException | |
| import cats.{ ApplicativeError, Defer, MonadError } | |
| import cats.effect._ | |
| import cats.implicits._ | |
| import com.typesafe.scalalogging.LazyLogging | |
| import scala.concurrent.duration._ |
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
| #!/usr/bin/env amm | |
| // This script converts Maven dependencies from a pom.xml to sbt dependencies. | |
| // It is based on the answers of George Pligor and Mike Slinn on http://stackoverflow.com/questions/15430346/ | |
| // - install https://github.com/lihaoyi/Ammonite | |
| // - make this script executable: chmod +x PomDependenciesToSbt | |
| // - run it with from your shell (e.g bash): | |
| // $ ./PomDependenciesToSbt /path/to/pom.xml | |
| import scala.xml._ |
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
| import $ivy.`org.typelevel::cats-core:2.1.1`, cats._, cats.implicits._ | |
| import $ivy.`org.scalatest::scalatest:3.0.8`,org.scalatest._ | |
| import $ivy.`org.scalacheck::scalacheck:1.14.0` | |
| import $ivy.`io.monix::monix:3.1.0` | |
| import $ivy.`dev.zio::zio:1.0.0-RC18` | |
| import $ivy.`org.typelevel::cats-effect:2.1.2` | |
| import $ivy.`com.github.chocpanda::scalacheck-magnolia:0.3.1` | |
| import $ivy.`io.chrisdavenport::cats-scalacheck:0.2.0` | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.concurrent.duration._ |
NewerOlder