- Boot the server into the 64bit Linux rescue system
- Run
installimage - Select Ubuntu 11.10 (oneiric) 64bit
- In the editor, where you have to set the disk partition sizes, search for following lines and remove them. The actual lines may vary if Hetzner changes anything.
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
| Easy to use Maintenance page as a Cloudflare Worker. Once set up, you can enable it for unlimited pages in your CF account. Get rid of greedy subscriptions that charge you per domain. | |
| How to: | |
| 1. Go to Cloudflare Workers and create a new Worker (url is https://dash.cloudflare.com/<your-id>/workers/new) | |
| 2. paste the Code from above | |
| 3. Set an AUTH_KEY and AUTH_VALUE and the maintenancePageHtml (optionally) | |
| 4. deploy the worker | |
| 5. goto Cloudflare and choose a domain, click on the Workers section (url is https://dash.cloudflare.com/<your-id>/<domain>/workers) | |
| 6. click on "Add Route" and set the Route you want to enable the maintenance page for (typically <domain>/*) | |
| 7. choose your previously created worker from the dropdown |
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
| e7f34b6faaa6:/var/www/html# composer require 'drupal/core-composer-scaffold:9.5.9' --with-all-dependencies | |
| ./composer.json has been updated | |
| Running composer update drupal/core-composer-scaffold --with-all-dependencies | |
| Loading composer repositories with package information | |
| Info from https://repo.packagist.org: #StandWithUkraine | |
| Updating dependencies | |
| Nothing to modify in lock file | |
| Writing lock file | |
| Installing dependencies from lock file (including require-dev) | |
| Nothing to install, update or remove |
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
| <http://www.side-sante.fr/sides> <rdf:type> <owl:Ontology> . | |
| <http://www.side-sante.fr/sides> <owl:backwardCompatibleWith> <http://www.side-sante.fr/sides/version/1.0> . | |
| <http://www.side-sante.fr/sides> <owl:versionIRI> <http://www.side-sante.fr/sides/version/2.0> . | |
| <:01_definition> <rdf:type> <:EDN_Rubric> . | |
| <:02_prevalence_epidemiology> <rdf:type> <:EDN_Rubric> . | |
| <:03_physiopathology> <rdf:type> <:EDN_Rubric> . | |
| <:04_diagnosis> <rdf:type> <:EDN_Rubric> . | |
| <:05_multimediaContent> <rdf:type> <:EDN_Rubric> . | |
| <:06_emergencyIdentification> <rdf:type> <:EDN_Rubric> . | |
| <:07_etiology> <rdf:type> <:EDN_Rubric> . |
You have to do 2 things in order to allow your container to access your host's postgresql database
- Make your postgresql listen to an external ip address
- Let this client ip (your docker container) access your postgresql database with a given user
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.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
| ;;; iterm.el - Send text to a running iTerm instance | |
| (require 'pcase) | |
| (require 'thingatpt) | |
| ;; To match SublimeText's key binding: | |
| ;; (global-set-key (kbd "<C-return>") 'iterm-send-text) | |
| (defvar iterm-default-thing 'line | |
| "The \"thing\" to send if no region is active. |
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
| // Proof-of-concept code of how to extend Spark listeners for custom monitoring of Spark metrics | |
| // When using this from the spark-shell, use the REPL command :paste and copy-paste the following code | |
| // Tested on Spark 2.1.0, March 2017 | |
| import org.apache.spark.scheduler._ | |
| import org.apache.log4j.LogManager | |
| val logger = LogManager.getLogger("CustomListener") | |
| class CustomListener extends SparkListener { | |
| override def onStageCompleted(stageCompleted: SparkListenerStageCompleted): Unit = { |
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
| [PrefixDeclaration] | |
| : http://example.org/voc# | |
| ex: http://example.org/ | |
| owl: http://www.w3.org/2002/07/owl# | |
| rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# | |
| xml: http://www.w3.org/XML/1998/namespace | |
| xsd: http://www.w3.org/2001/XMLSchema# | |
| foaf: http://xmlns.com/foaf/0.1/ | |
| obda: https://w3id.org/obda/vocabulary# | |
| rdfs: http://www.w3.org/2000/01/rdf-schema# |
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 | |
| # install the smartctl package first! (apt-get install smartctl) | |
| if sudo true | |
| then | |
| true | |
| else | |
| echo 'Root privileges required' |
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
| <style> | |
| html * { | |
| background: rgba(255, 0, 0, .1); | |
| box-shadow: 0 0 0 1px red; | |
| } | |
| </style> |
NewerOlder