On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.
Install Homebrew Cask first if you haven’t:
brew update
brew tap caskroom/cask
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| @import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300|Josefin+Slab|Arvo|Lato|Vollkorn|Abril+Fatface|Old+Standard+TT|Droid+Sans|Lobster|Inconsolata|Montserrat|Playfair+Display|Karla|Alegreya|Libre+Baskerville|Merriweather|Lora|Archivo+Narrow|Neuton|Signika|Questrial|Fjalla+One|Bitter|Varela+Round); | |
| .background { | |
| fill: #eee; | |
| pointer-events: all; | |
| } |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| #!/bin/sh | |
| JAVA_OPTS="-Dfile.encoding=UTF-8 -Duser.timezone=UTC" | |
| PORT="8080" | |
| cd /srv/"$APP" || exit | |
| /opt/java/bin/java $JAVA_OPTS org.springframework.boot.loader.JarLauncher --bind 0.0.0.0:$PORT |
| #!/bin/sh | |
| JAR_FILE=application.jar | |
| if [ ! -f "$JAR_FILE" ]; then | |
| echo "build.error: application jar is missing!" | |
| exit 1 | |
| fi | |
| jar xf application.jar | |
| REQUIRED_JAVA_MODULES="$(jdeps \ |
| # Making here use of a docker multi-stage build | |
| # https://docs.docker.com/develop/develop-images/multistage-build/ | |
| # Build-time container | |
| FROM eclipse-temurin:17.0.3_7-jdk-alpine as builder | |
| ARG JAR_FILE | |
| WORKDIR application | |
| COPY $JAR_FILE application.jar | |
| COPY build_application.sh ./ | |
| RUN sh build_application.sh |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
Pantavanij Company Limited (the “Company”) realize the importance of the privacy and the personal data protection for the Company’s clients, customers, visitors of the website, applications or any system operated by the Company (collectively called as “you”). Thus, the Company has established the privacy policy in order to notify you about the Company’s process of collecting, using and disclosing the personal data, as well as, the rights for your personal data protection as prescribed by the applicable laws on personal data protection. This will enable you to confidently use website, applications or any system operated by the Company, including any and all services of the Company (collectively called as the “Services”).
“Personal Data” means the information relating to a person, which enables the identification of such person, whether directly or indirectly, but not including the information of the deceased persons in particular, such as name-surna
| SELECT xdr.value('@timestamp', 'datetime') AS [Date], | |
| xdr.query('.') AS [Event_Data] | |
| FROM (SELECT CAST([target_data] AS XML) AS Target_Data | |
| FROM sys.dm_xe_session_targets AS xt | |
| INNER JOIN sys.dm_xe_sessions AS xs ON xs.address = xt.event_session_address | |
| WHERE xs.name = N'system_health' | |
| AND xt.target_name = N'ring_buffer' | |
| ) AS XML_Data | |
| CROSS APPLY Target_Data.nodes('RingBufferTarget/event[@name="xml_deadlock_report"]') AS XEventData(xdr) | |
| ORDER BY [Date] DESC |
| SELECT bus.server_name as 'server', | |
| bus.database_name as 'database', | |
| CAST(bus.backup_size /1024/1024/1024 AS DECIMAL(10,2)) as 'buSize_GB', | |
| CAST(DATEDIFF(ss, bus.backup_start_date,bus.backup_finish_date) AS VARCHAR(4)) as 'buDuration_Sec', | |
| bus.backup_start_date as 'buDateStart', | |
| CAST(bus.first_lsn AS VARCHAR(50)) as LSN_First, |