If you want to run Arch on a Laptop, use pure Intel hardware as much as possible. Especially for WiFi. Next use NVIDIA hardware if you need a discreet video card. AMD support is lacking to say the least.
#!/bin/bash | |
# !!!!DESTRUCTIVE!!!! | |
# This will delete all local docker images. | |
CleanDocker () { | |
docker ps -aq | xargs docker rm | |
docker images | awk '{print $1":"$2}' | xargs docker rmi | |
docker volume prune | |
} |
#!/bin/bash | |
bucket=$1 | |
set -e | |
echo "Removing all versions from $bucket" | |
versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
(with-open [zip (ZipOutputStream. (io/output-stream "target/lambda.zip"))] | |
(doseq [f (file-seq (io/file *compile-path*)) :when (.isFile f)] | |
(.putNextEntry zip (ZipEntry. (subs (.getPath f) (+ 1 (count *compile-path*))))) | |
(io/copy f zip) | |
(.closeEntry zip))) |
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# This assumes a wifi only system... | |
wifi-menu | |
# sync the clock | |
timedatectl set-ntp true |
VPN=https://vpn.company.com
alias vpntun="sudo ip tuntap add vpn0 mode tun user `whoami`"
alias vpn="openconnect --csd-wrapper ~/.cisco/csd-wrapper.sh ${VPN} --no-cert-check -i vpn0 -s 'sudo -E /etc/vpnc/vpnc-script'"
Say you support multiple clients or multiple projects but don't want everything on your shell at once. This script in your .bashrc
file will allow you to automatically create aliases for any directory that has it's own .bashrc file. It starts a new bash shell so no existing variables are overwritten and you can exit when needed.
For example, say you have project or client named superx
and another named johndoe
. You create a directory superx
and johndoe
. Within each you pust a custom .bashrc file and optional .superx-secrets and .johndoe-secrets file and then your shell (upon next login) will detect those files and alias them to the parent directory's name. So if I want superx
stuff, I just run superx
and vice versa for johndoe
.
Some references:
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-environment http://www.linuxjournal.com/content/tech-tip-dereference-variable-names-inside-bash-functions http://stackoverflow.com/questions/3601515/how-to-check-if-a-v
# example.conf: A single-node Flume configuration | |
# Name the components on this agent | |
a1.sources = r1 | |
a1.sinks = k1 | |
a1.channels = c1 | |
a1.sources.r1.type = spooldir | |
a1.sources.r1.channels = c1 | |
a1.sources.r1.spoolDir = /tmp/messages |
Old
1 Thread:
2.86MiB 0:00:32 [ 91KiB/s] [ 91KiB/s]
4 Threads:
2.86MiB 0:00:31 [93.1KiB/s] [93.1KiB/s]
1 Decorated Thread:
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Jenkins Stack. Using https://aws.amazon.com/marketplace/ordering/ref=dtl_psb_continue?ie=UTF8&productId=74e73035-3435-48d6-88e0-89cc02ad83ee®ion=us-east-1 for CentOS 6", | |
"Parameters" : { | |
"KeyName": { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"ConstraintDescription" : "must be the name of an existing EC2 KeyPair." |