This file contains 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 -o errexit | |
set -o nounset | |
set -o xtrace | |
readonly DUMP_PREFIX="/tmp/dump.$(date +%Y-%m-%d)" | |
readonly INSTANCE_GROUP=${INSTANCE_GROUP:-web} | |
This file contains 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
[2938142.956375] INFO: task link:3239126 blocked for more than 120 seconds. | |
[2938142.963358] Tainted: G W 4.15.0-45-generic #48~16.04.1-Ubuntu | |
[2938142.971542] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
[2938142.979964] link D 0 3239126 3232390 0x000001a0 | |
[2938142.979969] Call Trace: | |
[2938142.979980] __schedule+0x3d6/0x8b0 | |
[2938142.979984] ? __switch_to_asm+0x40/0x70 | |
[2938142.979986] schedule+0x36/0x80 | |
[2938142.979988] schedule_timeout+0x1db/0x370 | |
[2938142.979991] wait_for_completion+0xb4/0x140 |
This file contains 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 | |
# apfs - a "baggageclaim-driver"-a-like script leveraging `hdiutil` and | |
# `clonefile(2)`. | |
# | |
# Usage: apfs.sh (create|cow|destroy) | |
# | |
# Commands: | |
# create vol-id desc: creates a volume | |
# cow vol-id parent-vol-id desc: creates a cow layer based on `parent-vol-id` |
This file contains 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 | |
# Usage: ./script.sh arg1 | |
# | |
# Arg1: the number of the loopback device to create | |
# (must be a number that does not match the entries under | |
# /dev/loop<N>) | |
# | |
# e.g.: if `ls /dev` shows /dev/loop{0,1,2}, here you can | |
# use something like `10`. |
This file contains 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
resources: | |
- name: periodically | |
type: time | |
source: | |
interval: 15s | |
- name: httpstat-image | |
type: registry-image | |
source: | |
repository: concourse/test-pivnet-resource-http-stat |
This file contains 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 | |
# Usage: ./script.sh arg1 | |
# | |
# Arg1: the number of the loopback device to create | |
# (must be a number that does not match the entries under | |
# /dev/loop<N>) | |
# | |
# e.g.: if `ls /dev` shows /dev/loop{0,1,2}, here you can | |
# use something like `10`. |
This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"code.cloudfoundry.org/lager" | |
) | |
// methodThatFails simply always fails, returning an |
This file contains 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: 'add llvm apt key' | |
apt_key: | |
url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' | |
state: 'present' | |
- name: 'add llvm apt repo' | |
apt_repository: | |
repo: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main' | |
state: 'present' |
This file contains 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
status = {} | |
status.version = "0.0.1" | |
status.startup = function() | |
core.Info("[status] status script v" .. status.version); | |
end | |
status.run = function(applet) | |
local response = "200 OK" |
This file contains 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
# Execute the command `echo test` | |
# against the hosts described in `/tmp/hosts` | |
# without performing host key checking | |
# and SSHing as `ubuntu` | |
mpssh \ | |
--user ubuntu \ | |
--nokeychk \ | |
--file /tmp/hosts \ | |
'echo "test"' |