Interroger les metadata d'une instance AWS :
Depuis l'instance :
$ curl http://169.254.169.254/latest/meta-data/
http://docs.aws.amazon.com/fr_fr/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
| package webbr | |
| import ( | |
| "context" | |
| "errors" | |
| "io" | |
| "net/url" | |
| "regexp" | |
| "slices" |
| DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId></groupId> | |
| <artifactId></artifactId> | |
| <version>1.0.0</version> | |
| #!/usr/bin/env node | |
| var commander = require('commander'); | |
| var mongo = require('mongodb'); | |
| var moment = require('moment'); | |
| commander | |
| .version(require('./package').version) | |
| .option('-d, --database <str>', 'Database name') | |
| .option('-c, --collection <str>', 'Collection name') |
| inline fun <reified T : Any> getLogger() = LoggerFactory.getLogger(T::class.java)!! | |
| fun runInGui(runnable: () -> Unit) = SwingUtilities.invokeLater(Runnable(runnable)) | |
| class EventBus { | |
| private val publisher = PublishSubject.create<Any>() | |
| private val busExecutor = Executors.newSingleThreadExecutor() | |
| fun emit(event: Any) { |
Interroger les metadata d'une instance AWS :
Depuis l'instance :
$ curl http://169.254.169.254/latest/meta-data/
http://docs.aws.amazon.com/fr_fr/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
| db.currentOp(true) |
| #!/bin/bash | |
| sudo rm -rvf /Library/Java/JavaVirtualMachines/jdk<version>.jdk | |
| sudo rm -rvf /Library/PreferencePanes/JavaControlPanel.prefPane | |
| sudo rm -rvf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
| sudo rm -rvf /Library/LaunchAgents/com.oracle.java.Java-Updater.plist | |
| sudo rm -rvf /Library/PrivilegedHelperTools/com.oracle.java.JavaUpdateHelper | |
| sudo rm -rvf /Library/LaunchDaemons/com.oracle.java.JavaUpdateHelper.plist | |
| sudo rm -rvf /Library/Preferences/com.oracle.java.Helper-Tool.plist |
sample.com pointe notre serveur.Jenkins et Nexus derrière un reverse-proxy Nginx sécurisé par https.jenkins.sample.com pointera sur Jenkins.nexus.sample.com pointera sur Nexus.| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| root /home/myapp/webapp; | |
| index index.html index.htm; | |
| server_name www.server.com; | |
| location / { |