kthxbye was already taken

One-liner cookbook

kthxbyte | Salvador Muñoz


// Counting files inside a directory
// Contando archivos dentro de un directorio

find /path/to/directory -type f | wc -l
[ January 12, 2016 ] While thinking about #unix #shell #find #filecount

// JSON tree view, using data from Pastebin
// Vista de arbol de JSON, utilizando datos desde Pastebin

http://kthxbyte.github.io/json/index.html
[ January 10, 2016 ] While thinking about #json #jstree #pastebin

// Display JSON as a jsTree
// Desplegar JSON como un jsTree

https://jsfiddle.net/z3w9ar2k/
[ January 8, 2016 ] While thinking about #json #jstree

// FOSUserBundle routes
// Rutas definidas por FOSUserBundle


-- Try php app/console router:debug

fos_user_security_login                GET|POST ANY    ANY  /login                            
fos_user_security_check                POST     ANY    ANY  /login_check                      
fos_user_security_logout               GET      ANY    ANY  /logout                           
fos_user_profile_show                  GET      ANY    ANY  /profile/                         
fos_user_profile_edit                  GET|POST ANY    ANY  /profile/edit                     
fos_user_registration_register         GET|POST ANY    ANY  /register/                        
fos_user_registration_check_email      GET      ANY    ANY  /register/check-email             
fos_user_registration_confirm          GET      ANY    ANY  /register/confirm/{token}         
fos_user_registration_confirmed        GET      ANY    ANY  /register/confirmed               
fos_user_resetting_request             GET      ANY    ANY  /resetting/request                
fos_user_resetting_send_email          POST     ANY    ANY  /resetting/send-email             
fos_user_resetting_check_email         GET      ANY    ANY  /resetting/check-email            
fos_user_resetting_reset               GET|POST ANY    ANY  /resetting/reset/{token}          
fos_user_change_password               GET|POST ANY    ANY  /profile/change-password

        
[ January 8, 2016 ] While thinking about #symfony #fosuserbundle #routes

// Find all files containing a given string
// Encontrar todos los archivos que contienen un string dado

grep -nrw /path/to/directory -e "string"
[ January 1, 2016 ] While thinking about #unix #shell #grep #filesearch #needle #haystack