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
#!/bin/bash | |
# | |
# Download and run: | |
# bash aws_s3_all_buckets.sh > aws_s3_all_buckets.csv | |
# | |
# Or call directly: | |
# bash <(curl -s https://gist.githubusercontent.com/sgasser/7e2b472a8fbb01e17001284185a617c7/raw) > aws_s3_all_buckets.csv | |
# get all buckets | |
buckets=$(aws s3api list-buckets --query "Buckets[].Name" | jq -r '.[]') |
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
<?php | |
return [ | |
/*...*/ | |
'driver' => env('SESSION_DRIVER', 'redis'), | |
/*...*/ | |
]; |
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
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
/** | |
* Runs the scheduler every 60 seconds as expected to be done by cron. | |
*/ | |
class SchedulerDaemon extends Command |
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
scheduler: php -d memory_limit=512M artisan schedule:daemon |
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
release: php artisan migrate --force && php artisan cache:clear |
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
<?php | |
$dbHost = env('DB_HOST', '127.0.0.1'); | |
$dbPort = env('DB_PORT', '5432'); | |
$dbName = env('DB_DATABASE', 'forge'); | |
$dbUser = env('DB_USERNAME', 'forge'); | |
$dbPassword = env('DB_PASSWORD', ''); | |
if (env('DATABASE_URL')) { | |
$databaseUrl = parse_url(env('DATABASE_URL')); |
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
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
git remote rename origin bitbucket | |
git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
git push origin master | |
// check not merged branches and push | |
git push origin --tag |
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
#!/bin/bash | |
git branch -D gh-pages | |
git push origin --delete gh-pages | |
git checkout -b gh-pages | |
ember build --environment production | |
find . ! -name .git ! -name publishToGithubPages.sh ! -name dist -maxdepth 1 -exec rm -rf {} \; | |
mv dist/* . | |
rm -rf dist | |
git add --all . | |
git reset HEAD publishToGithubPages.sh |