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
# To use this configuration, you need to set these environment variables: | |
# export CLOUDFLARE_API_TOKEN="your_api_token" | |
# OR | |
# export CLOUDFLARE_EMAIL="your_email" | |
# export CLOUDFLARE_API_KEY="your_global_api_key" | |
locals { | |
account_id = "xxx" | |
} | |
data "cloudflare_account" "account" { |
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 | |
echo "Starting OIDC token generation process..." | |
# OIDC Token Request | |
echo "Requesting OIDC token from ${TOKEN_ENDPOINT//\{tenantId\}/$TENANT_ID}..." | |
TOKEN_RESPONSE=$(curl -s -X POST "${TOKEN_ENDPOINT//\{tenantId\}/$TENANT_ID}" \ | |
-H "Content-Type: application/x-www-form-urlencoded" \ |
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 | |
# This is copy of script used in Github Actions of https://github.com/AnTheMaker/GoodBots | |
# Requirements: curl, whois, jq | |
WORKING_DIRECTORY=$(pwd) | |
mkdir -p iplists | |
# Generate GoogleBot IP-List | |
curl -s https://developers.google.com/static/search/apis/ipranges/googlebot.json | jq -r '.prefixes[].ipv6Prefix,.prefixes[].ipv4Prefix | select( . != null )' | tr -d "[:blank:]" > $WORKING_DIRECTORY/iplists/googlebot.ips |
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
swagger: "2.0" | |
info: | |
title: Simple service endpoint for GCP | |
version: 1.0.0 | |
host: $DOMAIN_NAME | |
x-google-endpoints: | |
- name: $DOMAIN_NAME | |
target: $IP_ADDR | |
x-google-allow: all | |
basePath: / |
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/sh | |
for bin in ~/.local/share/flatpak/exports/bin/*; do | |
appid="$(basename $bin)" | |
cmd="$(flatpak info -m $appid | awk -F= '/^command=/ {print $2}')" | |
echo "alias ${cmd}=$bin" | |
done |
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
AJS.$.ajax({ | |
url: '/rest/api/latest/search', | |
data: {jql:'watcher = currentUser() AND status in (Done, Deployed, Closed)'}, | |
success: function (response) { | |
AJS.$.each(response.issues, function(i,issue) { | |
var completed = ['Done', 'Deployed', 'Closed'] | |
if (completed.includes(issue.fields.status.name)) { | |
AJS.$.ajax({ | |
url: '/rest/api/1.0/issues/' + issue.id + '/watchers', |
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 | |
# Copyright 2017-present: Intoli, LLC | |
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/ | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, |
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 | |
# Copyright 2017-present: Intoli, LLC | |
# Source: https://intoli.com/blog/installing-google-chrome-on-centos/ | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, |
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 | |
SERVICE="wp-cli action-scheduler" | |
MAX_RUNNING_SCHEDULERS=3 | |
WP_CLI_PATH="/usr/local/bin/wp" | |
if (( $(ps aux | grep '/bin/wp action-scheduler' | grep -v 'grep' | wc -l) >= MAX_RUNNING_SCHEDULERS )) | |
then | |
echo "$SERVICE tasks are running at it's limit ($MAX_RUNNING_SCHEDULERS)." | |
else | |
echo "$SERVICE tasks are NOT running at it's limit ($MAX_RUNNING_SCHEDULERS)." |
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
git branch -r --merged | grep -v '\\*\\|master\\|develop' | sed 's/origin\///' | xargs -n 1 git push --delete origin |
NewerOlder