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
""" | |
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 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 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 | |
# | |
# Example of how to parse short/long options with 'getopt' | |
# | |
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
echo "$OPTS" |
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
# Build libvmod_dynamic.so from source (https://github.com/nigoroll/libvmod-dynamic@7.4) | |
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 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 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 perl | |
# | |
# Find unused CSS selectors by crawling a list of URLs | |
# (--url, even more than one) and matching all elements in | |
# a page to find out which selectors are never used across | |
# all given URLs | |
# | |
# Usage: | |
# ./find-unused-css-selectors.pl --css file.css --url http://some.url [--url http://some.other.url ...] | |
# |
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 | |
# | |
# Disables the Couchbase access scanner on a list of buckets | |
# Access scanner can cause short outages when buckets are very large. | |
# | |
set -e -x | |
USER='Administrator' |
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
This is the list of exit codes for wget: | |
0 No problems occurred | |
1 Generic error code | |
2 Parse error — for instance, when parsing command-line options, the .wgetrc or .netrc… | |
3 File I/O error | |
4 Network failure | |
5 SSL verification failure | |
6 Username/password authentication failure | |
7 Protocol errors |
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
# | |
# Requirements: | |
# - websocket-client==1.6.2 | |
# | |
from websocket import create_connection | |
def select_origin_header(extra_headers): | |
origin = None |
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
name: CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
ci: | |
strategy: |
NewerOlder