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
| #Embed: { | |
| files: [string]: string | |
| } | |
| #Resource: { | |
| #embed: [string]: #Embed | *{} | |
| ... | |
| } | |
| #Deliverable: { |
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 subprocess | |
| def set_zoom_audio_muted(muted:bool): | |
| subprocess.run("""osascript -e ' | |
| on setAudioMuted(muted) | |
| activate application "zoom.us" | |
| delay 0.5 | |
| tell application "System Events" | |
| tell process "zoom.us" | |
| tell window "Zoomミーティング" |
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
| .CodeMirror-gutter-elt { | |
| display: none; | |
| } | |
| .CodeMirror-activeline .CodeMirror-gutter-elt { | |
| display: block; | |
| } |
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 java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.SocketTimeoutException; | |
| import java.net.URL; | |
| public class Main { | |
| public static void main(String[] args) throws IOException, InterruptedException { | |
| URL url = new URL("http://10.255.255.1:8080"); | |
| HttpURLConnection con = (HttpURLConnection) url.openConnection(); | |
| con.setConnectTimeout(1000); |
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
| service1: | |
| host: host1 | |
| commands: | |
| status: | |
| steps: | |
| - type: upload | |
| local: foo/bar | |
| remote: /tmp/hoge | |
| - type: script | |
| script: | |
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
| [{"id":"1a73c740.e06d79","type":"subflow","name":"Execute Shell Script","info":"","in":[{"x":100,"y":200,"wires":[{"id":"662c3c62.43d624"}]}],"out":[{"x":960,"y":280,"wires":[{"id":"9e92978.d8d0868","port":0}]},{"x":960,"y":340,"wires":[{"id":"9e92978.d8d0868","port":1}]},{"x":960,"y":400,"wires":[{"id":"9e92978.d8d0868","port":2}]}]},{"id":"dda86e6b.3b362","type":"file","z":"1a73c740.e06d79","name":"Write script file","filename":"","appendNewline":true,"createDir":false,"overwriteFile":"false","x":860,"y":140,"wires":[]},{"id":"7a2a96f.a52b268","type":"exec","z":"1a73c740.e06d79","command":"mktemp","addpay":false,"append":"","useSpawn":"","timer":"","name":"","x":420,"y":200,"wires":[["9131a546.667eb8"],[],[]]},{"id":"c9fb5364.0becc","type":"file","z":"1a73c740.e06d79","name":"Delete script file","filename":"","appendNewline":true,"createDir":false,"overwriteFile":"delete","x":1020,"y":480,"wires":[]},{"id":"9e92978.d8d0868","type":"exec","z":"1a73c740.e06d79","command":" sh ","addpay":true,"append":"","useS |
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
| site_name: My Docs | |
| site_description: hogehoge | |
| site_author: uphy | |
| copyright: my copyright | |
| dev_addr: 0.0.0.0:8000 | |
| theme: readthedocs | |
| markdown_extensions: | |
| - footnotes | |
| pages: |
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
| input { | |
| exec { | |
| command => "free -b" | |
| interval => 10 | |
| } | |
| } | |
| filter { | |
| grok { | |
| match => { | |
| "message" => ".*?Mem:\s*?%{NUMBER:total}\s*?%{NUMBER:used}\s*?%{NUMBER:free}\s*?%{NUMBER:shared}\s*?%{NUMBER:buffers}\s*?%{NUMBER:cached}\s*?\-/\+ buffers/cache:\s*?%{NUMBER:actual.used}\s*?%{NUMBER:actual.free}\s*?Swap:\s*?%{NUMBER:swap.total}\s*?%{NUMBER:swap.used}\s*?%{NUMBER:swap.free}.*" |
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
| package jp.uphy.wso2apim; | |
| import java.io.IOException; | |
| import java.security.GeneralSecurityException; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Base64; | |
| import java.util.List; | |
| import javax.net.ssl.HttpsURLConnection; |
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 org.apache.commons.httpclient.Header; | |
| import org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException; | |
| import org.wso2.carbon.registry.info.stub.RegistryExceptionException; | |
| import org.wso2.carbon.registry.resource.stub.ResourceAdminServiceExceptionException; | |
| import org.wso2.carbon.registry.resource.stub.ResourceAdminServiceStub; | |
| import org.wso2.carbon.rest.api.stub.RestApiAdminAPIException; | |
| import java.rmi.RemoteException; | |
| import java.util.ArrayList; | |
| import java.util.Base64; |
NewerOlder