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
    
  
  
    
  | on moveMsgs(theFolder, theAccount) | |
| tell application "Microsoft Outlook" | |
| set theInbox to mail folder "INBOX" of theAccount | |
| set theSource to folder theFolder of theInbox | |
| set theMessages to messages of theSource | |
| repeat with theMessage in theMessages | |
| move theMessage to theInbox | |
| end repeat | |
| end tell | |
| end moveMsgs | 
  
    
      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
    
  
  
    
  | // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console | 
  
    
      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
    
  
  
    
  | <a href="http://mybadlink.com" target="_blank"><a href="http://mybadlink.com">http://mybadlink.com</a></a> | 
  
    
      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
    
  
  
    
  | <a href="http://mybadlink.com" target="_blank">http://mybadlink.com</a> | 
  
    
      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
    
  
  
    
  | $myarray = @() | |
| foreach ($item in $mylistofthings) { | |
| $myarray += $item.PropertyValue | |
| } | 
  
    
      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
    
  
  
    
  | $myarray = (("item1","value1"),("item2","value2"),("item3","value3")) | 
  
    
      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
    
  
  
    
  | $myarray = @() | |
| foreach ($item in $mylistofthings) { | |
| $myobj = New-Object -TypeName PSObject | |
| Add-Member -InputObject $myobj -MemberType 'NoteProperty' -Name 'Property1' -Value $item.Property1 | |
| Add-Member -InputObject $myobj -MemberType 'NoteProperty' -Name 'Property2' -Value $item.Property2 | |
| $myarray += $myobj | |
| } | 
  
    
      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
    
  
  
    
  | usage() { | |
| echo "Usage: ${0##*/} -b S3BUCKET [-d BACKUPDIR] [-c CLUSTER_NAME] [-h]" | |
| echo | |
| echo " -b S3 bucket to store backups in. Defaults to CLUSTER_NAME" | |
| echo " -c Neo4j cluster name. Defaults to value in /tmp/environment" | |
| echo " -d Local directory to create backups in. Defaults to /tmp" | |
| echo " -h Show this help message" | |
| echo " -v Verbose output" | |
| echo | |
| exit 5 | 
  
    
      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
    
  
  
    
  | $ ./neo4j-backup.sh -h | |
| Usage: neo4j-backup.sh -b S3BUCKET [-d BACKUPDIR] [-c CLUSTER_NAME] [-h] | |
| -b S3 bucket to store backups in. Defaults to CLUSTER_NAME | |
| -c Neo4j cluster name. Defaults to value in /tmp/environment | |
| -d Local directory to create backups in. Defaults to /tmp | |
| -h Show this help message | |
| -v Verbose output | 
  
    
      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 | |
| set -eE | |
| date_format="%Y-%m-%d %T.%3N%z" | |
| today=$(date +"%Y%m%d") | |
| backup_dir=/tmp | |
| cluster=$(cat /tmp/environment) | |
| s3_bucket=$cluster | |
| verbose="false" | 
OlderNewer