This file contains hidden or 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 -e | |
BUCKET_NAME="$1" | |
curl -s --user $CB_USER http://localhost:8091/pools/default/buckets/${BUCKET_NAME}/scopes | jq -r .uid |
This file contains hidden or 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
[Unit] | |
Description=Apache Tomcat 9 Web Application Server | |
Documentation=https://tomcat.apache.org/tomcat-9.0-doc/index.html | |
After=network-online.target | |
Wants=cloud-final.service | |
[Service] | |
# Configuration | |
Environment="CATALINA_HOME=/usr/share/tomcat9" |
This file contains hidden or 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
""" | |
Generate private/public keys for use in Google Pay Business Console | |
https://pay.google.com/business/console/ | |
""" | |
import base64 | |
from cryptography.hazmat.primitives.asymmetric import ec | |
from cryptography.hazmat.primitives import serialization | |
# Generate the ECDSA private key |
This file contains hidden or 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
""" | |
Migrates SendGrid templates from one account to another. | |
Requires a `.env` file with the following variables: | |
- SOURCE_SENDGRID_API_KEY | |
- DESTINATION_SENDGRID_API_KEY | |
There is not much error handling here. This is not a place of honor. | |
It turned out to run quite smoothly still. | |
""" |
This file contains hidden or 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
# Build the dynamic and vsthrottle Varnish modules from source. | |
FROM ubuntu:20.04 | |
ENV TZ=Etc/UTC | |
ENV VARNISH_VERSION 7.4 | |
# Avoid tzdata terminal configuration that would halt the build | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
This file contains hidden or 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
# Build libvmod_dynamic.so from source (https://github.com/nigoroll/[email protected]) | |
FROM ubuntu:20.04 | |
ENV TZ=Etc/UTC | |
ENV VARNISH_VERSION 7.4 | |
# Avoid tzdata terminal configuration that would halt the build | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
This file contains hidden or 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
"======================================================================= | |
" Vim settings file by Andreas Schneider <mail at cynapses.org> | |
" with parts from Ciaran McCreesh <ciaranm at gentoo.org> | |
" and Sven Guckes <setup-vimrc.forall at guckes.net> | |
" | |
" Most recent update: Do Mär 01 11:35:54 CET 2007 | |
" | |
" Get the latest version from: | |
" http://www.cynapses.org/tmp/setup/ | |
" |
This file contains hidden or 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
# | |
# Requirements: | |
# - websocket-client==1.6.2 | |
# | |
from websocket import create_connection | |
def select_origin_header(extra_headers): | |
origin = None |
This file contains hidden or 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
name: CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
ci: | |
strategy: |
This file contains hidden or 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 os | |
import dotenv | |
from langchain import PromptTemplate, HuggingFaceHub, LLMChain | |
# Add your HuggingFace hub token in a `.env` file, as: | |
# | |
# ``` | |
# HUGGINGFACEHUB_API_TOKEN=hf-.... | |
# ``` |
NewerOlder