recentpopularlog in

racl101 : totry   720

« earlier  
Using aws-cli --query Option To Simplify Output -
Nice little tutorial demonstrating how to capture AWS command output from Bash Shell scripts into variables to use in scripts.

e.g. Get the status of an RDS Instance e.g. started, stopped, starting, stopping, modifying that sort of thing. You can do it like this:

rds_instance_status=$(aws --profile my-profile rds describe-db-instances --db-instance-identifier helis-staging-rds-instance-1 --query 'DBInstances[0].DBInstanceStatus')

Note that the query option drills down the output, which, by default is returned as JSON text.
blog  tutorial  howto  example  guide  reference  capture  aws  cli  commandline  output  bash  shell  script  query  json  totry  tolearn  tounderstand 
5 days ago by racl101
How to use Python Boto3 to list Instances in Amazon AWS – Super Library of Solutions
Shows a simple example of how to begin using boto3 library for Python in the simplest of ways.

When reading through the library it's not very clear from the get go how to select a saved profile your ~/.aws/credentials directory which you create when you install the awscli tool into your development machine and configure with $ aws configure command. So here's how you quickly select a profile to create a session for boto3 and then create an s3 client for example.

session = boto3.Session(profile_name='my-profile-name')

s3_client = session.client('s3')

Now with your client you run commands. For example, to list all buckets run:

blog  tutorial  boto3  python  python2.7  aws  amazon  cli  script  howto  example  ec2  guide  reference  totry  tolearn  tounderstand 
5 days ago by racl101
Shopify/slate: Slate is toolkit for developing Shopify themes. It is designed to assist your workflow and speed up the process of developing, testing, and deploying themes to Shopify stores.
This looks promising. I tried it. However, the development mode with the local browser (localhost:8080) feature is kind of broken since you have to get your browsers to trust a self signed certificate and that's a pain in the ass.
github  shopify  toolkit  development  theme  npm  yarn  totry  tolearn  tounderstand  project 
28 days ago by racl101
Running a Python script from PHP - Stack Overflow
I haven't tried this way for myself yet. I opted to use Symfony's Process library instead.
stackoverflow  howto  execute  run  python  python2.7  script  php  within  example  guide  reference  totry 
5 weeks ago by racl101
orm - Laravel Eloquent Filter By Column of Relationship - Stack Overflow
Doesn't work all that well if the relationship property / field is defined on a table in a different database connection than the main model object that you're doing the operation on.
stackoverflow  laravel  laravel5  howto  filter  by  relationship  column  property  model  where  query  example  guide  reference  totry  tounderstand 
7 weeks ago by racl101
Portable UTF-8 – A Lightweight Library for Unicode Handling in PHP — Page Config
This tutorial introduces the idea of using the PHP portable utf8 library to handle unicode encoded characters.
blog  tutorial  guide  reference  toread  tolearn  tounderstand  unicode  handling  character  encoding  totry 
9 weeks ago by racl101
« earlier      
per page:    204080120160

Copy this bookmark:

to read