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
--- | |
- job: | |
name: ops/cloudflare-abuse | |
description: 'Checks Cloudflare for domains that have abuse reports and alerts @ops ' | |
defaults: global | |
properties: | |
- build-discarder: | |
num-to-keep: 100 | |
artifact-num-to-keep: 1 | |
triggers: |
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
Barclays | |
BBC | |
Caterpillar | |
LGV | |
IBM | |
Oracle | |
Northrup Grumman | |
Boeing | |
Boston Dynamics | |
British Aerospace |
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
#!/usr/bin/env bash | |
# Surrounding in brackets ensures that the whole script gets loaded to memory | |
# before running which allows us to update the script from the script without | |
# issue. | |
{ | |
set -eu -o pipefail | |
# Let's make some pretty stuff | |
COLOR_RESET="$(tput sgr0)" |
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
#!/usr/bin/env bash | |
# Add $HOME/.bin to the beginning of your PATH | |
# Save this file in $HOME/.bin/open and make it executable | |
if ! echo "$@" | grep -q http; then | |
/usr/bin/open $@ | |
exit $? | |
fi |
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": "MyCoolApp", | |
"description": "Does a really cool thing", | |
"version": "0.0.0", | |
"private": true, | |
"scripts": { | |
"test": "true", | |
"gitbranch": "BRANCH=$(git rev-parse --abbrev-ref HEAD); if [[ \"$BRANCH\" != \"master\" ]]; then echo \"you must be on master branch to release\"; exit 1 ; fi", | |
"gitstatus": "STATUS=$(git status --porcelain 2>&1); echo $STATUS; if [[ ! -z \"$STATUS\" ]]; then exit 1; fi;", | |
"gittest": "yarn gitbranch && yarn gitstatus", |
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
brew install minikube spectacles tfenv aws-vault zsh zsh-completions zsh-syntax-highlighting | |
brew install terragrunt --ignore-dependencies | |
brew tap devopsmakers/xterrafile && brew install xterrafile | |
echo "/usr/local/bin/zsh" | sudo tee -a /etc/shells | |
chsh -s /usr/local/bin/zsh | |
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
# Sometimes you want to package up and deploy your code as an rpm, deb, tar.gz... | |
# You want to be sure that your Saltstack formulas are version controlled and easily updateable. | |
# XTerrafile can help you do that. | |
# Create a "Saltfile" (it's just a YAML file and can be named anything. Example: | |
salt-formula-linux: | |
source: "https://github.com/salt-formulas/salt-formula-linux.git" | |
version: "72507a1b25fce6f7ec0d9532129a1619c3646927" |
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
##############[ custom_awsvault: current aws account (https://github.com/99designs/aws-vault) ]############### | |
awsvault_prompt() { | |
if [ ! -z "${AWS_VAULT-}" ]; then | |
echo -n " ${AWS_VAULT-} " | |
fi | |
} | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT="awsvault_prompt" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_FOREGROUND="black" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_BACKGROUND="yellow" | |
typeset -g POWERLEVEL9K_CUSTOM_AWSVAULT_VISUAL_IDENTIFIER_EXPANSION=' ☁️' |
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
gem install aws_assume_role | |
echo 'awsassume () { eval `aws-assume-role environment set -p $@`; }' >> ~/.bashrc | |
echo 'awsconsole () { eval `aws-assume-role console -p $@`; }' >> ~/.bashrc |
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 -eu -o pipefail | |
number=$1 | |
# Test that it is valid | |
[[ "${number//[0-9]/}" == "" ]] || \ | |
{ echo Number ${number} contains invalid characters ; \ | |
exit 1 ;} |
NewerOlder