SELECT
LOWER(
CONCAT(
# 1th and 2nd block are made of 6 random bytes
HEX(RANDOM_BYTES(4)),
'-',
HEX(RANDOM_BYTES(2)),
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
import { z } from 'zod' | |
interface MountBindCommon { | |
type: 'bind' | |
source: string | |
target: string | |
from?: string | |
} | |
interface MountBindReadWrite extends MountBindCommon { |
Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
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 | |
TMPFILE=$(mktemp) | |
TMPFORMATTER=$(mktemp) | |
{ | |
echo 'module.exports = (results) => {' | |
echo ' return results' | |
echo ' .filter(result => result.messages.length > 0)' | |
echo " .map(result => \`\${result.messages.length}\\t\${result.filePath.replace(/.*(src\/.*)/, '\$1')}\`).join('\\n')" |
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
#!/usr/bin/env python3 | |
# This code is available under the MIT license: https://opensource.org/licenses/MIT | |
from pathlib import Path | |
import subprocess | |
import json | |
from dataclasses import dataclass | |
from typing import List, Optional |
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 | |
NETSELECT_VERSION="0.3.ds1-29" | |
echo -n "Checking netselect installation status..." >/dev/stderr | |
INSTALLED=$(dpkg --list | egrep -iw netselect | egrep '^ii') | |
if [ "${INSTALLED}" != "" ]; then | |
echo "INSTALLED!" >/dev/stderr | |
else |
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
import React, { Component } from 'react' | |
class Conditional extends Component { | |
render () { | |
if (this.props.condition === false) | |
return null | |
return ( | |
<> | |
{this.props.children} |
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/sh | |
echo "Running initial update..." \ | |
&& sudo apt update \ | |
&& echo "Running system upgrades..." \ | |
&& sudo apt upgrade -y \ | |
&& echo "Installing dependencies..." \ | |
&& sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ |
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 | |
set $modules=\ | |
https://github.com/Aepelzen/AepelzensModules.git \ | |
https://github.com/adbrant/ArableInstruments.git \ | |
https://github.com/antoniograzioli/Autodafe-Drums.git \ | |
https://github.com/antoniograzioli/Autodafe-Drums.git \ | |
https://github.com/antoniograzioli/Autodafe.git \ | |
https://github.com/av500/vcvrackplugins_av500.git \ | |
https://github.com/sebastien-bouffier/Bidoo.git \ | |
https://github.com/bogaudio/BogaudioModules.git \ |
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 | |
require('mysql.php'); // see https://gist.github.com/paxmanchris/f5d4b94f67a8acd8cefc | |
$me = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; | |
$sso_secret = 'YOUR_SSO_PROVIDER_KEY_HERE'; | |
$discourse_url = 'http://example.com'; | |
if(!empty($_GET) and isset($_GET['sso'])){ |
NewerOlder