This file contains hidden or 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
    
  
  
    
  | module vagrant-httpd 1.0; | |
| require { | |
| type httpd_t; | |
| type vmblock_t; | |
| class file { read open getattr }; | |
| } | |
| #============= httpd_t ============== | |
| allow httpd_t vmblock_t:file { read open getattr }; | 
  
    
      This file contains hidden or 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 | |
| # Here short description of this script | |
| # This is just a template to be used for writing new bash scripts | |
| ### | |
| # Based on Google Style Guide: https://google-styleguide.googlecode.com/svn/trunk/shell.xml | |
| # General remarks | |
| # * Executables should have no extension (strongly preferred) or a .sh extension. | |
| # * Libraries must have a .sh extension and should not be executable | 
  
    
      This file contains hidden or 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
    
  
  
    
  | <% blogs.each do |blog_item| %> | |
| <%= link_to 'Edit Item', edit_blog_path(blog_item) %> | |
| <%= link_to 'Edit Item', edit_blog_path(blog_item.id) %> | |
| <% end> | 
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
  
    
      This file contains hidden or 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
    
  
  
    
  | version: "2" | |
| services: | |
| web: | |
| image: jeffreywen/onica-nginx | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - /home/ec2-user/html:/usr/share/nginx/html:ro | 
I hereby claim:
- I am wenindoubt on github.
 - I am wenindoubt (https://keybase.io/wenindoubt) on keybase.
 - I have a public key ASCQm4bhlgiON4itWpi71rcsewtdjBZB3roBnv1mAfcUwQo
 
To claim this, I am signing this object:
  
    
      This file contains hidden or 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
    
  
  
    
  | import json | |
| # from your lambda layers | |
| ## create two layers | |
| ### first layer: store_into_s3.py -> store_into_s3() | |
| ### second layer: store_into_db.py -> store_into_db() | |
| from store_into_s3 import store_into_s3 | |
| from store_into_db import store_into_db | 
  
    
      This file contains hidden or 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
    
  
  
    
  | const { SQS } = require('@aws-sdk/client-sqs'); | |
| const sqs = new SQS(); | |
| const handler = async (event) => { | |
| console.log('event', event); | |
| const { id, title } = JSON.parse(event.body); | |
| await sqs.sendMessage({ | |
| QueueUrl: process.env.QUEUE_URL, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | export default { | |
| hello: { | |
| handler: 'index.hello' | |
| }, | |
| goodbye: { | |
| handler: 'index.goodbye' | |
| } | |
| }; | 
OlderNewer