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/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
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
use ModelSEED::ObjectManager; | |
use Devel::Size qw(total_size); | |
use Time::HiRes qw(time); | |
use Data::Dumper; | |
use Test::More tests => 1; | |
my $om = ModelSEED::ObjectManager->new({ | |
database => $ENV{HOME}."/test.db", | |
driver => "SQLite", | |
}); |
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
#!/usr/bin/env perl | |
# Test whether a scalar in perl is numeric or not. | |
# | |
# ( ( $i + 0 ) ne $i ) ? "not numeric" : "numeric"; | |
# | |
# - ` $i + 0 ` converts scalar to numeric | |
# - which should then not equal $i unless it is a numeric | |
# | |
use strict; | |
use String::Random qw(random_regex random_string); |
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
#!/usr/bin/env python | |
## Boot a Managed Jenkins Slave | |
# | |
# | |
# | |
# | |
import os | |
from argparse import ArgumentParser | |
from subprocess import call | |
import sys |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use SAPserver; | |
use Data::Dumper; | |
my $genomeID = "83333.1"; | |
my $sap = SAPserver->new(); | |
my $columns = ['dna-size', 'gc-content', 'pegs', 'name', 'taxonomy', | |
'md5_hex']; |
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
#!/usr/bin/perl | |
package ROArray; | |
use Moose; | |
has pirates => ( | |
traits => ['Array'], | |
is => 'ro', | |
isa => 'ArrayRef[Str]', # Replace with something? | |
default => sub { [] }, | |
handles => { | |
add_pirate => 'push', |
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
# MD5 HASH | |
ec20092943dd9ce164959abacdc1d60a coreos_production_pxe.vmlinuz | |
# SHA1 HASH | |
b9f9953fa977552b79f8c1bca865aad3ee3bd8a7 coreos_production_pxe.vmlinuz | |
# SHA512 HASH | |
659e37110e727894ce0f8790d81dda0d793f49d84e70ac65e342c2b45e96d83270d79de617d65dd1d9265661cc1a8bbf407185d5de41ada25c06ea15696eece1 coreos_production_pxe.vmlinuz | |
# MD5 HASH | |
edb7ff242cf7c6a8e372b0b1cb0a842f coreos_production_pxe_image.cpio.gz | |
# SHA1 HASH | |
045cae03821e5e8a38ba7b007524a1032dd96ec8 coreos_production_pxe_image.cpio.gz |
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
$ shasum -a 512 coreos_production_pxe.vm* | |
4771866b3979d7ace5aee23cf05e0a5db88b668177eaf29cb99b3d4cd67af89c1bd561f236853d3627aa14eb745a48cc72bfac74e2639e5faf03a1490f057932 coreos_production_pxe.vmlinuz | |
f49270fd8def3963679c249b1092607c0b013c1c8b5e5e8a0e3468db7f194f56a760c806be3e94c5802af5baf38d8974df8fdfd64def91de3d0d78df513599b7 coreos_production_pxe.vmlinuz.sig | |
$ gpg --verify coreos_production_pxe.vmlinuz.sig coreos_production_pxe.vmlinuz | |
gpg: Signature made Fri Feb 27 20:52:54 2015 CST using RSA key ID E5676EFC | |
gpg: Good signature from "CoreOS Buildbot (Offical Builds) <buildbot@coreos.com>" | |
gpg: WARNING: This key is not certified with a trusted signature! | |
gpg: There is no indication that the signature belongs to the owner. | |
Primary key fingerprint: 0412 7D0B FABE C887 1FFB 2CCE 50E0 8855 93D2 DCB4 | |
Subkey fingerprint: EEFA 7555 E481 D026 CC40 D8E6 A5A9 6635 E567 6EFC |
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
vagrant@vagrant:/vagrant$ ./buildmistify | |
buildmistify: Using Buildroot located at: /home/vagrant/buildroot | |
buildmistify: Using base configuration. | |
buildmistify: Build output directory is: /home/vagrant/build | |
buildmistify: The variant build directory is: /home/vagrant/build/base | |
buildmistify: The Buildroot repository is: git@github.com:mistifyio/buildroot.git | |
buildmistify: Using Buildroot branch: master | |
* master | |
Already on 'master' | |
Your branch is up-to-date with 'origin/master'. |
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
# Leaving out imports | |
c = BuildmasterConfig = {} | |
# Note, slightly custom options for DockerLatentBuildSlave. | |
# Basically just a copy of https://github.com/buildbot/buildbot/blob/master/master/buildbot/buildslave/docker.py | |
# but with settings for link, volumes, privileged and cap_add flags to pass through to docker client. | |
c['slaves'] = [ | |
DockerLatentBuildSlave('x-01', 'xxxx', | |
docker_host='unix:///var/run/docker.sock', |
OlderNewer