Command Line
pry -r ./config/app_init_file.rb- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb- load your rails into a pry session
Debugger
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () { | |
| try { | |
| return Boolean(new Blob()); | |
| } catch (e) { | |
| return false; | |
| } | |
| }()); | |
| let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () { | |
| try { |
| import Debug | |
| import Graphics.Input as Input | |
| import Html | |
| import Html (..) | |
| import Html.Attributes (..) | |
| import Html.Events (..) | |
| import Html.Tags (..) | |
| import Http | |
| import Window |
| #!/bin/bash | |
| function search-branches() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do | |
| git branch -r --contains $sha1 | |
| done | |
| } | |
| function search-tags() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do |
| /** | |
| * ECMA2015 | |
| */ | |
| function convertHex(hexCode, opacity = 1){ | |
| var hex = hexCode.replace('#', ''); | |
| if (hex.length === 3) { | |
| hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; | |
| } |
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| # Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
| de: | |
| devise: | |
| confirmations: | |
| confirmed: "Vielen Dank für Deine Registrierung. Bitte melde dich jetzt an." | |
| confirmed_and_signed_in: "Vielen Dank für Deine Registrierung. Du bist jetzt angemeldet." | |
| send_instructions: "Du erhältst in wenigen Minuten eine E-Mail, mit der Du Deine Registrierung bestätigen kannst." | |
| send_paranoid_instructions: "Falls Deine E-Mail-Adresse in unserer Datenbank existiert erhältst Du in wenigen Minuten eine E-Mail mit der Du Deine Registrierung bestätigen kannst." | |
| failure: |
Press minus + shift + s and return to chop/fold long lines!