Skip to content

Instantly share code, notes, and snippets.

View stresler's full-sized avatar

stresler stresler

View GitHub Profile
@stresler
stresler / keybase.md
Created January 11, 2018 21:10
keybase.md

Keybase proof

I hereby claim:

  • I am stresler on github.
  • I am stresler (https://keybase.io/stresler) on keybase.
  • I have a public key whose fingerprint is A9C2 32F2 BE4E 97B9 8756 06BF 3A4B 8E19 61C6 4382

To claim this, I am signing this object:

@stresler
stresler / mksdk.sh
Created July 15, 2015 20:17
CoreOS SDK
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: mksdk [directory]"
exit
fi
DIR=$(pwd)/$1
#!/bin/bash
if [ $# > 1 ]; then
echo "Usage: setup_sdk [password]"
exit
fi
if [ -n $1 ]; then
./set_shared_user_password.sh $1
fi
stresler@001cd109 ~/trunk/src/scripts $ ./build_image prod --group beta
* Building file list for packages cleaning...
* Cleaning binary packages...
[ 2.3 M ] coreos-base/coreos-cloudinit-1.4.1
Emaint: fix binhost 100% [============================================>]
[ 607.0 B ] Packages Index
===========
[ 2.3 M ] Total space from 1 files were freed in the packages directory
* Package: sys-apps/policycoreutils-2.4
* Repository: coreos
* Maintainer: selinux
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 userland_GNU
* FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
* Running stacked hooks for pre_pkg_setup
* sysroot_build_bin_dir ...
[ ok ]
* Running stacked hooks for pre_src_unpack
* python_multilib_setup ...
@stresler
stresler / gist:97066e53a059d879d183
Created June 29, 2015 21:53
CoreOS SDK build Error
* Package: coreos-base/coreos-init-0.0.1-r109
* Repository: coreos
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux pie ssp symlink-usr userland_GNU
* FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
* Running stacked hooks for pre_pkg_setup
* sysroot_build_bin_dir ...
[ ok ]
* Running stacked hooks for pre_src_unpack
* python_multilib_setup ...
[ ok ]
* ERROR: dev-libs/nspr-4.10.6::portage-stable failed (configure phase):
* econf failed
*
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 2958: Called econf '--libdir=/usr/lib64' '--disable-debug' '--enable-optimize' '--enable-64bit'
* phase-helpers.sh, line 662: Called __helpers_die 'econf failed'
* isolated-functions.sh, line 117: Called die
* The specific snippet of code:
* die "$@"
mkdir <new_sdk>
cd <new_sdk>
repo init -u https://github.com/coreos/manifest.git
repo sync
./chromite/bin/cros_sdk
./set_shared_user_password.sh
./setup_board --default --board=amd64-usr
./build_packages
@stresler
stresler / Gomac
Created April 17, 2015 16:04
Go Function to generate a random MAC address.
func GenerateMac() (net.HardwareAddr) {
buf := make([]byte, 6)
var mac net.HardwareAddr
_, err := rand.Read(buf)
if err != nil {}
// Set the local bit
buf[0] |= 2
@stresler
stresler / Pivotal Issues Created
Created January 7, 2015 18:41
Pivotal Issues Created
#!/bin/bash
PIVOTAL_TOKEN=$PIVOTAL_TOKEN
#milliseconds since the epoch http://www.epochconverter.com/
BEGIN=1417410001000
END=1420088399000
PROJECTS=(1168276 1205034 1202754 1221220)