Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
/* | |
The "hello world" of neural networks: a simple 3-layer feed-forward | |
network that implements an XOR logic gate. | |
The first layer is the input layer. It has two neurons a and b, which | |
are the two inputs to the XOR gate. | |
The middle layer is the hidden layer. This has two neurons h1, h2 that | |
will learn what it means to be an XOR gate. | |
/* | |
Based on: | |
1. http://stephen.io/mediaqueries | |
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* iPhone X in portrait & landscape */ | |
@media only screen | |
and (min-device-width : 375px) | |
and (max-device-width : 812px) |
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
I believe in the freedom of information, free as in money, and free as in freedom. That this is a fundamental requirement for empowerment.
I understand that ideas are not copyrightable. I expect that you understand this too. I expect that we can both regard all ideas discussed to be of Public Domain, as they are.
I understand that the implementation of ideas is copyrightable.
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...
1. make staging.rb in config/environments - copy production.rb for starters | |
2. in database.yml , application.yml , cloudinary.yml ... any .yml file , copy the production block and name it staging | |
2b. if you are using Resque - make a staging env in initializers/resque.rb | |
2c. add staging constants for any system-wide URLs | |
3. heroku create --remote staging <staging_app_name> --addons [any add ons here]. | |
create the staging area of the config file | |
<staging_app_name> is the part of the url before '.herokuapp.com' -- muy importante , dont forget | |
4. heroku config:add RACK_ENV=staging RAILS_ENV=staging --remote staging | |
set up the rails environment vars | |
5. git push staging master |
eXtreme Go Horse (XGH) Process | |
Quelle: http://gohorseprocess.wordpress.com | |
Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
1. Ich denke, also ist es nicht XGH. | |
In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
#!/bin/bash | |
# | |
# Converts LDIF data to CSV. | |
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
# | |
# 2010-03-07 | |
# [email protected] | |
# | |
# Show usage if we don't have the right params |