Skip to content

Instantly share code, notes, and snippets.

View paulrobinson's full-sized avatar

Paul Robinson paulrobinson

  • Red Hat
  • Whitley Bay, UK
View GitHub Profile
@paulrobinson
paulrobinson / gist:4c4140a5be435114a272
Created October 2, 2014 10:59
gem install therubyracer
gem install therubyracer
Building native extensions. This could take a while...
/Users/paul/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /Users/paul/.rvm/rubies in PATH, mode 040777
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
/Users/paul/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
checking for main() in -lpthread... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
"gcc -o conftest -I/Users/paul/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/x86_64-darwin13.0 -I/Users/paul/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0/ruby/backward -I/Users/paul/.rvm/rubies/ruby-2.1.2/include/ruby-2.1.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -I/Users/travis/.sm/pkg/active/include -fPIC -mmacosx-version-min=10.7 -pipe conftest.c -L. -L/Users/paul/.rvm/rubies/ruby-2.1.2/lib -L. -L/Users/travis/.sm/pkg/active/lib -fPIC -Bstatic -fstack-protector -arch x86_64 -lruby-static -framework CoreFoundation -lpthread -ldl -lobjc "
/Users/paul/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/mkmf.rb:395: warning: Insecure world writable dir /Users/paul/.rvm/rubies in PATH, mode 040777
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized option '-arch'
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Jason Porter. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Jason Porter. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Jason Porter. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Karel Piwko. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Nevin Zhu. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Gustavo A. Brey. Status: 403. Params: {}
Error making searchisko request to /normalization/contributor_profile_by_jbossdeveloper_quickstart_author/Tom Jenkinson. Status: 403. Params: {}
Error making sea
@paulrobinson
paulrobinson / gist:a14104698c51581d89f2
Created August 21, 2014 08:32
git diff stylesheets/sprites/_theme-light.scss
[probinso@osprey-02 www.jboss.org]$ git diff stylesheets/sprites/_theme-light.scss
diff --git a/stylesheets/sprites/_theme-light.scss b/stylesheets/sprites/_theme-light.scss
index 44feddf..4feeb2b 100644
--- a/stylesheets/sprites/_theme-light.scss
+++ b/stylesheets/sprites/_theme-light.scss
@@ -20,10 +20,6 @@ $theme-light-inline: false !default;
$theme-light-background-short-spacing: $theme-light-spacing !default;
$theme-light-background-short-repeat: $theme-light-repeat !default;
- $theme-light-background-tall-position: $theme-light-position !default;
#!/bin/bash
NEW_VERSION=$1
if [ "${#NEW_VERSION}" != "3" ]; then
echo "usage: $0 <new image version (must be 3 digits)>"
exit 1
fi
NEW_IMAGE_PATH=/vm/base-$NEW_VERSION.img
if [ -e $NEW_IMAGE_PATH ]; then
#!/bin/bash
USER=$1
HOST=$2
if [ "$HOST" == "" ]; then
echo "usage: $0 <user name> <host name>"
exit 0
fi
@paulrobinson
paulrobinson / test-e.sh
Last active August 29, 2015 14:02
Demonstrates "bash -e"
#!/bin/bash -e
echo 1
echo 2
ls /tmp/dadsadfssadasdda
echo 3
/** DCP HELPERS **/
app.dcp.getNameFromContributor = function( contributor ) {
return contributor.substring(0, contributor.lastIndexOf("<") - 1);
};
/**
* Load a document from the DCP, resolve any contributors, and replace any
* span.contributor[data-sys-contributor=<contributor>] elements in the current page
*/
@paulrobinson
paulrobinson / developer-materials.js
Last active August 29, 2015 14:01
developer-materials.js
function roundHalf(num) {
var num = Math.round(num*2)/2;
var html = "";
for (var i = num; i >= 0; i--) {
if(i >= 1) {
html += "<i class='fa fa-star'></i>";
}
else if (i > 0) {
html += "<i class='fa fa-star-half-empty'></i>";
}
05acf2b51aa474e55b1c9514007c092c ./_tmp/cdn/stylesheets/all-23.css
05acf2b51aa474e55b1c9514007c092c ./stylesheets/app.css
5afa64aee8f1a8cce271613692a3677d ./_site/stylesheets/app.css