$ bb toolbox.clj
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
| (require | |
| '[clojure.edn :as edn] | |
| '[clojure.java.io :as io] | |
| '[clojure.string :as str]) | |
| (defn read-workspace | |
| ([] (read-workspace ".")) | |
| ([ws-dir] | |
| (-> ws-dir |
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 bb | |
| (require '[babashka.classpath :as cp] | |
| '[babashka.deps :as deps]) | |
| (deps/add-deps '{:deps {org.corfield/deps-new {:git/url "https://github.com/borkdude/deps-new" | |
| :git/sha "76259a27c57dba4530671a3d18c610ed904297d7"} | |
| org.babashka/cli {:mvn/version "0.3.31"} | |
| org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha" | |
| :git/sha "1a841c4cc1d4f6dab7505a98ed2d532dd9d56b78"}}}) |
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 bb | |
| ;;; | |
| ; A babashka script to update all clojure -Ttools to the latest versions | |
| ; author: Tyler Wardhaugh | |
| ;;; | |
| (ns update-clj-tools | |
| (:require [babashka.fs :as fs] | |
| [babashka.process :refer [process]])) |
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
| let | |
| moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/8c007b60731c07dd7a052cce508de3bb1ae849b4.tar.gz); | |
| nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; | |
| rustStableChannel = (nixpkgs.rustChannels.stable).rust.override { | |
| extensions = [ | |
| "rust-src" | |
| "rust-analysis" | |
| "rustfmt-preview" | |
| "clippy-preview" | |
| ]; |
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
| tell application "SelfControl" to activate | |
| tell application "Usable Keychain Scripting" | |
| tell current keychain | |
| set myPass to (password of first generic item whose name contains "SelfControl") | |
| end tell | |
| end tell | |
| tell application "System Events" | |
| tell process "SelfControl" |
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
| { | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "apigateway:*", | |
| "cloudformation:CancelUpdateStack", | |
| "cloudformation:ContinueUpdateRollback", | |
| "cloudformation:CreateChangeSet", | |
| "cloudformation:CreateStack", | |
| "cloudformation:CreateUploadBucket", |
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
| <?php | |
| declare(strict_types=1); | |
| namespace Example; | |
| // Framework | |
| use Illuminate\Support\Facades\Facade; | |
| /** |
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
| body { | |
| color: #212121; | |
| font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| letter-spacing: 0.02em; | |
| } |
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
| # Breakdown of the process | |
| # NOTE: I am searching for branches merged into Develop because I'm using GiT flow | |
| # 1) git branch -r --merged develop | |
| # Get remote branches that have been merged into develop | |
| # 2) grep -v -E '(\*|master|develop)' | |
| # From those branches returned by the above command, | |
| # exclude: master, develop, & the currently selected branch (the branch name beggining with an asterisk) |
NewerOlder