First of all you must update ruby-build to update definitions list.
brew update
And update ruby-build
#!/bin/sh | |
osascript <<EOF | |
tell application "Terminal" | |
activate | |
set _tab to do script "telnet 127.0.0.1 2001 ; exit" | |
delay 1 | |
repeat while _tab exists | |
delay 1 | |
end repeat |
import json | |
import sqlalchemy | |
from sqlalchemy import UnicodeText | |
from sqlalchemy.ext.mutable import Mutable | |
from datetime import datetime | |
from collections import OrderedDict | |
__all__ = ('JSON', 'JsonRaw') |
#!/bin/bash -xe | |
## SET BASIC VARIABLES | |
EKS_CLUSTER="dev-cluster" | |
IAM_ROLE_NAME=eksctl-$EKS_CLUSTER-iamserviceaccount-role | |
EXTERNAL_SECRETS_POLICY="kube-external-secrets" | |
#### CREATE POLICY TO ACCESS SSM/Secrets Manager | |
cat << EOF > policy.json | |
{ |
#!/bin/bash | |
docker rm $(docker ps -q -f status=exited) | |
docker rmi $(docker images -q -f dangling=true) |
import boto3 | |
boto3.setup_default_session(profile_name='IAM') | |
resource = boto3.resource('iam') | |
client = boto3.client("iam") | |
KEY = 'LastUsedDate' | |
for user in resource.users.all(): |
#!/usr/bin/env bash | |
# Check we've got command line arguments | |
if [ -z "$*" ] ; then | |
echo "Need to specify ssh options" | |
exit 1 | |
fi | |
# Start trying and retrying | |
((count = 100)) |
# first install pygmentize to the mac OS X or macOS system with the built-in python | |
sudo easy_install Pygments | |
# then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc. | |
alias pcat='pygmentize -f terminal256 -O style=native -g' |
Jenkinsfile VIM syntax highlighting | |
echo 'au BufNewFile,BufRead Jenkinsfile setf groovy' >> ~/.vimrc |
# Detect operating system in Makefile. | |
# Author: He Tao | |
# Date: 2015-05-30 | |
OSFLAG := | |
ifeq ($(OS),Windows_NT) | |
OSFLAG += -D WIN32 | |
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) | |
OSFLAG += -D AMD64 | |
endif |