based on https://github.com/jeffreywildman/homebrew-virt-manager/
brew tap jeffreywildman/homebrew-virt-manager
brew install py2cairo
brew install virt-manager virt-viewer
brew cask install xquartz
#!/bin/sh | |
# id: check_unattached_EIPs.sh | |
# author: nicolas david - [email protected] | |
# | |
## version history: | |
# ---------------------------------------------------------------------------- | |
# v1.0 nicolas@ Initial Version | |
# | |
# ---------------------------------------------------------------------------- |
# pre-reqs: | |
# ghostscript -> brew install ghostscript | |
function compresspdf { | |
INPUT_FILE=$1 | |
FILE_EXTENSION="${INPUT_FILE##*.}" | |
FILE_NAME="${INPUT_FILE%.*}" | |
OUTPUT_FILE="$FILE_NAME-compressed.$FILE_EXTENSION" | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dColorImageResolution=150 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$OUTPUT_FILE $INPUT_FILE | |
} |
pip3 install https://github.com/boto/botocore/zipball/v2#egg=botocore --upgrade | |
pip3 install -r requirements.txt | |
pip3 install . |
#!/bin/bash | |
export MY_32CIDR=$(curl -s v4.ifconfig.co)/32 | |
aws ec2 authorize-security-group-ingress --group-id sg-{yoursgid} --protocol tcp --port 22 --cidr $MY_32CIDR |
based on https://github.com/jeffreywildman/homebrew-virt-manager/
brew tap jeffreywildman/homebrew-virt-manager
brew install py2cairo
brew install virt-manager virt-viewer
brew cask install xquartz
Description: | |
This template creates an s3 Bucket for CloudTrail logs; it is set up with | |
the appropriate bucket policies defined to receive logs only from CloudTrail. | |
It also includes a LifecyclePolicy moving files to Glacier after 1 year. | |
Parameters: | |
EnvironmentName: | |
Description: | |
An environment name that will be used for tags. |
sudo yum install libmpc-devel mpfr-devel gmp-devel | |
sudo yum groupinstall "Development tools" | |
cd /tmp | |
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O | |
tar xvfj gcc-4.9.2.tar.bz2 | |
cd gcc-4.9.2 | |
./configure --disable-multilib --enable-languages=c,c++ | |
make -j 4 |
aws ec2 describe-images --owners amazon --query 'reverse(sort_by(Images[*].{Id:ImageId,Type:VirtualizationType,Created:CreationDate,Storage:RootDeviceType, Desc:Description}, &Created))' --filters "Name=description,Values=Amazon Linux AMI*" --output table |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
# uname -a | |
OpenBSD foo.openlab.fr 5.8 GENERIC#1170 amd64 | |
# export PKG_PATH=http://ftp2.fr.openbsd.org/pub/OpenBSD/`uname -r`/packages/`arch -s`/ | |
# pkg_add python | |
quirks-2.114 signed on 2015-08-09T11:57:52Z | |
quirks-2.114: ok | |
Ambiguous: choose package for python | |
a 0: <None> | |
1: python-2.7.10 | |
2: python-3.4.3 |