This is how I was able to get Gitlab CE Docker to run behind a Caddy reverse proxy, created from Portainer stack.
This has taken quite a lot of searching, so I figured that I'd write it up in a location that I could easily refer to it in the future.
There are a handful of items that are initially needed here:
- Caddy and its network
- Portainer
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 hidapi::HidApi; | |
use updatable_device::UpdatableDevice; | |
const BSL_VENDOR_ID: u16 = 0x2047; | |
const BSL_PRODUCT_ID: u16 = 0x200; | |
pub struct HIDDeviceManager { | |
hid_api: HidApi | |
} |
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
/******************************************************************************** | |
Module : I2C_SW | |
Author : 05/04/2015, by KienLTb - https://kienltb.wordpress.com/ | |
Description : I2C software using bit-banging. | |
********************************************************************************/ | |
/*-----------------------------------------------------------------------------*/ | |
/* Header inclusions */ |
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
/******************************************************************************** | |
Product: I2C - Hardware - Block | |
Module: I2C | |
Created: 12/04/2015, by KIENLTB | |
Description: I2C Driver for MSP430 | |
********************************************************************************/ | |
/*-----------------------------------------------------------------------------*/ |
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
/* | |
Stores entries in a local SQLite database | |
until they have been processed by a submit function. | |
*/ | |
package journal | |
import ( | |
"database/sql" | |
_ "github.com/mattn/go-sqlite3" | |
"sync" |
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 | |
sudo apt-get -y install cups | |
sudo apt-get -y install cups-pdf | |
# add pdf printer to cups | |
# - named files end up in ~/PDF/ | |
# - unnamed files are stored in /var/spool/cups-pdf/ANONYMOUS/, such as PDF:s created by streaming bytes over an API | |
sudo lpadmin -p cups-pdf -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf/CUPS-PDF.ppd |
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
# install fsarchiver | |
# In Fedora/RedHat system's :: yum install fsarchiver sfdisk dd | |
# In Debian/Ubuntu System :: apt-get install fsarchiver sfdisk dd | |
DEVICE_TO_BACKUP=/dev/sdb # assuming /dev/sda is where you have booted ur primary OS | |
mkdir ./backup_with_fsarchiver # create a directory | |
cd ./backup_with_fsarchiver # enter into newly created directory | |
# only get the first 512 bytes # read mbr in wiki for more details | |
dd if=$DEVICE_TO_BACKUP of=mbr count=1 bs=512 | |
sfdisk -d $DEVICE_TO_BACKUP > partition.sfdisk |
NewerOlder