If you want to add a basic auth to haproxy (on pfsense)
Global Advanced pass thru
userlist AuthRealmName
user username password ENCRYPTED_PASSWORD_HERE
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
# First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
git clone git://server.com/my-repo1.git | |
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
git filter-branch --subdirectory-filter your_dir -- -- all | |
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
Migrated to a GitHub repo: https://github.com/filviu/gh-gt-mirror
# First define your dict: | |
nfsmounts: | |
- { path: "/mnt/nfs_mount", src: "192.168.0.55:/nfsshare" } | |
- { path: "/mnt/nfs_mount_2", src: "192.168.0.55:/nfsshare_2" } | |
# Shamelessly lifted from here: | |
# https://stackoverflow.com/questions/45387791/mount-different-shares-from-nfs-on-a-linux-os-using-ansible | |
# Then loop through it: | |
- name: mount the nfsshare in client side |
# checkout a repository with branch fallback | |
repos.split(',').each { | |
echo "Checking out ${it}" | |
dir("${it}"){ | |
checkout resolveScm( | |
source: [ | |
$class: 'GitSCMSource', | |
credentialsId: '51234-5678-9101-2131', | |
id: '_', | |
remote: "[email protected]:somebody/${it}.git", |
If like me you bought a Datto Xeon-D Gigabyte motherboard here are some infos about them.
You can update at least the ipmi with stock gigabyte firmware
Also mine came with a BIOS password, I found this snippet online and indeed this was it:
By the way, if anyone bought one and needs the BIOS password, from my experience there's a 99.9% chance of it being either "R@str" or "Northern" or "NorthernLight$" (no quotes, caps as shown)
#!/usr/bin/env bash | |
# rmate | |
# Copyright (C) 2011-2018 by Harald Lapp <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
$darkString = @' | |
document.addEventListener('DOMContentLoaded', function() { | |
$.ajax({ | |
url: 'https://cdn.jsdelivr.net/gh/laCour/slack-night-mode/css/raw/black.css', | |
success: function(css) { | |
let overrides = ` | |
code { background-color: #535353; color: #85c5ff; } /* Change color: to whatever font color you want */ | |
.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; } | |
.p-threads_footer__input .p-message_input_field { background: #000 } | |
` |
This is what I tell people to do, who ask me "how do I learn to be a Linux sysadmin?"