Skip to content

Instantly share code, notes, and snippets.

Luis Gustavo luisbebop

Block or report user

Report or block luisbebop

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luisbebop
luisbebop / install-rbenv-amazon-linux-ami.sh
Created Nov 26, 2017
Install rbenv on Amazon Linux AMI
View install-rbenv-amazon-linux-ami.sh
sudo yum install -y git gcc make readline-devel openssl-devel
git clone git://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
@luisbebop
luisbebop / server-euforia.go
Last active May 17, 2016
Go websocket echo server with permessage-deflate extension enabled
View server-euforia.go
// Copyright 2015 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package main
import (
"flag"
@luisbebop
luisbebop / onename
Created Oct 12, 2015
onename verifcation
View onename
Verifying that +luisbebop is my blockchain ID. https://onename.com/luisbebop
@luisbebop
luisbebop / life_hello_world.rb
Created Apr 11, 2015
A early prototype describing how "program life" should be
View life_hello_world.rb
require "openlife"
def add_pGLO(bacteria)
construct = GeneticCircuit.new(:assembly)
construct.add_selection_gene(:AmpR)
construct.add_promoter(:very_strong)
construct.add_rbs(:very_strong)
construct.add_gene(:GFP)
construct.add_terminator(:ter)
construct.replication_origin(:high)
@luisbebop
luisbebop / inicio.c
Last active Dec 28, 2015
Generated using the little inicio.xml here (https://github.com/planobe/posxml/tree/master/Plano%20Be%20-%20WALK%20Downloaders/WALK_Downloader_Universal_modded_to_WalkServices_en_lite) with the command: hexdump -v -e '16/1 "0x%02x,"' -e '"\n"' inicio.posxml
View inicio.c
const unsigned char simple_init_data[] = {
0x6d,0x33,0x0a,0x31,0x0a,0x0d,0x3e,0x0a,0x32,0x0a,0x0d,0x3e,0x0a,0x33,0x0a,0x0d,
0x3e,0x0a,0x34,0x0a,0x0d,0x3e,0x0a,0x35,0x0a,0x0d,0x3e,0x0a,0x36,0x0a,0x0d,0x3e,
0x63,0x6f,0x6e,0x66,0x69,0x67,0x2e,0x64,0x61,0x74,0x0a,0x37,0x0a,0x0d,0x3e,0x0a,
0x38,0x0a,0x0d,0x3e,0x0a,0x39,0x0a,0x0d,0x3e,0x0a,0x31,0x30,0x0a,0x0d,0x3e,0x0a,
0x31,0x31,0x0a,0x0d,0x3e,0x0a,0x31,0x32,0x0a,0x0d,0x3e,0x0a,0x31,0x33,0x0a,0x0d,
0x3e,0x0a,0x31,0x34,0x0a,0x0d,0x3e,0x0a,0x31,0x35,0x0a,0x0d,0x3e,0x0a,0x31,0x36,
0x0a,0x0d,0x3e,0x0a,0x31,0x37,0x0a,0x0d,0x3e,0x0a,0x31,0x38,0x0a,0x0d,0x3e,0x0a,
0x31,0x39,0x0a,0x0d,0x3e,0x0a,0x32,0x30,0x0a,0x0d,0x3e,0x0a,0x32,0x31,0x0a,0x0d,
0x3e,0x0a,0x32,0x32,0x0a,0x0d,0x3e,0x70,0x61,0x63,0x6b,0x61,0x67,0x65,0x2e,0x7a,
View build-error.txt
$ rake
~/Documents/c/mobiruby-ios/submodules/libffi/armv7-ios ~/Documents/c/mobiruby-ios/submodules/libffi
autoreconf: 'configure.ac' or 'configure.in' is required
checking build system type... i386-apple-darwin12.5.0
checking host system type... arm-apple-darwin10
checking target system type... arm-apple-darwin10
checking for gsed... sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin10-strip... no
View mruby-all.h
/*
** mruby - An embeddable Ruby implementation
**
** Copyright (c) mruby developers 2010-2013
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to deal in the Software without restriction, including
** without limitation the rights to use, copy, modify, merge, publish,
** distribute, sublicense, and/or sell copies of the Software, and to
View Dockerfile
FROM greglearns/ruby
RUN git clone https://github.com/planobe/cloudwalk-http-echo.git /opt/cloudwalk-http-echo/
RUN gem install bundler
EXPOSE 5000
ENV PORT 5000
RUN cd /opt/cloudwalk-http-echo && git pull && bundle install
CMD ["/usr/local/bin/foreman","start","-d","/opt/cloudwalk-http-echo"]
View sinatra.rb
#Bound to this address so that external hosts can access it, VERY IMPORTANT!
set :bind, '0.0.0.0'
set :logging, true
View inicio_en.xml
<posxmlapplication xmlns="http://tempuri.org/posxml.xsd">
<page name="principal">
<stringvariable value="" variable="primeiravez" />
<stringvariable value="" variable="ModeloTerminal" />
<stringvariable value="" variable="ModeloAbreviado" />
<stringvariable value="" variable="VersaoFramework" />
<integervariable value="3" variable="int_return" />
<stringvariable value="" variable="str_return" />
<readfile filename="config.dat" key="primeiravez" variabledestination="$(primeiravez)" />
You can’t perform that action at this time.