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
haproxy.conf | |
============ | |
frontend spdy | |
mode tcp | |
bind xxx.xxx.xxx.xxx:443 ssl crt /etc/haproxy/ssl.pem crt /etc/haproxy/certs.d npn spdy/3.1,http/1.1 ciphers AES256+EECDH:AES256+EDH:AES128+EDH:EECDH:!aNULL:!eNULL:!LOW:!DES:!3DES:!RC4; no-sslv3 | |
option tcplog | |
log global | |
# route to nginx |
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
# Path to boto config file, needed by gsutils | |
BOTO_CONFIG="/etc/boto.cfg" | |
# Path in which to create the backup (will get cleaned later) | |
BACKUP_PATH="/mnt/data/dump/" | |
# DB name | |
DB_NAME="mydatabase" | |
# Google Cloud Storage Bucket Name |
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
Here are the steps for building OSG in the OpenGL CORE Profile | |
once you have configured CMake as usual. | |
1. Download the GL CORE include folder from Khronos: | |
https://www.khronos.org/registry/OpenGL/api/GL/ | |
2. Put it in a folder somewhere. You can put it in a folder called glcore, or | |
you can make a "GL" folder in the include folder of the OSG repository and | |
put it there. | |
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
FROM fedora:31 | |
LABEL summary="The open-vm-tools guest agent" \ | |
io.k8s.description="The open-vm-tools agent is providing information about the virtual machine and allows to restart / shutdown the machine via VMware products. This image is intended to be used with virtual machines running Centos Atomic Host." \ | |
io.k8s.display-name="open-vm-tools guest agent" \ | |
architecture="x86_64" \ | |
BZComponent="open-vm-tools" \ | |
maintainer="davis phillips <dphillip@redhat.com>" | |
ENV SYSTEMD_IGNORE_CHROOT=1 |
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 -Eeuo pipefail | |
BLOCKSIZE=256 | |
OVERVIEW_BLOCKSIZE=256 | |
MIN_OVERVIEW_SIZE=256 | |
KEEP_TEMP=0 | |
MOSAIC_VRT="mosaic.vrt" | |
MOSAIC_RGB_VRT="mosaicrgb.vrt" |
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
"""Fetching the latest GMail email using OAuth 2 and IMAP. | |
Requires requests-oauthlib, which is available on pypi. | |
Includes a basic SASL XOAUTH2 authentication method for imaplib. | |
""" | |
# Credentials you get from registering a new web application in Google API Console | |
client_id = 'your-id.apps.googleusercontent.com' | |
client_secret = 'your secret' | |
redirect_uri = 'your callback uri' |
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
require('./module.js') // { a: 1 } | |
import module from './module.js' // undefined | |
import { a } from './module.js' // 1 | |
require('./module2.js') // { default: { a: 1 }, b: 2 } | |
import module2 from './module2.js' // { a: 1} | |
import { b } from './module2.js' // 2 | |
require('./module3.js') // { default: { a: 1 }, b: 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
#!/bin/bash | |
BASE_DIR=${TMPDIR:-/var/tmp} | |
ORIG_DIR=$PWD | |
HASH_CMD="md5sum" | |
DIR_NAME=`echo $PWD | $HASH_CMD | cut -f1 -d " "` | |
TMP_DIR=$BASE_DIR/$DIR_NAME | |
mkdir -p $TMP_DIR |
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 bash | |
# | |
# K8s-Vault, like AWS-Vault is a helper for AWS related CLI tools | |
# is a helper for CLI tools using kubectl config and K8s API. | |
# Unlike AWS-Vault, vault here is used as a verb, | |
# synonymous to leap, jump, spring, etc.. | |
# Copyright (C) 2019-2020 Anastas Dancha (aka @anapsix) | |
# 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 |
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 sh | |
############################################# | |
# WARNING # | |
# No more commits are going to be made to # | |
# this gist. Please get the latest script # | |
# from the new repository: # | |
# https://github.com/pixelomer/macos-mkjail # | |
############################################# |
OlderNewer