Skip to content

Instantly share code, notes, and snippets.


douglascpioc DouglasPioStudiare

View GitHub Profile
git stash list
echo "Enter stash number to rename"
read stash_number
echo "Enter new name"
read new_name
echo "$stash_name"
mcshakes / Rails C error.
Created Oct 14, 2016
Running into RVM and readline issues
View Rails C error.
$ rails c
Running via Spring preloader in process 7916
/Users/edmac/.rvm/gems/ruby-2.3.1/gems/activesupport- `require': dlopen(/Users/edmac/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
Referenced from: /Users/edmac/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
Reason: image not found - /Users/edmac/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle
Fixed with:
ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib
bloodredsun /
Last active Dec 28, 2020
Unit testing logback based logging statements
package com.brs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
* Simple class that we use to trigger a log statement.
public class ExampleThatLogs {
phoenixg / header_http_status_codes.php
Created Apr 6, 2013
PHP header() for sending HTTP status codes
View header_http_status_codes.php
function HTTPStatus($num) {
$http = array(