Skip to content

Instantly share code, notes, and snippets.

View jclusso's full-sized avatar

Jarrett Lusso jclusso

View GitHub Profile
@acidtib
acidtib / readme.md
Created August 28, 2023 17:56
kamal + github actions

Example of Kamal deployment from Github Actions.

Add your applications .env variables to the Github repo as a repository secret, you can find this under the repo settings => secrets and variables => actions

https://github.com/username/repo_name/settings/secrets/actions

you are going to need an ssh private key that your deployment server is aware of (add public key to servers .ssh/authorized_keys) and add the ssh private key as a repo secret

create action workflows

@todgru
todgru / elasticsearch-setup-apple-macbook-pro-m1.md
Created February 9, 2023 23:52
Install Elasticsearch 7.x on Apple Macbook Pro M1 Ventura 13.2

Elasticsearch Setup Apple MacBook Pro M1

Apple MacBook Pro M1, 32 GB, Ventura 13.2

Documentation based on comments in this Github Elasticsearch issue.

Install Homebrew

@dduvnjak
dduvnjak / add_cloudflare_ips.sh
Last active March 7, 2024 15:18
Add CloudFlare IP addresses to an EC2 Security Group using awscli
# first we download the list of IP ranges from CloudFlare
wget https://www.cloudflare.com/ips-v4
# set the security group ID
SG_ID="sg-00000000000000"
# iterate over the IP ranges in the downloaded file
# and allow access to ports 80 and 443
while read p
do
@danarnold
danarnold / skiq.rb
Last active May 3, 2018 20:01
Run sidekiq queues for a project, with optional 'only' and 'except' options, based off the project's Procfile
#!/usr/bin/env ruby
abort('Procfile not found!') unless File.exists? 'Procfile'
if ARGV.select { |a| a == 'only' || a == 'except' }.size > 1
abort('Invalid arguments')
end
if ARGV.first == 'only'
@only = ARGV[1..-1]
elsif ARGV.first == 'except'