Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
- create bare repo from bundle file
git clone --mirror myrepo.bundle my.git
Gitlab exports repositories to tar archive which contains .bundle files.
We have repo.bundle file and we want to restore files from it.
git clone --mirror myrepo.bundle my.git
A Webhook, in simple terms, is a user-defined HTTP callback. It is a mechanism for the system to notify you about an event.
In our case, we need to send messages to a particular channel in slack. Slack calls in Incoming Webhook. It is a mechanism
to send messages to your Slack Channel from external sources. These external sources could be any application or service
that is capable of sending a JSON payload over HTTP into a Slack Channel. Each Channel will be identified by a
unique Incoming Webhook URL to which you can post the message from outside. This configuration is done via the Integrations for your channel.
incoming webhook integration below the heading Incoming Webhooks.| /** | |
| * Implements hook_entity_presave(). | |
| * | |
| * @inheritdoc | |
| */ | |
| function MODULE_NAME_entity_presave(EntityInterface $entity) { | |
| if ($entity instanceof FieldableEntityInterface) { | |
| foreach ($entity->getFieldDefinitions() as $key => $value) { | |
| if ($value->getType() == 'image' && $entity->hasField($value->getName())) { | |
| $image_styles = ImageStyle::loadMultiple(); |
| #Login as root | |
| sudo su | |
| #create jdk directory | |
| mkdir /opt/jdk | |
| #uncompress, change to your file name | |
| tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk | |
| #check if files are there |
This are notes for configuration thinkfan for Fedora. This configuration procedure was followed on a Lenovo Thinkpad X1 Carbon (5th Gen) running Fedora 25.
Non standard (default) configuration was required for this machine as the default sensors are not available. Eg: /proc/acpi/ibm/thermal does not exist for this model.
An annoted configuration file has been included below. However, there is no guarentee that this will work as-is on every machine.
dnf -y install thinkfan| // Forked from https://codepen.io/gapcode/pen/vEJNZN | |
| // Get IE or Edge browser version | |
| var version = detectIE(); | |
| if (version === false) { | |
| document.getElementById('result').innerHTML = '<s>IE/Edge</s>'; | |
| } else if (version >= 12) { | |
| document.getElementById('result').innerHTML = 'Edge ' + version; | |
| } else { |
| #! /usr/bin/env node | |
| // I am ./bin/buildSitemap.js | |
| const path = require('path') | |
| const glob = require('glob') | |
| const fs = require('fs') | |
| const SITE_ROOT = process.env.SITE_ROOT || 'https://www.actionherojs.com' | |
| const SOURCE = process.env.SOURCE || path.join(__dirname, '..', 'pages', '/**/*.js') | |
| const DESTINATION = process.env.DESTINATION || path.join(__dirname, '..', 'static', 'sitemap.xml') |
Retrieve hosted zones with aws route53 list-hosted-zones then enter the zone Id below:
aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv'