- On part sur une base de Ubuntu 16.04 LTS.
- On prend pour hypothèse que le domaine
sample.compointe notre serveur. - On va installer
JenkinsetNexusderrière un reverse-proxyNginxsécurisé par https. - Le domaine
jenkins.sample.compointera surJenkins. - Le domaine
nexus.sample.compointera surNexus.
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
| 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 / { |
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 | |
| 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 |
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
| db.currentOp(true) |
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
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
| 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) { |
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
| #!/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') |
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
| <?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> | |
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
| DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" |
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 webbr | |
| import ( | |
| "context" | |
| "errors" | |
| "io" | |
| "net/url" | |
| "regexp" | |
| "slices" |
OlderNewer