Skip to content

Instantly share code, notes, and snippets.

View sobakasu's full-sized avatar

Andy Williams sobakasu

View GitHub Profile
@sobakasu
sobakasu / git-tag-release.sh
Last active May 23, 2024 02:41
Script to tag releases and deploy to EY
#!/usr/bin/env zsh
zmodload zsh/zutil
zparseopts -D -E -F - \
p:=tag_prefix -prefix:=tag_prefix \
n=dry_run -dry-run=dry_run \
t:=target -target:=target \
d+:=deploy -deploy+:=deploy \
l=git_log -git-log=git_log \
h=help --help=help || exit 1
@sobakasu
sobakasu / benchmark-curl.sh
Created July 27, 2021 03:11
Benchmark url script
#!/usr/bin/env bash
# Usage:
# benchmark-curl.sh -u url [-c cookies]
# e.g.
# benchmark-curl.sh -u "https://development" -c "_session_key=....."
#
# See Chrome Developer Tools Application tab to find cookies
COUNT=50
@sobakasu
sobakasu / gist:8b690b2bd12a3268058bcb688e5be279
Last active January 7, 2018 01:05
mina deploy with rsync (does not require the server to have access to the git repository)
# added this: copy the remote cache to build path (assumed to be current directory)
task :copy_cache do
comment "Copying application to build path"
command %{cp -r "#{fetch(:cached_path)}/"* "."}
end
desc "Deploys the current version to the server."
task :deploy do
# added this: rsync application to remote cached path

Keybase proof

I hereby claim:

  • I am sobakasu on github.
  • I am sobakasu (https://keybase.io/sobakasu) on keybase.
  • I have a public key whose fingerprint is 67D9 0EC7 5E3D 5804 F09E 28D4 3EF0 6579 4B3F 411A

To claim this, I am signing this object: