Skip to content

Instantly share code, notes, and snippets.

View alivesay's full-sized avatar

Andrew Livesay alivesay

View GitHub Profile
something: |+
Hello.
^[[1;32m
I am green.
^[[0m
I am not green.
~/launch/puppet-xoljemnfrufuh7nw$ puppet-code deploy --dry-run --all --wait --config-file .config/puppet-code.conf
Dry-run deploying all environments.
Errors while collecting a list of environments to deploy (exit code: 1).
ERROR -> Unable to determine current branches for Git source 'puppet' (/etc/puppetlabs/code-staging/environments)
Original exception:
Command exited with non-zero exit code:
Command: git clone --mirror https://git-codecommit.us-west-2.amazonaws.com/v1/repos/puppet /opt/puppetlabs/server/data/code-manager/git/https---git-codecommit.us-west-2.amazonaws.com-v1-repos-puppet
Stderr:
Cloning into bare repository '/opt/puppetlabs/server/data/code-manager/git/https---git-codecommit.us-west-2.amazonaws.com-v1-repos-puppet'...
fatal: unable to access 'https://git-codecommit.us-west-2.amazonaws.com/v1/repos/puppet/': The requested URL returned error: 403
// ARTIFACTS DRAWN ON THIS ONE
void render() {
if (this->_isAutoPlay && this->_frameTimer->tick()) {
this->_currentFrame++;
if (this->_currentFrame >= this->_frameCount) this->_currentFrame = 0;
}
Sprites::drawPlusMask(this->getX(), this->getY(), this->_bitmap, this->_currentFrame);
}
foo_types_header.h:
typedef enum {
FOO_TYPE_BAR = 0,
_FOO_TYPE_COUNT
} foo_type_t;
foo_bar_header.h:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
^ Doing this, yet glGetString(GL_VERSION) returns "3.0 Mesa 11.2.1". Why?
$ ldd gnome-games
linux-gate.so.1 (0xb7784000)
libretro-gtk.so.0 => /usr/lib/libretro-gtk.so.0 (0xb773f000)
libclutter-gtk-1.0.so.0 => /usr/lib/libclutter-gtk-1.0.so.0 (0xb7730000)
libclutter-1.0.so.0 => /usr/lib/libclutter-1.0.so.0 (0xb759e000)
libcogl-path.so.20 => /usr/lib/libcogl-path.so.20 (0xb758a000)
libcogl-pango.so.20 => /usr/lib/libcogl-pango.so.20 (0xb757f000)
libcogl.so.20 => /usr/lib/libcogl.so.20 (0xb74b4000)
libwayland-egl.so.1 => /usr/lib/libwayland-egl.so.1 (0xb74b1000)
libgbm.so.1 => /usr/lib/libgbm.so.1 (0xb74a2000)
const readline = require('readline');
const say = require('say');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const recursiveAsyncReadLine = () => {
rl.question('INPUT: ', (input) => {
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (2)
E:Problem closing the file /var/cache/apt/archives/perl_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-base_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-base_5.18.2-2ubuntu1.1_amd64.deb - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-modules_5.18.2-2ubuntu1.1_all.deb - close (9: Bad file descriptor), E:Problem closing the gzip file - close (9: Bad file descriptor), E:Problem closing the file /var/cache/apt/archives/perl-modules_5.18.2-2ubuntu1.1_all.deb - close (9: Bad file descriptor), E:Problem closing the fil
1) test parse rebar dependencies (Mix.RebarTest)
test/mix/rebar_test.exs:49
** (FunctionClauseError) no function clause matching in List.to_string/1
stacktrace:
(elixir) lib/list.ex:619: List.to_string(">= 0.0.0")
(mix) lib/mix/rebar.ex:244: Mix.Rebar.compile_req/1
(mix) lib/mix/rebar.ex:240: Mix.Rebar.parse_dep/1
(elixir) lib/enum.ex:1092: Enum."-map/2-lists^map/1-0-"/2
test/mix/rebar_test.exs:60
@alivesay
alivesay / v2
Created February 27, 2016 23:25
((?:[NESW]{1,2}\s*)?\w+)(?:\s*\/\s*)(\w+)|(\d+\s+[NESW]{1,2}\s+\w+)