Skip to content

Instantly share code, notes, and snippets.

View solarce's full-sized avatar

Brandon Burton solarce

View GitHub Profile
A = [1, 3, 5, 7, 9]
B = [2, 4, 6, 8]
add each element of A to each element of B
@solarce
solarce / tk_zookeeper.sh
Last active August 29, 2015 14:17
Example of testing out https://github.com/solarce/tf_zookeeper with terraform.io
thq-d-bburt01 福 ~/code/lookout/terraform/tf_zookeeper_github ➤ 9aeb663|master✓
4331 ± : cp terraform.tfvars.example terraform.tfvars ⏎ [0m]
thq-d-bburt01 福 ~/code/lookout/terraform/tf_zookeeper_github ➤ 9aeb663|master✓
4332 ± : terraform get -update [0m]
Get: git::https://github.com/terraform-community-modules/tf_aws_sg.git?ref=stable (update)
Get: git::https://github.com/terraform-community-modules/tf_aws_asg.git?ref=stable (update)
4334 ± : touch /tmp/bootstrap_stage0_zk_default.sh ⏎ [0m]
[(ruby-2.1.5)] ~/code/knife-block/knife-block-org <master> gem push knife-block-0.2.0.gem
Pushing gem to https://rubygems.org...
Repushing of gem versions is not allowed.
Please use `gem yank` to remove bad gem releases.
/network add -nick solarce hangops
/server add -auto -ssl -network hangops hangops.irc.slack.com 6667 hangops.MyC00LP4SSWo|>D
/save
/connect hangops
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n
==> plex-media-server-plexpass dependencies:
- systemd (already installed)
==> Edit plex-media-server.install ? [Y/n] ("A" to abort)
==> -----------------------------------------------------
@solarce
solarce / overlay.sh
Created April 19, 2015 22:52
docker 1.6 + overlayfs on arch (wooooo)
[root@dumptruck ~]# docker info
Containers: 0
Images: 0
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Kernel Version: 3.19.3-3-ARCH
Operating System: Arch Linux
CPUs: 2
Total Memory: 15.51 GiB
@solarce
solarce / keystore.rb
Created April 21, 2015 16:26
snippets of how we get rundeck behind nginx+ssl
# Import the self-signed certificate from chef-server for rundeck's store
cert_alias = "#{node['fqdn']}-selfsigned-crt"
execute "import-rundeck-self-signed-cert" do
not_if "keytool -list -keystore /etc/rundeck/ssl/truststore -storepass adminadmin | grep #{cert_alias}"
command "keytool -import -alias #{cert_alias} -file /var/opt/chef-server/nginx/ca/*.crt -keystore /etc/rundeck/ssl/truststore -storepass adminadmin -noprompt"
action :run
end
@solarce
solarce / zfs_list.sh
Created June 2, 2015 14:14
zfs on althalus (laptop)
[solarce@althalus ~]$ sudo zfs list
NAME USED AVAIL REFER MOUNTPOINT
althalus_zroot 6.15G 218G 3.89G /
althalus_zroot/docker 565M 218G 253M /var/lib/docker
althalus_zroot/docker/39bb80489af75406073b5364c9c326134015140e1f7976a370a8bd446889e6f8 138M 218G 138M legacy
althalus_zroot/docker/7a3871ba15f89cd1e26daca15d6ee121d94e6eea1db3e209770d02a2561e6f59 45.2M 218G 181M legacy
althalus_zroot/docker/a2703ed272d70860ade169b024b9bb6eff130c2fa2cacb8a0970f8027cc0388d 130M 218G 309M legacy
althalus_zroot/docker/df2a0347c9d081fa05ecb83669dcae5830c67b0676a6d6358218e55d8a45969c 29K 218G 138M legacy
althalus_zroot/home
describe Travis::Yaml::Nodes::Addons do
context 'from Ruby' do
def addons(input)
Travis::Yaml.parse!(language: 'ruby', addons: input).addons
end
context 'artifacts' do
let :config do
addons(artifacts: {
bucket: 'whatever',
@solarce
solarce / docker_images.md
Created August 7, 2015 22:56
A quick list of the Travis Docker containers on quay.io that you can `docker pull`

The following is a list of public Docker images Travis uses for our container based builds. You can grab them with docker pull quay.io/travisci/travis-$lang.

  • Do note that they are large in size, 800MB - 1.8G

Images: