- Create a backup of the source gitlab server with
gitlab-rake gitlab:backup:create
- Create a seperate MySQL dump of the source database using
mysqldump [...] <gitlab-database-name> > database.sql
- Create a new directory to store the mysql-dump and the docker-compose-mysql.yml; database.sql belongs into the subfolder 'mysql' (as it is set in the docker-compose.yml) ./ ./mysql/database.sql ./docker-compose-mysql.yml
- Optional: edit docker-compose-mysql.yml to use the correct database images, mysql should be the same as your source mysql (or mariadb) version, postgres should match the version used in your gitlab-docker-image
- Start the two containers using
docker-compose -f docker-compose-mysql.yml up --build -d
- Start the gitlab container using docker-compose, adding the database related configration from docker-compose-gitlab.yml to your own configuration
- Link the two containers using
docker network connect
This file contains 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
<?php | |
add_filter( 'woocommerce_cart_item_name', 'krbu_event_title', 10, 3 ); | |
function krbu_event_title($title, $values, $cart_item_key) { | |
$ticket_meta = get_post_meta($values['product_id']); | |
$event_id = absint($ticket_meta['_tribe_wooticket_for_event'][0]); | |
$venue_id = tribe_get_venue_id($event_id); | |
if ($event_id) { |
This file contains 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
# Use an official Python runtime as a parent image | |
FROM python:3.9-slim-buster | |
# Set the working directory to /app | |
WORKDIR /app | |
# Copy the requirements file into the container | |
COPY requirements.txt . | |
# Install the required Python packages |
This file contains 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
--- | |
- alias: prepare coffee notification | |
mode: single | |
trigger: | |
- platform: numeric_state | |
entity_id: sensor.kaffeemaschine_power | |
above: '80' | |
for: '00:01:30' | |
action: | |
- service: input_boolean.turn_on |
This file contains 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
================================================== | |
Starting the Dafang Hacks Custom Application Layer | |
================================================== | |
loaded common functions | |
wpa_supplicant: Successfully initialized wpa_supplicant | |
rfkill: Cannot open RFKILL control device | |
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory) | |
udhcpc: udhcpc (v1.22.1) started | |
Sending discover... | |
Sending discover... |
This file contains 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
Verifying that "darookee.id" is my Blockstack ID. https://explorer.blockstack.org/name/darookee.id |
This file contains 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 | |
# this script expects scripts named <cointag> in the minerscripts sub directory | |
# Passing 'i' to this scripts will ask before starting to mine, answer 'n' to quit | |
# or 'c' to ask for the next available coin | |
# running without arguments starts mining the first available coin | |
# | |
# Example: | |
# | |
# cat ./minerscripts/ETH |
This file contains 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
#include <ESP8266WiFi.h> | |
#include <DNSServer.h> //Local DNS Server used for redirecting all requests to the configuration portal | |
#include <ESP8266WebServer.h> //Local WebServer used to serve the configuration portal | |
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager WiFi Configuration Magic | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <EEPROM.h> | |
#include <PubSubClient.h> // https://github.com/Imroy/pubsubclient |
This file contains 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
FROM php:7.1-apache | |
RUN export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \ | |
&& apt-get update > /dev/null \ | |
&& apt-get install -yyq \ | |
git \ | |
curl \ | |
unzip \ | |
> /dev/null \ | |
&& docker-php-ext-install \ |
This file contains 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
{ curl -s "https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=$(curl -s ipv4.ipchimp.net)&port=80"|sed 's/^[^#]/ALL\: /g'; cat /etc/hosts.deny ;} |sort|uniq -u|sed 's/^#.*//g' > /etc/hosts.deny |
NewerOlder