This file contains 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
killall Docker && open /Applications/Docker.app |
This file contains 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
UPDATE users | |
SET email=CONCAT('test+', id, '_', REPLACE(email, SUBSTR(email,INSTR(email,'@')+1),'amava.com')) | |
WHERE email NOT LIKE '%@amava.com'; |
This file contains 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
aws s3api put-object-acl --bucket rocksbox --key site/homepage/2024/phase1/LO-HP-Hero-Desktop.jpg --acl public-read | |
aws s3api put-object-acl --bucket rocksbox --key site/homepage/2024/phase1/LO-HP-Hero-Mobile.jpg --acl public-read | |
aws s3api get-object-acl --bucket rocksbox --key site/homepage/2024/phase1/filename.xxx |
This file contains 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
heroku config:get DATABASE_URL -a karat-development |
This file contains 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
Rails.cache.redis.keys.select {|k| k.include? 'Inventory Service'}.each {|k| Rails.cache.delete(k)} | |
Rails.cache.redis.keys.select {|k| k.include? 'Inventory Service'}.each {|k| Rails.cache.delete(k)} | |
C.all.each {|c| c.update(password: 'p@ssword!')} | |
Rails.cache.redis.keys.select {|k| k.include? 'exclusive_collab'}.each {|k| k} | |
Rails.cache.redis.keys.select {|k| k.include? 'exclusive_collab'}.each {|k| Rails.cache.delete(k)} |
This file contains 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
- @footer_headers = [ \ | |
{:link => 'link1', :name => 'name1' }, | |
{:link => 'link1', :name => 'name1' }, | |
{:link => 'link1', :name => 'name1' }] | |
div | |
- @footer_headers.each do | row | | |
- var = "" | |
- var = "focus" if row[:focus] | |
span class="#{var}" |
This file contains 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
# application.yml | |
ENABLE_RECAPTCHA: 'false' # ENABLE_RECAPTCHA: 'true' |
This file contains 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
# Fetch latest changes before merging | |
git fetch origin | |
# Push updated branch after merging | |
git push origin my-feature-branch | |
# Use rebase instead of merge (cleaner history) | |
git rebase master | |
OlderNewer