Skip to content

Instantly share code, notes, and snippets.

cienciapr [master] % rake routes | grep user
new_user_session GET /users/sign_in(.:format) devise/sessions#new
user_session POST /users/sign_in(.:format) devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
new_user_password GET /users/password/new(.:format) devise/passwords#new
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
user_password PATCH /users/password(.:format) devise/passwords#update
PUT /users/password(.:format)
panic(cpu 0 caller 0xffffff800de4aa3a): Kernel trap at 0xffffff7f90cb4fae, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000000, CR3: 0x0000000052cc004a, CR4: 0x00000000003626e0
RAX: 0x0000000000000000, RBX: 0xffffff8022313600, RCX: 0x0000000000000000, RDX: 0xffffff801c955f80
RSP: 0xffffff80abbb3840, RBP: 0xffffff80abbb3870, RSI: 0xffffff7f90cfa290, RDI: 0x0000000000000000
R8: 0x000000000eac0ad7, R9: 0x0000000000003e84, R10: 0xffffff7f90ce9580, R11: 0xffffff80193f4000
R12: 0xffffff801c955f80, R13: 0x0000000000000000, R14: 0xffffff80abbb3914, R15: 0xffffff80abbb3900
RFL: 0x0000000000010297, RIP: 0xffffff7f90cb4fae, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 0, VF: 0
Backtrace (CPU 0), Frame : Return Address
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (oopMap.cpp:559), pid=6032, tid=37635
# guarantee(last != NULL) failed: last may not be null
#
# JRE version: OpenJDK Runtime Environment (14.0.1+14) (build 14.0.1+14)
# Java VM: OpenJDK 64-Bit Server VM (14.0.1+14, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000001064eda4f, pid=12934, tid=27395
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# V [libjvm.dylib+0x2eda4f] G1CodeRootSet::contains(nmethod*)+0x29
#
@rebelwarrior
rebelwarrior / SlightlyLessSimpleDropdown.elm
Created February 12, 2018 00:52
SlightlyLessSimpleDropdown.elm
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (on, targetValue)
import Json.Decode
main =
beginnerProgram { model = "", view = view, update = update }
@rebelwarrior
rebelwarrior / SimpleDropDown.elm
Created February 12, 2018 00:39
Simple DropDown in Elm
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (on, targetValue)
main =
beginnerProgram { model = "", view = view, update = update }
view model =
@rebelwarrior
rebelwarrior / supress_output.rb
Created January 24, 2018 15:46
Supresses Output to Terminal in Ruby
# from https://gist.github.com/iamtheiconoclast
# on https://gist.github.com/moertel/11091573
def suppress_output
original_stdout, original_stderr = $stdout.clone, $stderr.clone
$stderr.reopen File.new('/dev/null', 'w')
$stdout.reopen File.new('/dev/null', 'w')
yield
ensure
$stdout.reopen original_stdout
@rebelwarrior
rebelwarrior / osx.sh
Created January 11, 2018 13:52 — forked from nitinhayaran/osx.sh
OSX configurations
echo "Expanding the save panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
echo "Why is this not default anymore?! Enabling full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo "I'm in yer computer, hax0ring yr passwords!"
echo "Requiring password immediately after sleep or screen saver begins"
defaults write com.apple.screensaver askForPassword -int 1
@rebelwarrior
rebelwarrior / Poirot_SetUp.rake
Last active November 15, 2017 17:29
Rake Task to Add Poirot's pre commit git hooks
namespace :poirot do
desc "Sets up Poirot's Git hooks for the local .git repository."
task :install_githooks do
def poirot_bash_script
<<~HEREDOC
#!/usr/bin/env bash
function setup_poirot()
{
# Output to stderr
@rebelwarrior
rebelwarrior / identify_os.rb
Last active November 20, 2017 15:41
Identify OS with Ruby
def idenfity_os
require 'rbconfig'
host_os = RbConfig::CONFIG['host_os']
case host_os
when /darwin/, /Mac/
:mac
when /linux/
identify_linux_distro
when /cygwin|mswin|mingw|bccwin|wince|emx/
:windows