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
| def result = "oci os multipart list -bn doggos --all".execute() | |
| def multipartObject = new groovy.json.JsonSlurper().parseText(result.text) | |
| multipartObject.data.each { | |
| println "oci os multipart abort --bucket-name ${it.bucket} --object-name ${it.object} --upload-id ${it['upload-id']} --force".execute().text | |
| } |
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 ListObjectsRequest = require('oci-node-sdk/src/codes/recursive/model/objectstorage/ListObjectsRequest.js'); | |
| const listObjectsRequest = new ListObjectsRequest(namespace, bucketName); | |
| client.listObjects(listObjectsRequest) | |
| .then((result) => console.log(result)) | |
| .catch((err) => console.log(err)) |
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
| Integer p = System.getenv("PORT")?.toInteger() ?: 9000 | |
| port(p) |
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
| { | |
| "runtime": { | |
| "majorVersion": "8" | |
| }, | |
| "type": "web", | |
| "command": "java -jar app.jar", | |
| "startupTime": "120", | |
| "notes": "notes related to release", | |
| "mode": "rolling", | |
| "home": "/", |
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
| task packageOracle(type: Zip) { | |
| dependsOn jar | |
| from configurations.runtime.allArtifacts.files | |
| from 'manifest.json' | |
| } |
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
| sourceSets.main.resources.srcDirs = [ "src/main/groovy" ] | |
| sourceSets.main.resources.includes = [ "**/conf/**" ] |
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
| jar { | |
| dependsOn configurations.runtime | |
| manifest { | |
| attributes "Main-Class": "$mainClassName" | |
| } | |
| from { | |
| configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } | |
| } | |
| archiveName "app.jar" |
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
| notifyMessage(message: Message):void { | |
| // don't notify the user of messages they sent | |
| // and only show a notification if the application | |
| // isn't visible (IE: it is minimized) | |
| if( message.author === this.currentUsername || !this.showDesktopNotification ) { | |
| return; | |
| } | |
| const notification = { | |
| title: `TWACK Message from ${message.author}`, | |
| body: message.body |
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
| // page visibility API | |
| // see: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API | |
| window.addEventListener('webkitvisibilitychange', (e) => { | |
| this.showDesktopNotification = document['webkitHidden']; | |
| }); |
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
| notifyMessage(message: Message):void { | |
| // don't notify the user of messages they sent | |
| // and only show a notification if the application | |
| // isn't visible (IE: it is minimized) | |
| if( message.author === this.currentUsername || !this.showDesktopNotification ) { | |
| return; | |
| } | |
| const notification = { | |
| title: `TWACK Message from ${message.author}`, | |
| body: message.body |
NewerOlder